Skip to main content

National League — National League app API (www.nationalleague.ch/api, Switzerland) — Other

nl_schedule​

Schedule and results for one season: NL plus exhibitions.

Endpoint URL: GET https://www.nationalleague.ch/api/games

Valid URL: https://www.nationalleague.ch/api/games?season=2026

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
home_team_short_nameStringHome team abbreviation (e.g. HCD)
home_team_nameStringHome team display name
away_team_short_nameStringAway team abbreviation
away_team_nameStringAway team display name
home_team_idInt64Home team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
away_team_idInt64Away team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
vimeo_video_idInt64Full-game video. Vimeo video id (Int64): vimeo.com/.
dateStringScheduled start, ISO 8601 with UTC offset
statusStringGame state: finished, canceled, beforeStartOfPlay (others appear live)
base_statusStringCoarse game state; equal to status in every sampled game
home_team_resultInt64Home team goals (final or current score; 0 before the game)
away_team_resultInt64Away team goals (final or current score; 0 before the game)
is_overtimeBooleanGame went to overtime
is_shootoutBooleanGame went to a shootout
highlight_vimeo_video_idInt64Highlights video. Vimeo video id (Int64): vimeo.com/.
has_highlightBooleanA highlight video exists
is_currentBooleanGame belongs to the current game day
is_current_for_teamBooleanGame is the team's current game (team-scoped views)
tv_partnerStringBroadcaster logo image URLs; unobserved: null, absent or empty in every sampled row
spectatorsInt64Attendance (Int64; the API sends a digit string).
has_my_sportsBooleanBroadcast on MySports
refereesStringOfficials as '# ' strings (referees and linesmen; one entry in some games)
is_exhibitionBooleanExhibition game, not NL competition (competition code other than 1105)
home_team_coachStringHome head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
away_team_coachStringAway head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
game_timeInt64Elapsed game minutes; 0 on every game in the season lists, 60 in a finished game's overview
show_game_timeBooleanApp flag: show gameTime
arenaStringName of the arena the game is played in

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_schedule(season=2026)

nl_current_games​

The current or next game day.

Endpoint URL: GET https://www.nationalleague.ch/api/games/current

Valid URL: https://www.nationalleague.ch/api/games/current?season=2027

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYThe running season's END year (2027 on 2026-10-12). Season END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
home_team_short_nameStringHome team abbreviation (e.g. HCD)
home_team_nameStringHome team display name
away_team_short_nameStringAway team abbreviation
away_team_nameStringAway team display name
home_team_idInt64Home team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
away_team_idInt64Away team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
vimeo_video_idInt64Full-game video. Vimeo video id (Int64): vimeo.com/.
dateStringScheduled start, ISO 8601 with UTC offset
statusStringGame state: finished, canceled, beforeStartOfPlay (others appear live)
base_statusStringCoarse game state; equal to status in every sampled game
home_team_resultInt64Home team goals (final or current score; 0 before the game)
away_team_resultInt64Away team goals (final or current score; 0 before the game)
is_overtimeBooleanGame went to overtime
is_shootoutBooleanGame went to a shootout
highlight_vimeo_video_idInt64Highlights video. Vimeo video id (Int64): vimeo.com/.
has_highlightBooleanA highlight video exists
is_currentBooleanGame belongs to the current game day
is_current_for_teamBooleanGame is the team's current game (team-scoped views)
tv_partnerStringBroadcaster logo image URLs
spectatorsInt64Attendance (Int64; the API sends a digit string).
has_my_sportsBooleanBroadcast on MySports
refereesStringOfficials as '# ' strings (referees and linesmen; one entry in some games); unobserved: null, absent or empty in every sampled row
is_exhibitionBooleanExhibition game, not NL competition (competition code other than 1105)
home_team_coachStringHome head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
away_team_coachStringAway head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
game_timeInt64Elapsed game minutes; 0 on every game in the season lists, 60 in a finished game's overview
show_game_timeBooleanApp flag: show gameTime
arenaStringName of the arena the game is played in

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_current_games(season=2027)

nl_playoffs​

Playoff and play-in series by round: one row per game, with its series score.

Endpoint URL: GET https://www.nationalleague.ch/api/games/playoffs

Valid URL: https://www.nationalleague.ch/api/games/playoffs?season=2026

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).

Returns​

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

