Skip to contents

Game info of one match: state, arena, attendance, officials, coaches, period scores.

Wraps GET https://s3.eu-west-1.amazonaws.com/eihl.hokejovyzapis.cz/matches/{match_id}/game-info.json of the EIHL eSports bucket. Example: https://s3.eu-west-1.amazonaws.com/eihl.hokejovyzapis.cz/matches/4440/game-info.json. Seasons are END years (2027 = 2026/27); every request waits at least one second after the last one to the same host.

Usage

eihl_game_info(match_id, return_parsed = TRUE)

Arguments

match_id

Match id (per-bucket match key space: match_id in eihl_schedule). Not the league website's game id.

return_parsed

Parse the payload into a tibble (default TRUE); FALSE returns the raw decoded JSON body (a nested list).

Value

A tibble::tibble() with one row per row of the file (zero rows, carrying the documented columns, for an empty frame); the raw JSON list when return_parsed = FALSE. Columns:

col_nametypedescription
actual_time_namecharacterDisplay label of the game state, e.g. end / Ende.
actual_time_aliascharacterShort game-state code: K = finished.
stadiumcharacterName of the arena the game was played in.
number_of_viewersintegerSpectators at the game (attendance).
referees_head_referee1characterOfficial's name (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
referees_head_referee2characterOfficial's name (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
referees_line_referee1characterOfficial's name (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
referees_line_referee2characterOfficial's name (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
team_info_home_idintegerTeam id (team key space, per bucket, stable across seasons); joins to league-matches home.id / guest.id and the {team_id} path param.
team_info_home_namecharacterTeam display name.
team_info_home_shortcutcharacterThree-letter team code.
team_info_visitor_idintegerTeam id (team key space, per bucket, stable across seasons); joins to league-matches home.id / guest.id and the {team_id} path param.
team_info_visitor_namecharacterTeam display name.
team_info_visitor_shortcutcharacterThree-letter team code.
trainers_home_head_coachcharacterHead coach (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
trainers_visitor_head_coachcharacterHead coach (ICEHL/EIHL/Denmark: a full-name string; DEL: an object with id and name).
team_bilance_home_winintegerWins of that team in the head-to-head record (unverified).
team_bilance_visitor_winintegerWins of that team in the head-to-head record (unverified).
results_extra_timelogicalTrue when the game went to overtime.
results_shootinglogicalTrue when the game was decided by a shootout.
results_contumacylogicalTrue when the result was awarded by forfeit.
results_score_final_score_homeintegerHome team goals in that span.
results_score_final_score_guestintegerVisiting team goals in that span.
results_score_first_period_score_homeintegerHome team goals in that span.
results_score_first_period_score_guestintegerVisiting team goals in that span.
results_score_second_period_score_homeintegerHome team goals in that span.
results_score_second_period_score_guestintegerVisiting team goals in that span.
results_score_third_period_score_homeintegerHome team goals in that span.
results_score_third_period_score_guestintegerVisiting team goals in that span.

Errors

Signalled as classed conditions: fastRhockey_no_data when the bucket has no such key (S3 404 NoSuchKey: unknown season, competition, match or team) or the file holds no rows (an unplayed game, an empty shot shell); fastRhockey_asset_fetch for any other non-2xx answer (403 AccessDenied), a connection failure after retries, an empty or unreadable 200 body, an error envelope, a body of the wrong shape, or a body for another season or game; fastRhockey_bad_request for an HTTP 400/422 or an invalid argument. All three also inherit fastRhockey_error. Wrappers raise; they never warn and return an empty frame.

See also

EIHL (the league site whose widgets read this public eSports bucket)

Other EIHL eSports functions: eihl_goalie_box(), eihl_pbp(), eihl_player_box(), eihl_schedule(), eihl_shots(), eihl_standings(), eihl_team_player_stats(), eihl_top_scorers()

Examples

# \donttest{
  try(eihl_game_info(match_id = 4440))
#> ── EIHL game_info from the eSports hokejovyzapis bucket ────────────────────────
#> ℹ Data updated: 2026-10-13 01:51:45 UTC
#> # A tibble: 1 × 29
#>   actual_time_name actual_time_alias stadium        number_of_viewers
#>   <chr>            <chr>             <chr>                      <int>
#> 1 end              K                 Braehead Arena              3292
#> # ℹ 25 more variables: referees_head_referee1 <chr>,
#> #   referees_head_referee2 <chr>, referees_line_referee1 <chr>,
#> #   referees_line_referee2 <chr>, team_info_home_id <int>,
#> #   team_info_home_name <chr>, team_info_home_shortcut <chr>,
#> #   team_info_visitor_id <int>, team_info_visitor_name <chr>,
#> #   team_info_visitor_shortcut <chr>, trainers_home_head_coach <chr>,
#> #   trainers_visitor_head_coach <chr>, team_bilance_home_win <int>, …
# }