Skip to main content

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

nl_player_box​

One game's player box score: goals, assists, shots, faceoffs, ice time, goaltending.

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.
numberStringSweater number, a string
first_nameStringFirst (given) name of the player
last_nameStringLast (family) name of the player
short_nameStringInitial and last name, e.g. 'S. Aeschlimann'
nameStringFirst and last name
positionStringgoalkeeper, defender or forwarder (sic)
fowInt64Number of faceoffs won
folInt64Number of faceoffs lost
sogInt64Number of shots on goal
shmInt64Shots that missed the net
shpInt64Shots that hit the post
shbInt64Own shots blocked by an opponent
bksInt64Opponent shots blocked
toiInt64Time on ice, seconds
toi_eqInt64Even-strength time on ice, seconds
toi_ppInt64Power-play time on ice, seconds
toi_pkInt64Shorthanded time on ice, seconds
pimInt64Penalty minutes
gInt64Number of goals scored
a1Int64First (primary) assists credited
a2Int64Second (secondary) assists credited
plInt64Plus count: on ice for an even-strength or shorthanded goal for
miInt64Minus count: on ice for a goal against
mipInt64Goaltender time played, hundredths of a minute (6000 = 60:00; = seconds / 0.6)
gaInt64Goals against: number of goals conceded
svsInt64Number of saves made by the goaltender
saInt64Shots on goal against
gaaFloat64Goals-against average; 0 in every sampled row, even for goaltenders who conceded
save_percentageFloat64Save percentage, 0-100
faceoffsInt64Faceoffs taken (upstream fo: fow + fol). Not penalties.
faceoffs_percentageFloat64Faceoff win percentage (upstream foPercentage); -1 without faceoffs.
aInt64Assists (a1 + a2)
ptsInt64Points (goals + assists)
pl_miInt64Plus/minus (pl - mi)

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_player_box(game_id=20261105000325)

nl_player_stats​

Season stats for every player, with playerId.

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

Valid URL: https://www.nationalleague.ch/api/player?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). Omitted = the regular season: /player?season=2026 and phase=4940 answer byte-identical bodies, phase=5297 (playoffs) a different one (max gp 19 vs 52). 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_player_stats(phase=4940, season=2026)

nl_player_season​

One player's season stats.

Endpoint URL: GET https://www.nationalleague.ch/api/player/{player_id}

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

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYSIHF licence number (player_id in nl_player_stats; joins the sihf family's player_id), e.g. 305519.
seasonseasonYOmitted = the current season: /player/305519 without it answered 2027 (gp 7; 51 for season=2026). 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).
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_player_season(phase=4940, player_id=305519, season=2026)