col_nametypedescription
series_groupInt64Series number within the round (1 = first pairing; 0 seen in playouts)
series_home_team_short_nameStringAbbreviation of the team with home ice
series_away_team_short_nameStringAbbreviation of the other team
series_home_team_idInt64Team with home ice in the series. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
series_away_team_idInt64The other team in the series. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
series_home_team_resultInt64Series wins of the team with home ice
series_away_team_resultInt64Series wins of the other team
series_best_ofInt64Series length in games (7; 2 in the play-in)
series_titleStringSeries length label, e.g. 'Best of 7'
roundStringRound key: final, semifinal, quarterfinal, playIn (/playoffs); leagueQualifications, playoutFinal (/playouts)
game_idInt64SIHF game id <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
home_team_short_nameStringHome team abbreviation (e.g. HCD)
home_team_nameStringHome team display name
away_team_short_nameStringAway team abbreviation
away_team_nameStringAway team display name
home_team_idInt64Home team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
away_team_idInt64Away team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
vimeo_video_idInt64Full-game video. Vimeo video id (Int64): vimeo.com/.
dateStringScheduled start, ISO 8601 with UTC offset
statusStringGame state: finished, canceled, beforeStartOfPlay (others appear live)
base_statusStringCoarse game state; equal to status in every sampled game
home_team_resultInt64Home team goals (final or current score; 0 before the game)
away_team_resultInt64Away team goals (final or current score; 0 before the game)
is_overtimeBooleanGame went to overtime
is_shootoutBooleanGame went to a shootout
highlight_vimeo_video_idInt64Highlights video. Vimeo video id (Int64): vimeo.com/.
has_highlightBooleanA highlight video exists
is_currentBooleanGame belongs to the current game day
is_current_for_teamBooleanGame is the team's current game (team-scoped views)
tv_partnerStringBroadcaster logo image URLs
spectatorsInt64Attendance (Int64; the API sends a digit string).
has_my_sportsBooleanBroadcast on MySports
refereesStringOfficials as '# ' strings (referees and linesmen; one entry in some games)
is_exhibitionBooleanExhibition game, not NL competition (competition code other than 1105)
home_team_coachStringHome head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
away_team_coachStringAway head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
game_timeInt64Elapsed game minutes; 0 on every game in the season lists, 60 in a finished game's overview
show_game_timeBooleanApp flag: show gameTime
arenaStringName of the arena the game is played in

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_playoffs(season=2026)

nl_playouts​

Playout and league-qualification series by round: one row per game, with its series score.

Endpoint URL: GET https://www.nationalleague.ch/api/games/playouts

Valid URL: https://www.nationalleague.ch/api/games/playouts?season=2026

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).

Returns​

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

col_nametypedescription
series_groupInt64Series number within the round (1 = first pairing; 0 seen in playouts)
series_home_team_short_nameStringAbbreviation of the team with home ice
series_away_team_short_nameStringAbbreviation of the other team
series_home_team_idInt64Team with home ice in the series. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
series_away_team_idInt64The other team in the series. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
series_home_team_resultInt64Series wins of the team with home ice
series_away_team_resultInt64Series wins of the other team
series_best_ofInt64Series length in games (7; 2 in the play-in)
series_titleStringSeries length label, e.g. 'Best of 7'
roundStringRound key: final, semifinal, quarterfinal, playIn (/playoffs); leagueQualifications, playoutFinal (/playouts)
game_idInt64SIHF game id <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
home_team_short_nameStringHome team abbreviation (e.g. HCD)
home_team_nameStringHome team display name
away_team_short_nameStringAway team abbreviation
away_team_nameStringAway team display name
home_team_idInt64Home team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
away_team_idInt64Away team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
vimeo_video_idInt64Full-game video. Vimeo video id (Int64): vimeo.com/.
dateStringScheduled start, ISO 8601 with UTC offset
statusStringGame state: finished, canceled, beforeStartOfPlay (others appear live)
base_statusStringCoarse game state; equal to status in every sampled game
home_team_resultInt64Home team goals (final or current score; 0 before the game)
away_team_resultInt64Away team goals (final or current score; 0 before the game)
is_overtimeBooleanGame went to overtime
is_shootoutBooleanGame went to a shootout
highlight_vimeo_video_idInt64Highlights video. Vimeo video id (Int64): vimeo.com/.
has_highlightBooleanA highlight video exists
is_currentBooleanGame belongs to the current game day
is_current_for_teamBooleanGame is the team's current game (team-scoped views)
tv_partnerStringBroadcaster logo image URLs
spectatorsInt64Attendance (Int64; the API sends a digit string).
has_my_sportsBooleanBroadcast on MySports
refereesStringOfficials as '# ' strings (referees and linesmen; one entry in some games)
is_exhibitionBooleanExhibition game, not NL competition (competition code other than 1105)
home_team_coachStringHome head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
away_team_coachStringAway head coach name; filled in a game's overview, null in the season lists; unobserved: null, absent or empty in every sampled row
game_timeInt64Elapsed game minutes; 0 on every game in the season lists, 60 in a finished game's overview
show_game_timeBooleanApp flag: show gameTime
arenaStringName of the arena the game is played in

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_playouts(season=2026)

