Skip to contents

Header of one game: league, phase, teams, final and per-period score and shots, venue, attendance, officials.

Reads the Swiss Ice Hockey Federation statistics API (data.sihf.ch, keyless JSON). SIHF keys a season by its END year (2026 = 2025-26). An unknown season, league_id or phase_id is never an error upstream (SIHF silently answers another one), so every table answer is checked against the body's own filter echo and refused when it differs. Every request is spaced at least one second from the last one to the host.

Usage

sihf_game_info(game_id, language = "en")

Arguments

game_id

Required. SIHF game id (game_id in sihf_results), e.g. 20261105000325.

language

Response language. Only part of the body is translated: status, position and penalty names stay German.

Value

A fastRhockey_data tibble with 41 columns. A zero-row tibble with these columns when the payload holds no rows.

col_nametypedescription
game_idnumericSIHF game id (numeric join key; the details link of sihf_results, the searchQuery of the game wrappers).
seasonintegerSeason by its END year (2026 = 2025-26).
roundintegerRound number within the season.
league_idintegerSIHF league id of the game (1 = National League).
league_namecharacterLeague name (e.g., "National League").
region_idintegerSIHF region id of the game (1 = national).
region_namecharacterRegion name (e.g., "National").
group_idintegerSIHF group id (0 = no group).
group_namecharacterName of the league group the game belongs to ('Keine' = none).
tournament_idintegerSIHF tournament id (1 = championship).
tournament_namecharacterTournament name, German (e.g., 'Meisterschaft' = championship).
qualification_idintegerSIHF id of the stage of the season (1 = regular season).
qualification_namecharacterStage of the season (e.g., "Regular Season", "Playoff Final").
phase_idintegerSIHF phase id (regular season, a playoff round, ...).
phase_namecharacterPhase name (e.g., "NL Playoff Final").
start_date_timecharacterScheduled start, ISO-8601 with UTC offset, as a string.
end_date_timecharacterEnd of the game, ISO-8601 with UTC offset, as a string.
update_date_timecharacterWhen SIHF last updated the record, ISO-8601 with UTC offset, as a string.
status_idintegerSIHF game-status id (12 = finished).
status_namecharacterGame-status name; German whatever the language (e.g., "Ende").
status_percentintegerGame progress, 0-100 (100 once the game is over).
status_canceledlogicalWhether the game was cancelled.
home_team_idintegerSIHF team id of the home team.
home_team_namecharacterHome team display name.
home_team_acronymcharacterHome team abbreviation.
away_team_idintegerSIHF team id of the away team.
away_team_namecharacterAway team display name.
away_team_acronymcharacterAway team abbreviation.
home_scoreintegerFinal home score.
away_scoreintegerFinal away score.
home_score_by_periodlistHome goals per period, aligned with period_indicators.
away_score_by_periodlistAway goals per period, aligned with period_indicators.
home_shots_by_periodlistHome shots on goal per period, aligned with period_indicators.
away_shots_by_periodlistAway shots on goal per period, aligned with period_indicators.
period_indicatorslistPeriod labels: "1", "2", "3", then "OT1", ...
venue_namecharacterName of the arena the game was played in.
venue_citycharacterCity of the arena with its canton code (e.g., 'Davos-Platz GR').
spectatorsintegerAttendance as SIHF reports it.
refereescharacterReferee names, comma-joined.
linesmencharacterLinesman names, comma-joined.
broadcastscharacterBroadcasters, comma-joined (e.g., "MYSPORTS,TV24").

Errors

  • fastRhockey_no_data: SIHF answered 404 (unknown game), or ignored a requested season, league or phase and served another one.

  • fastRhockey_bad_request: SIHF answered 400 / 422, or an argument is invalid.

  • fastRhockey_asset_fetch: any other non-2xx answer or a dead connection after retries, an empty or unreadable body, a stub or redirect body, a table without its filter echo, a truncated table, or a gameoverview body for another game.

Examples

# \donttest{
  try(sihf_game_info(game_id = 20261105000325))
#> ── SIHF Game Info Information from data.sihf.ch ────── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:59:36 UTC
#> # A tibble: 1 × 41
#>   game_id season round league_id league_name     region_id region_name group_id
#>     <dbl>  <int> <int>     <int> <chr>               <int> <chr>          <int>
#> 1 2.03e13   2026    47         1 National League         1 National           0
#> # ℹ 33 more variables: group_name <chr>, tournament_id <int>,
#> #   tournament_name <chr>, qualification_id <int>, qualification_name <chr>,
#> #   phase_id <int>, phase_name <chr>, start_date_time <chr>,
#> #   end_date_time <chr>, update_date_time <chr>, status_id <int>,
#> #   status_name <chr>, status_percent <int>, status_canceled <lgl>,
#> #   home_team_id <int>, home_team_name <chr>, home_team_acronym <chr>,
#> #   away_team_id <int>, away_team_name <chr>, away_team_acronym <chr>, …
# }