Skip to main content

SIHF (Swiss hockey) — SIHF statistics API (data.sihf.ch; National League, Swiss League and every SIHF league) — Other

sihf_results​

Games of a league season: date, teams, score, per-period score, decision, status and game_id.

Endpoint URL: GET https://data.sihf.ch/statistic/api/cms/table

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=results&searchQuery=1%2F%2F1&language=en&filterBy=Season%2CDate&filterQuery=2026%2F01.07.2025-30.06.2026

API ParameterPythonPatternRequiredNullableDescription
SeasonseasonYRequired. Season by its END year (2026 = 2025-26). A season SIHF does not have raises NoDataError (the API itself silently answers another one).
Leagueleague_idYSIHF league id: 1 = National League, 2 = Swiss League, 100 = MyHockey League, 3 = 1. Liga, 43 = SWHL B, 113 = U21-Elit (the body's League filter lists them). An id SIHF does not have for the season raises NoDataError.
Phasephase_idYSIHF phase id (regular season, a playoff round, ...; the body's Phase filter lists them). None = no phase filter: the season summary over every phase (player / goalie tables), every game (results), the regular-season table (standings).
languagelanguageYResponse language. Only part of the body is translated: status, position and penalty names stay German.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season by its END year (2026 = 2025-26), from the body's echo of the Season filter.
phase_idInt64SIHF phase id (regular season, a playoff round, ...); null unless a phase filter is passed.
dayStringWeekday abbreviation, German (e.g., "Di").
dateDateGame date (local).
timeStringScheduled local start time, "hh:mm".
home_team_idInt64SIHF team id of the home team.
home_team_nameStringHome team display name.
home_team_acronymStringHome team abbreviation.
away_team_idInt64SIHF team id of the away team.
away_team_nameStringAway team display name.
away_team_acronymStringAway team abbreviation.
score_homeInt64Final home score.
score_awayInt64Final away score.
score_per_period_homeListHome goals per period (overtime included as its own period).
score_per_period_awayListAway goals per period (overtime included as its own period).
decisionStringHow the game was decided beyond regulation: "OT" or "SO"; null in regulation.
status_idInt64SIHF game-status id (12 = finished).
status_nameStringGame-status name; German whatever the language (e.g., "Ende").
status_percentInt64Game progress, 0-100 (100 once the game is over).
status_canceledBooleanWhether the game was cancelled.
start_date_timeStringScheduled start, ISO-8601 with UTC offset, as a string.
end_date_timeStringEnd of the game, ISO-8601 with UTC offset, as a string.
update_date_timeStringWhen SIHF last updated the record, ISO-8601 with UTC offset, as a string.
game_idInt64SIHF game id (Int64 join key; the details link of sihf_results, the searchQuery of the game wrappers).
broadcastsStringBroadcasters, comma-joined (e.g., "MYSPORTS,TV24").
row_typeString"data" for a regular row; "average" or "total" for a summary row SIHF mixes into the table.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. SIHF answered 404 (unknown game), or it ignored a requested season / league / phase and served another one.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

sihf_results(season=2026, league_id=1)

sihf_standings​

League table of a season (every game, or home / away games only): rank, games, points, regulation / overtime / shootout wins and losses, goals, streak.

Endpoint URL: GET https://data.sihf.ch/statistic/api/cms/table

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=standing&searchQuery=1%2F%2F1&language=en&filterBy=Season%2CContentType&filterQuery=2026%2FAll

API ParameterPythonPatternRequiredNullableDescription
SeasonseasonYRequired. Season by its END year (2026 = 2025-26). A season SIHF does not have raises NoDataError (the API itself silently answers another one).
Leagueleague_idYSIHF league id: 1 = National League, 2 = Swiss League, 100 = MyHockey League, 3 = 1. Liga, 43 = SWHL B, 113 = U21-Elit (the body's League filter lists them). An id SIHF does not have for the season raises NoDataError.
Phasephase_idYSIHF phase id (regular season, a playoff round, ...; the body's Phase filter lists them). None = no phase filter: the regular-season table.
ContentTypevenueYWhich games the table counts: All (the full table), Home or Away. Always sent: without it SIHF answers the away-games table (26 of the 52 National League games).
languagelanguageYResponse language. Only part of the body is translated: status, position and penalty names stay German.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season by its END year (2026 = 2025-26), from the body's echo of the Season filter.
phase_idInt64SIHF phase id (regular season, a playoff round, ...); null unless a phase filter is passed.
rankInt64Rank in the table; null on a summary row.
team_idInt64SIHF team id (Int64 join key).
team_nameStringTeam display name as SIHF publishes it.
team_acronymStringTeam abbreviation as SIHF publishes it (e.g., "HCD").
games_playedInt64Games the team played in the selection (every game, or home / away games only, per venue).
pointsInt64Table points earned in the standings.
points_quotientFloat64Points per game.
games_won_in_timeInt64Wins in regulation.
games_won_extra_timeInt64Wins in overtime.
games_won_penaltyInt64Wins in a shootout.
games_lost_penaltyInt64Losses in a shootout.
games_lost_extra_timeInt64Losses in overtime.
games_lost_in_timeInt64Losses in regulation.
goals_forInt64Goals scored by the team.
goals_againstInt64Goals allowed by the team.
goals_differenceInt64Goal difference.
streakStringRecent results, newest first, as SIHF prints them (e.g., "W+L-"; "+" regulation, "-" after regulation).
row_typeString"data" for a regular row; "average" or "total" for a summary row SIHF mixes into the table.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. SIHF answered 404 (unknown game), or it ignored a requested season / league / phase and served another one.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

sihf_standings(season=2026, league_id=1)

sihf_phases​

Phases of a league season (regular season, play-in and playoff rounds, playout): the phase_id values the table wrappers take, with each phase's name and game count.

Endpoint URL: GET https://data.sihf.ch/statistic/api/cms/table

Valid URL: https://data.sihf.ch/statistic/api/cms/table?searchQuery=1%2F%2F1&alias=results&language=en&filterBy=Season%2CPhase%2CDate&filterQuery=2026%2F%2F01.07.2025-30.06.2026

API ParameterPythonPatternRequiredNullableDescription
SeasonseasonYRequired. Season by its END year (2026 = 2025-26). A season SIHF does not have raises NoDataError (the API itself silently answers another one).
Leagueleague_idYSIHF league id: 1 = National League, 2 = Swiss League, 100 = MyHockey League, 3 = 1. Liga, 43 = SWHL B, 113 = U21-Elit (the body's League filter lists them). An id SIHF does not have for the season raises NoDataError.
aliastableYSIHF table whose phase list to read; each table lists its own. results (sihf_results) lists every round with its game count; player / goalkeeper (sihf_player_stats / sihf_goalie_stats) add the Playoff Overall and Play-In Overall totals; standing (sihf_standings) lists only the phases played as a table (the regular season, in some seasons a playout round).
languagelanguageYResponse language. Only part of the body is translated: status, position and penalty names stay German.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season by its END year (2026 = 2025-26), from the body's echo of the Season filter.
phase_idInt64SIHF phase id (Int64), the value the phase_id argument of sihf_results, sihf_standings, sihf_player_stats and sihf_goalie_stats takes. Ids differ by league, season and table.
phase_nameStringPhase name as SIHF publishes it, without the trailing count (e.g., "Regular Season", "Playoff 1/4 Final", "Playoff Overall").
n_gamesInt64Games played in the phase, from the results table's phase list; null for the other tables and for a phase still in progress.

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. SIHF answered 404 (unknown game), or it ignored a requested season / league / phase and served another one.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

sihf_phases(season=2026, league_id=1)

sihf_pbp​

Event timeline of one game: goals, penalties, goaltender changes, revoked goals and shootout attempts.

Endpoint URL: GET https://data.sihf.ch/statistic/api/cms/gameoverview

Valid URL: https://data.sihf.ch/statistic/api/cms/gameoverview?alias=gameDetail&searchQuery=20261105000325&language=en

API ParameterPythonPatternRequiredNullableDescription
searchQuerygame_idYRequired. SIHF game id (game_id in sihf_results), e.g. 20261105000325.
languagelanguageYResponse language. Only part of the body is translated: status, position and penalty names stay German.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64SIHF game id (Int64 join key; the details link of sihf_results, the searchQuery of the game wrappers).
event_indexInt641-based event order within the game.
period_numberInt641-based period (4 = first overtime); the shootout follows the last period.
periodStringPeriod name as SIHF prints it, German (e.g., "1. Drittel", "Shootout").
event_typeStringEvent kind: "goal", "penalty", "goalie", "revoked_goal" or "shootout".
timeStringElapsed game time of the event, "mm:ss" (null on shootout rows).
game_secondsInt64Elapsed game time of the event in seconds.
team_idInt64SIHF team id of the team the event belongs to.
team_sideStringSide of the game the row belongs to: "home" or "away".
player_idInt64Licence number of the scorer, penalized player, goaltender (goalie rows) or shooter.
player_nameStringName of the scorer, penalized player, goaltender (goalie rows) or shooter.
player_jerseyInt64Jersey number of the player in player_id.
assist1_player_idInt64Licence number of the first assist.
assist1_player_nameStringName of the first assist.
assist2_player_idInt64Licence number of the second assist.
assist2_player_nameStringName of the second assist.
goalie_idInt64Licence number of the goaltender faced (shootout rows).
goalie_nameStringName of the goaltender faced (shootout rows).
strengthStringFirst goal tag: "EQ" even strength, "PP1" power play, "SH1" shorthanded, ...
goal_tagsStringEvery goal tag, comma-joined as SIHF prints them (e.g., "PP1,GWG").
score_homeInt64Home score after the goal.
score_awayInt64Away score after the goal.
plus_player_idsListLicence numbers credited +1 on the goal (listed only where plus-minus applies).
minus_player_idsListLicence numbers charged -1 on the goal (listed only where plus-minus applies).
penalty_idInt64SIHF penalty-type id.
penalty_nameStringPenalty name, German whatever the language (e.g., "Haken").
penalty_minutesInt64Penalty length in minutes.
penalty_startStringGame time the penalty starts, "mm:ss".
penalty_endStringGame time the penalty ended, "mm:ss" (earlier than its full length when a goal ended it).
goalie_changeStringGoaltender change direction: "in" or "out".
revoke_reasonStringWhy the goal was disallowed, as SIHF prints it (e.g., "CC-Offiside").
shootout_numberInt641-based shootout attempt number.
shootout_scoredBooleanWhether the shootout attempt scored.
textStringEvent text exactly as SIHF prints it (markdown bold included).

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. SIHF answered 404 (unknown game), or it ignored a requested season / league / phase and served another one.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

sihf_pbp(game_id=20261105000325)