nl_game_overview​

One game's header: teams, date, status, final and per-period score, coaches, referees, arena, attendance.

Endpoint URL: GET https://www.nationalleague.ch/api/games/{game_id}

Valid URL: https://www.nationalleague.ch/api/games/20261105000325

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYSIHF game id, 14 digits <season(4)><competition(4)><sequence(6)> (game_id in nl_schedule; the same id as the sihf family's game_id), e.g. 20261105000325.

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
home_team_short_nameStringHome team abbreviation (e.g. HCD)
home_team_nameStringHome team display name
away_team_short_nameStringAway team abbreviation
away_team_nameStringAway team display name
home_team_idInt64Home team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
away_team_idInt64Away team. SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
vimeo_video_idInt64Full-game video. Vimeo video id (Int64): vimeo.com/.
dateStringScheduled start, ISO 8601 with UTC offset
statusStringGame state: finished, canceled, beforeStartOfPlay (others appear live)
base_statusStringCoarse game state; equal to status in every sampled game
home_team_resultInt64Home team goals (final or current score; 0 before the game)
away_team_resultInt64Away team goals (final or current score; 0 before the game)
is_overtimeBooleanGame went to overtime
is_shootoutBooleanGame went to a shootout
highlight_vimeo_video_idInt64Highlights video. Vimeo video id (Int64): vimeo.com/.
has_highlightBooleanA highlight video exists
is_currentBooleanGame belongs to the current game day
is_current_for_teamBooleanGame is the team's current game (team-scoped views)
tv_partnerStringBroadcaster logo image URLs
spectatorsInt64Attendance (Int64; the API sends a digit string).
has_my_sportsBooleanBroadcast on MySports
refereesStringOfficials as '# ' strings (referees and linesmen; one entry in some games)
is_exhibitionBooleanExhibition game, not NL competition (competition code other than 1105)
home_team_coachStringHome head coach name; filled in a game's overview, null in the season lists
away_team_coachStringAway head coach name; filled in a game's overview, null in the season lists
game_timeInt64Elapsed game minutes; 0 on every game in the season lists, 60 in a finished game's overview
show_game_timeBooleanApp flag: show gameTime
arenaStringName of the arena the game is played in
home_team_first_resultInt64Home goals in the 1st period
away_team_first_resultInt64Away goals in the 1st period
home_team_second_resultInt64Home goals in the 2nd period
away_team_second_resultInt64Away goals in the 2nd period
home_team_third_resultInt64Home goals in the 3rd period
away_team_third_resultInt64Away goals in the 3rd period
home_team_overtime_resultInt64Home overtime goals, all overtime periods
away_team_overtime_resultInt64Away overtime goals, all overtime periods
home_team_overtime1_resultInt64Home goals in overtime period 1 (playoff games can have several)
away_team_overtime1_resultInt64Away goals in overtime period 1
home_team_overtime2_resultInt64Home goals in overtime period 2
away_team_overtime2_resultInt64Away goals in overtime period 2
home_team_overtime3_resultInt64Home goals in overtime period 3
away_team_overtime3_resultInt64Away goals in overtime period 3
home_team_shootout_resultInt64Home shootout goals
away_team_shootout_resultInt64Away shootout goals
home_aggregated_scoreStringHome aggregate over a two-legged tie; unobserved: null or empty in every sampled row
away_aggregated_scoreStringAway aggregate over a two-legged tie; unobserved: null or empty in every sampled row

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_game_overview(game_id=20261105000325)

nl_pbp​

One game's event timeline: goals with assists, penalties, goaltender changes, revoked goals.

Endpoint URL: GET https://www.nationalleague.ch/api/games/{game_id}

Valid URL: https://www.nationalleague.ch/api/games/20261105000325

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYSIHF game id, 14 digits <season(4)><competition(4)><sequence(6)> (game_id in nl_schedule; the same id as the sihf family's game_id), e.g. 20261105000325.

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
event_indexInt641-based position of the event in the game's timeline.
team_sideStringhome or away: the side of the team this row belongs to.
game_secondsInt64Elapsed game time of the event in seconds, from the MMSS time (822 = 8:22 -> 502).
team_idInt64SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
home_teamBooleanEvent belongs to the home team
timeStringGame clock elapsed as an MMSS string without separator ('822' = 8:22, '5954' = 59:54)
video_timeInt64Seconds into the game video; 0 when there is no clip
video_vimeo_idInt64Clip of this event. Vimeo video id (Int64): vimeo.com/.
actionStringEvent type: goal, foul (penalty), in / out (goaltender enters / leaves), revokedGoal
foul_typeInt64SIHF penalty code (116-125 in the sample); 0 on non-penalty events
foul_minutesInt64Penalty minutes; 0 on non-penalty events
player_first_nameStringShooter's first name, from the game's lineup.
player_last_nameStringShooter's last name, from the game's lineup.
player_numberStringShooter's sweater number, from the game's lineup (a string).
player_totalInt64Scorer's goals this season including this one; 0 on non-goal events
periodInt64Period number, an integer (the parent third is a string)
overtimeInt64Overtime period number; 0 in regulation
goal_situationStringGoal kind; 'normal' on every sampled event
home_team_resultInt64Home score after the event
away_team_resultInt64Away score after the event
assist1_first_nameStringFirst assist: first name
assist1_last_nameStringFirst assist: last name
assist1_numberStringFirst assist: sweater number, a string
assist1_totalInt64First assister's assists this season including this one
assist2_first_nameStringSecond assist: first name
assist2_last_nameStringSecond assist: last name
assist2_numberStringSecond assist: sweater number, a string
assist2_totalInt64Second assister's assists this season including this one
situationStringGoal tags, comma-separated: EQ (even strength), PP1 (power play), GWG (game-winning goal); null on non-goals
revoked_goal_typeInt64Revoked-goal category code (1 on every sampled event)
revoked_goal_sub_typeInt64Revoked-goal reason code (1 on the revoked goal, 0 elsewhere)
review_successfulStringVideo-review outcome; unobserved: null or empty in every sampled row
review_goal_countsBooleanGoal stood after review

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_pbp(game_id=20261105000325)

nl_lineups​

One game's lineups: every dressed player by unit, with licence number, position and line.

Endpoint URL: GET https://www.nationalleague.ch/api/games/{game_id}

Valid URL: https://www.nationalleague.ch/api/games/20261105000325

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYSIHF game id, 14 digits <season(4)><competition(4)><sequence(6)> (game_id in nl_schedule; the same id as the sihf family's game_id), e.g. 20261105000325.

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
team_sideStringhome or away: the side of the team this row belongs to.
team_idInt64SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
unitStringLineup group: goalkeeper, or the line number 1-4 as a string.
player_idInt64SIHF licence number (Int64; e.g. 305519 = Tobias Geisser). Joins the sihf family's player_id and every SIHF *LicenceNr.
positionStringgoalkeeper, defender or forwarder (sic)
lineInt64Line number, an integer (goalkeepers 1-2 = first / backup)
first_nameStringFirst (given) name of the player
last_nameStringLast (family) name of the player
numberStringSweater number, a string
is_topscorerBooleanWears the team's PostFinance Top Scorer jersey
is_captainBooleanWhether the player is the team captain
first_goalkeeperBooleanStarting goaltender

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_lineups(game_id=20261105000325)

nl_shots​

One game's shot attempts with rink location (metres) and expected goals (xG); NL games only.

Endpoint URL: GET https://www.nationalleague.ch/api/games/{game_id}

Valid URL: https://www.nationalleague.ch/api/games/20261105000325

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYSIHF game id, 14 digits <season(4)><competition(4)><sequence(6)> (game_id in nl_schedule; the same id as the sihf family's game_id), e.g. 20261105000325.

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 <season(4)><competition(4)><sequence(6)> (Int64; e.g. 20261105000325, 1105 = National League). The same id as the sihf family's game_id; its first four digits are the season END year.
team_sideStringhome or away: the side of the team this row belongs to.
team_idInt64SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
player_idInt64SIHF licence number (Int64; e.g. 305519 = Tobias Geisser). Joins the sihf family's player_id and every SIHF *LicenceNr.
player_numberStringShooter's sweater number, from the game's lineup (a string).
player_first_nameStringShooter's first name, from the game's lineup.
player_last_nameStringShooter's last name, from the game's lineup.
periodInt64Period number (1-3; overtime follows)
timeInt64Game clock elapsed in seconds (period 2 starts at 1200)
strengthStringStrength: EQ (even), PP (power play), PK (shorthanded)
shot_typeStringOutcome: SOG (saved shot on goal), MISS, POST, BLOCK, GOAL
pos_xFloat64Across-ice position in metres, 0-30 (rink width). Both axes run in metres on a 30 x 60 m rink.
pos_yFloat64Distance in metres from the end boards of the attacked end, 0-60 along the rink length. Shots are mirrored to one attacking end (inferred); above 30 is a shot from beyond centre; the goal line is 4 m out.
pos_x_percentageFloat64posX / 30 (verified on 475 shots)
pos_y_percentageFloat64pos_y / 24, the depth of the app's zone drawing; above 1 for long shots.
video_timeInt64Seconds into the game video (= unix - unixStart; verified on 475 shots)
xgFloat64Expected goals of this shot, 0-1. Non-zero from the 2023 season (one sampled game per season; 0 in the 2021 and 2022 games); always 0 on a BLOCK.
xg_sumFloat64Running sum of this team's xg up to and including this shot
unixInt64Wall-clock time of the shot, Unix epoch seconds
unix_startInt64Wall-clock start of the game video, Unix epoch seconds

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_shots(game_id=20261105000325)

nl_top_scorers​

Top scorers (same row shape as /player).

Endpoint URL: GET https://www.nationalleague.ch/api/player/topscorer

Valid URL: https://www.nationalleague.ch/api/player/topscorer?take=3&season=2026&phase=4940

API ParameterPythonPatternRequiredNullableDescription
taketakeYNumber of rows (take=3 answered 3).
seasonseasonYSeason END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).
phasephaseYSIHF phase id (see x-phase-ids). On /player, omitting it served the regular season (byte-identical to phase=4940); that default is assumed but unverified on this route. Phase ids change every season; whether the metadata ids apply to 2027 is unverified.

Returns​

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

col_nametypedescription
player_idInt64SIHF licence number (Int64; e.g. 305519 = Tobias Geisser). Joins the sihf family's player_id and every SIHF *LicenceNr.
first_nameStringFirst (given) name of the player
last_nameStringLast (family) name of the player
team_idInt64SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
team_short_nameStringTeam abbreviation
team_nameStringTeam name as the league app displays it
numberStringSweater number, a string
positionStringgoalkeeper, defender or forwarder (sic); one of 502 rows in the full 2026 body has the integer 0
topscorer_pointsInt64PostFinance Top Scorer game score (an app fantasy rating, not on-ice points)
topscorer_point_averageFloat64PostFinance Top Scorer game score per game
topscorer_market_valueInt64PostFinance Top Scorer game market value
topscorer_market_value_trendInt64Market-value trend: 1 up, 0 flat, -1 down
topscorer_amountInt64CHF amount credited to the team's Top Scorer jersey holder (non-zero for 14 players, one per team)
is_topscorerBooleanWears the team's PostFinance Top Scorer jersey (one per team)
nationalityStringNationality; unobserved: null or empty in every sampled row
birthStringDate of birth, YYYY-MM-DD
heightInt64Height; unobserved: null or empty in every sampled row
weightInt64Weight; unobserved: null or empty in every sampled row
handStringShooting or catching hand; unobserved: null or empty in every sampled row
lcridInt64Not determined (small integer, 0-4 in 2026)
nocInt64Not determined (small integer, 0-2 in 2026)
gpInt64Number of games played
gInt64Number of goals scored
a1Int64First (primary) assists credited
a2Int64Second (secondary) assists credited
penaltiesInt64Penalties taken (upstream fo: fo2 + fo5 + fo10 + gm + mp). Not faceoffs: see face_offs / fot.
pimInt64Penalty minutes
geqInt64Even-strength goals
gppInt64Power-play goals
gpkInt64Shorthanded goals
gwgInt64Game-winning goals
psInt64Shootout shots taken
pgInt64Not determined; 0 on every 2026 row
plInt64Plus count: on ice for an even-strength or shorthanded goal for
miInt64Minus count: on ice for a goal against
toiInt64Time on ice, seconds
toi_eqInt64Even-strength time on ice, seconds
toippInt64Power-play time on ice, seconds (lower-case pp, unlike the box score's toiPp)
toi_pkInt64Shorthanded time on ice, seconds
sogInt64Number of shots on goal
shmInt64Shots that missed the net
shpInt64Shots that hit the post
shbInt64Own shots blocked by an opponent
bksInt64Opponent shots blocked
fowInt64Number of faceoffs won
folInt64Number of faceoffs lost
shiInt64Number of shifts played
gwgkInt64Not determined; 0 on every 2026 row
gwInt64Goaltender wins (incl. overtime and shootout)
glInt64Goaltender losses (incl. overtime and shootout)
fkInt64Games started in goal (inferred: fk <= gp; 42 of 44 for the 2026 games-played leader)
gaInt64Goals against: number of goals conceded
saInt64Shots on goal against
svsInt64Number of saves made by the goaltender
soInt64Number of shutouts (games without a goal conceded)
mipInt64Goaltender time played, hundredths of a minute (6000 = 60:00; = seconds / 0.6)
assistsInt64Assists (a1 + a2; verified on every 2026 row)
pointsInt64Points (g + assists; verified)
goal_efficiencyFloat64Shooting percentage, 100 * g / sog (verified); -1 with no shots
save_percentageFloat64Save percentage, 0-100
face_offs_percentageFloat64Faceoff win percentage, 0-100; -1 with no faceoffs
face_offsInt64Faceoffs taken (fow + fol; verified)
is_captainBooleanWhether the player is the team captain
first_goalkeeperBooleanTeam's first-choice goaltender
ga_per_gameFloat64Goals against per game (ga / gp; verified)
points_per_gameFloat64Points per game
svs_per_gameFloat64Goaltender saves per game played
bks_per_gameFloat64Blocked shots per game
sog_per_gameFloat64Shots on goal per game
shm_per_gameFloat64Missed shots per game
shp_per_gameFloat64Post hits per game
fow_per_gameFloat64Faceoffs won per game
fol_per_gameFloat64Faceoffs lost per game
toi_eq_per_gameFloat64Even-strength time on ice per game, seconds
toi_pp_per_gameFloat64Power-play time on ice per game, seconds
toi_pk_per_gameFloat64Shorthanded time on ice per game, seconds
face_offs_per_game_percentageFloat64Not determined; 0 on the sampled rows
toi_averageFloat64Time on ice per game, seconds
plus_minusInt64Plus/minus (pl - mi; verified)
tgsInt64Team's total game time, seconds (about 3600 per game incl. overtime)
sepInt64Goaltender time played, seconds
toi_percentageFloat64Share of the team's game time in goal, 100 * sep / tgs (verified)
gwitInt64Wins in regulation time (gw = gwit + overtime/shootout wins; verified)
glitInt64Losses in regulation time (gl = glit + overtime/shootout losses; verified)
sagInt64Shots on goal against that were saved (= svs on every 2026 goaltender row)
sagoInt64Shots on goal against that went in (= ga on every 2026 goaltender row)
samInt64Shots against that missed the net
sapInt64Shots against that hit the post
sabInt64Shots against that were blocked
saslotInt64Slot shots against
sagoslotInt64Slot shots against that went in
aeqInt64Even-strength assists
appInt64Power-play assists
apkInt64Shorthanded assists
haInt64Hat tricks (inferred; at most 2 in 2026)
fo2Int64Minor (2-minute) penalties
fo5Int64Major (5-minute) penalties
fo10Int6410-minute misconducts
gmInt64Game misconducts
mpInt64Match penalties
pmInt64Not determined; 0 on every 2026 row
pwgInt64Not determined; 0 on every 2026 row
sgoInt64Not determined. Equals gff + gfd on every team row; skater values are close to but not always g
fowozInt64Offensive-zone faceoffs won
fownzInt64Neutral-zone faceoffs won
fowdzInt64Defensive-zone faceoffs won
folozInt64Offensive-zone faceoffs lost
folnzInt64Neutral-zone faceoffs lost
foldzInt64Defensive-zone faceoffs lost
psgInt64Goals scored in shootouts
pssvsInt64Saves made in shootouts
gotInt64Overtime goals (a subset of g)
ot_rankInt64Overtime-scoring rank; 0 on the 2026 rows (filled in 2027)
ot_gInt64Overtime goals in the overtime table; 0 on every 2026 row
ot_a1Int64Overtime first assists; 0 on every 2026 row
ot_a2Int64Overtime second assists; 0 on every 2026 row
ot_toiInt64Overtime time on ice, seconds; 0 on every 2026 row
ot_aInt64Overtime assists; 0 on every 2026 row
ot_pInt64Overtime points; 0 on every 2026 row
psgwgInt64Game-deciding shootout goals; 0 on every 2026 row
sogslotInt64Shots on goal from the slot
pswgInt64Shootout winners (inferred)
toishiFloat64Time on ice per shift, seconds
shigpFloat64Shifts per game
saslotgpFloat64Slot shots against per game
samgpFloat64Missed shots against per game
sapgpFloat64Post hits against per game
svs_pslotFloat64Slot save percentage, 100 * (saslot - sagoslot) / saslot
sa_per_gameFloat64Shots on goal against per game
otwInt64Goaltender overtime or shootout wins
otlInt64Goaltender overtime or shootout losses
fopozFloat64Offensive-zone faceoff win percentage, 0-100
fopnzFloat64Neutral-zone faceoff win percentage, 0-100
fopdzFloat64Defensive-zone faceoff win percentage, 0-100
fotInt64Faceoffs taken (fow + fol)
fogpFloat64Faceoffs taken per game
psmInt64Shootout misses (inferred; ps = psg + psm fails for 67 of 447 skaters)
ps_percentageFloat64Shootout success percentage, 0-100
gw_shutoutInt64Not determined; equals gw on goaltender rows
sogslot_per_gameFloat64Slot shots on goal per game
psagInt64Shootout goals against (equals ps on goaltender rows)
pssvs_percentageFloat64Shootout save percentage, 0-100; -1 with no shootout shots faced
show_rankBooleanApp flag: show the row's rank
chfInt64CHF credited for the player's points: 300 * points on every 2026 row (PostFinance youth-fund scheme; inferred)
team_statsStringPer-team split for a player who changed teams; unobserved: null or empty in every sampled row

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_top_scorers(phase=4940, season=2026, take=3)

nl_standings​

Standings with team season stats.

Endpoint URL: GET https://www.nationalleague.ch/api/teams

Valid URL: https://www.nationalleague.ch/api/teams?season=2026&phase=4940

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYSeason END year: 2026 = 2025/26. Diffing 2026 vs 2027 changes every list, and /player/{playerId} gp (51 vs 7), so it scopes. Lists are served for 2019-2027 (the app's season picker, /api/content/metadata seasons) and patchily before: 2012 and 2017 answered, 2010/2014/2015/2016/2018 answered [] (probed 2026-10-12).
phasephaseYSIHF phase id (see x-phase-ids). On /player, omitting it served the regular season (byte-identical to phase=4940); that default is assumed but unverified on this route. Phase ids change every season; whether the metadata ids apply to 2027 is unverified.

Returns​

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

col_nametypedescription
rankInt64Position of the team in the standings table
team_idInt64SIHF team id (Int64; e.g. 101151 = HC Davos). The same key space as the sihf family's team_id.
nameStringTeam name as the league app displays it
short_nameStringTeam abbreviation
streakStringLast results, most recent first: W or L
gpInt64Number of games played
gwInt64Wins, all kinds
gwotInt64Overtime + shootout wins (gwo + gwpe)
gwpeInt64Number of wins decided in a shootout
glInt64Losses, all kinds
glotInt64Overtime + shootout losses (glo + glpe)
glpeInt64Shootout losses
poInt64Standings points: 3 per regulation win, 2 per overtime/shootout win, 1 per overtime/shootout loss (verified)
gInt64Number of goals scored
geqInt64Even-strength goals (geq + gpp + gpk can fall short of g)
gppInt64Power-play goals
gpkInt64Shorthanded goals
gaInt64Goals against: number of goals conceded
gaeqInt64Even-strength goals against
gappInt64Shorthanded goals allowed on the power play
gapkInt64Power-play goals allowed while shorthanded
goInt64Goal difference, g - ga (verified)
ppoInt64Power-play opportunities
pksInt64Times shorthanded
sogInt64Number of shots on goal
penaltiesInt64Penalties taken (upstream fo: fo2 + fo5 + fo10 + gm + mp). Not faceoffs: see face_offs / fot.
pimInt64Penalty minutes
fowInt64Number of faceoffs won
folInt64Number of faceoffs lost
shmInt64Shots that missed the net
shpInt64Shots that hit the post
shbInt64Own shots blocked by an opponent
bksInt64Opponent shots blocked
saInt64Shots on goal against
samInt64Shots against that missed the net; 0 on every 2026 team row
sapInt64Shots against that hit the post; 0 on every 2026 team row
sabInt64Shots against that were blocked; 0 on every 2026 team row
sort_orderInt64App sort key; not the rank
websiteStringClub website URL
position_changeStringRank movement since the last round ('none' on every 2026 row)
is_liveBooleanTeam is playing now
current_resultInt64Team's goals in a live game; 0 otherwise
current_opponent_resultInt64Opponent's goals in a live game; 0 otherwise
posInt64Standings position (= rank on every 2026 row)
hgInt64Home games played (gp / 2 on every 2026 row)
gsowInt64Shootout wins; duplicate of gwpe (equal on every 2026 row)
gfdInt64Goals by defenders
gffInt64Goals by forwards
gfiInt64Goals by import (non-Swiss-licence) players (inferred; cf. the sihf/ teamGoalPosNation table)
gasowInt64Shootout losses; duplicate of glpe (equal on every 2026 row)
ppInt64Power-play time, seconds
bpInt64Shorthanded (box-play) time, seconds
fo2Int64Minor (2-minute) penalties
fo5Int64Major (5-minute) penalties
fo10Int6410-minute misconducts
gmInt64Game misconducts
mpInt64Match penalties
psInt64Shootout attempts taken
psgInt64Goals scored in shootouts
psmInt64Shootout misses (ps = psg + psm on every 2026 team row)
psaInt64Shootout shots faced (psga + pssvs)
psgaInt64Shootout goals against
pssvsInt64Saves made in shootouts
specInt64Total home attendance
capInt64Total home arena capacity over the home games
fowozInt64Offensive-zone faceoffs won
fownzInt64Neutral-zone faceoffs won
fowdzInt64Defensive-zone faceoffs won
folozInt64Offensive-zone faceoffs lost
folnzInt64Neutral-zone faceoffs lost
foldzInt64Defensive-zone faceoffs lost
sgoInt64Not determined. Equals gff + gfd on every team row; skater values are close to but not always g
sslotInt64Shots from the slot
sagInt64Shots on goal against that were saved; 0 on every 2026 team row (use sa)
sagoInt64Shots on goal against that went in; 0 on every 2026 team row (use ga)
saslotInt64Slot shots against
qualification_statusStringClinch marker ('none' on every 2026 row)
is_qualified_chlBooleanQualified for the Champions Hockey League
goal_efficiencyFloat64Shooting percentage, 100 * g / sog (verified); -1 with no shots
ppg_efficiencyFloat64Power-play percentage, 100 * gpp / ppo (verified)
ppggpFloat64Power-play goals per game
ppopgpFloat64Power-play opportunities per game
ppgpFloat64Power-play time per game, seconds
gpgFloat64Goals scored per game played
gagpFloat64Goals against per game
gappgpFloat64Shorthanded goals against per game
geqgpFloat64Even-strength goals per game
gaeqgpFloat64Even-strength goals against per game
bks_per_gameFloat64Blocked shots per game
pim_per_gameFloat64Penalty minutes per game
ps_percentageFloat64Shootout success percentage, 0-100
attendanceInt64Average home attendance (spec / hg)
capacityInt64Arena capacity (cap / hg)
utilizationFloat64Capacity utilisation, 100 * spec / cap
soggpFloat64Shots on goal per game
sslotgpFloat64Slot shots per game
shmgpFloat64Missed shots per game
shpgpFloat64Post hits per game
gpkgpFloat64Shorthanded goals per game
pk_efficiencyFloat64Penalty-kill percentage, 100 * (1 - gapk / pks) (verified)
pksgpFloat64Times shorthanded per game
gapkgpFloat64Power-play goals against per game
bpgpFloat64Shorthanded time per game, seconds
fotInt64Faceoffs taken (fow + fol)
face_offs_percentageFloat64Faceoff win percentage, 0-100; -1 with no faceoffs
fogpFloat64Faceoffs taken per game
fowgpFloat64Faceoffs won per game
folgpFloat64Faceoffs lost per game
fopozFloat64Offensive-zone faceoff win percentage, 0-100
fopnzFloat64Neutral-zone faceoff win percentage, 0-100
fopdzFloat64Defensive-zone faceoff win percentage, 0-100
sagpFloat64Shots on goal against per game
saslotgpFloat64Slot shots against per game
gffdInt64Goals by forwards and defenders (gff + gfd; verified)
gffpFloat64Share of goals by forwards, 100 * gff / g
gfdpFloat64Share of goals by defenders, 100 * gfd / g
gfipFloat64Share of goals by import players, 100 * gfi / g
pssvs_percentageFloat64Shootout save percentage, 0-100; -1 with no shootout shots faced
pgpFloat64Standings points per game
gwitInt64Wins in regulation time (gw = gwit + overtime/shootout wins; verified)
gwoInt64Number of wins in overtime
glitInt64Losses in regulation time (gl = glit + overtime/shootout losses; verified)
gloInt64Overtime losses

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

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. A 404, or an empty answer (no games or rows for that season, team or phase).
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. A failed fetch, an error object in a 200, a body without the ids it must carry, or an answer for another season, team, game or player.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

nl_standings(phase=4940, season=2026)