Skip to main content

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

sihf_goalie_stats​

Goaltender season totals: games, starts, goals against, GAA, shots, saves, save percentage, ice time.

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

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=goalkeeper&searchQuery=1%2F%2F1&language=en&filterBy=Season&filterQuery=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.
rankInt64Rank in the table; null on a summary row.
playerStringPlayer name as SIHF prints it, last name first (e.g., "Dahlbeck Klas").
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 goaltender dressed for.
first_keeperInt64Games listed as the starting goaltender.
goals_againstInt64Goals allowed by the goaltender.
goals_against_averageFloat64Goals against per 60 minutes.
shots_againstInt64Shots on goal faced.
savesInt64Shots on goal saved by the goaltender.
saves_percentageFloat64Save percentage on a 0-100 scale (91.25 = .9125).
seconds_playedStringIce time as "mm:ss" (a string, despite the upstream name). Minutes are not capped at 59: an overtime game reads "65:00", a season total "3615:02".
penalty_in_minutesInt64Penalty minutes.
goalsInt64Goals scored by the goaltender (almost always 0).
assistsInt64Assists by the goaltender.
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_goalie_stats(season=2026, league_id=1)

sihf_goalie_shots​

Goaltender shots against: on goal (total, slot), missed, post, with per-game rates and the slot save percentage.

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

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=goalkeeperShotDetail&searchQuery=1%2F%2F1&language=en&filterBy=Season&filterQuery=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.
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, and on a goaltender below the qualification line.
playerStringPlayer name as SIHF prints it, last name first (e.g., "Dahlbeck Klas"); season tables carry no player id.
team_idInt64SIHF team id (Int64 join key); null on a summary row (the pseudo-team 100000).
team_nameStringTeam display name as SIHF publishes it; "Durchschnitt" on the league-average row, "Total" on the attendance total row.
team_acronymStringTeam abbreviation as SIHF publishes it (e.g., "HCD"); null on a summary row.
games_playedInt64Games played in the table's scope.
soga_sogInt64Shots on goal against, total.
soga_sog_per_gameFloat64Shots on goal against per game.
soga_sog_slotInt64Slot shots on goal against.
soga_sog_slot_per_gameFloat64Slot shots on goal against per game.
soga_missedInt64Missed shots against.
soga_missed_per_gameFloat64Missed shots against per game.
soga_postInt64Post/crossbar shots against.
soga_post_per_gameFloat64Post/crossbar shots against per game.
saves_slot_percentageFloat64Save percentage on slot shots.
row_typeString"data" for a regular row; "average" (league average) or "total" (attendance 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_goalie_shots(season=2026, league_id=1)

sihf_goalie_wins​

Goaltender decisions: starts, wins and losses in regulation, overtime and shootout, and shutouts.

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

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=goalkeeperWin&searchQuery=1%2F%2F1&language=en&filterBy=Season&filterQuery=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.
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, and on a goaltender below the qualification line.
playerStringPlayer name as SIHF prints it, last name first (e.g., "Dahlbeck Klas"); season tables carry no player id.
team_idInt64SIHF team id (Int64 join key); null on a summary row (the pseudo-team 100000).
team_nameStringTeam display name as SIHF publishes it; "Durchschnitt" on the league-average row, "Total" on the attendance total row.
team_acronymStringTeam abbreviation as SIHF publishes it (e.g., "HCD"); null on a summary row.
games_playedInt64Games played in the table's scope.
first_keeperInt64Games started as goalkeeper (GPI).
winsInt64Wins, all decision types.
wins_intimeInt64Wins in regulation.
wins_overtimeInt64Games won in overtime.
wins_penaltyInt64Games won in a shootout.
lossesInt64Losses, all decision types.
losses_intimeInt64Losses in regulation.
losses_overtimeInt64Overtime losses.
losses_penaltyInt64Shootout losses.
shutoutInt64Shutouts (games with no goal against).
row_typeString"data" for a regular row; "average" (league average) or "total" (attendance 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_goalie_wins(season=2026, league_id=1)

sihf_goalie_shootouts​

Goaltender shootouts: attempts faced, goals against, saves and save percentage.

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

Valid URL: https://data.sihf.ch/statistic/api/cms/table?alias=goalkeeperShootout&searchQuery=1%2F%2F1&language=en&filterBy=Season&filterQuery=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.
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, and on a goaltender below the qualification line.
playerStringPlayer name as SIHF prints it, last name first (e.g., "Dahlbeck Klas"); season tables carry no player id.
team_idInt64SIHF team id (Int64 join key); null on a summary row (the pseudo-team 100000).
team_nameStringTeam display name as SIHF publishes it; "Durchschnitt" on the league-average row, "Total" on the attendance total row.
team_acronymStringTeam abbreviation as SIHF publishes it (e.g., "HCD"); null on a summary row.
games_playedInt64Games played in the table's scope.
pen_shots_againstInt64Shootout/penalty shots faced.
pen_shot_goals_againstInt64Shootout/penalty goals allowed.
pen_shot_savesInt64Shootout/penalty shots saved.
pen_shot_saves_percentFloat64Shootout/penalty save percentage.
row_typeString"data" for a regular row; "average" (league average) or "total" (attendance 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_goalie_shootouts(season=2026, league_id=1)