Skip to main content

NHL — NHL Web API — Other

nhl_boxscore​

Pull the boxscore for one NHL game.

Endpoint URL: GET https://api-web.nhle.com/v1/gamecenter/{game_id}/boxscore

Valid URL: https://api-web.nhle.com/v1/gamecenter/2024020001/boxscore

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYgame_id path parameter.

Returns​

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

col_nametypedescription
home_awayStringHome or away indicator.
position_groupStringPosition group name (e.g. Centers).
player_idInt64Unique player identifier.
sweater_numberInt64Jersey number.
positionStringPlayer position.
goalsFloat64Goals scored.
assistsFloat64Assists.
pointsFloat64Total points (goals + assists).
plus_minusFloat64Plus/minus rating.
pimInt64Penalty minutes.
hitsFloat64Hits.
power_play_goalsFloat64Power-play goals.
sogFloat64Shots on goal from the area.
faceoff_winning_pctgFloat64Faceoff win percentage.
toiStringTime on ice.
blocked_shotsFloat64Blocked shots.
shiftsFloat64Number of shifts.
giveawaysFloat64Giveaways.
takeawaysFloat64Takeaways.
name_defaultStringPlayer name (default localization).
even_strength_shots_againstStringEven-strength shots against (saves/total).
power_play_shots_againstStringPower-play shots against (saves/total).
shorthanded_shots_againstStringShorthanded shots against (saves/total).
save_shots_againstStringTotal shots against (saves/total).
even_strength_goals_againstFloat64Even-strength goals against.
power_play_goals_againstFloat64Power-play goals against.
shorthanded_goals_againstFloat64Shorthanded goals against.
goals_againstFloat64Goals against.
starterBooleanWhether the goalie started the game.
shots_againstFloat64Shots faced.
savesFloat64Saves made.
save_pctgFloat64Save percentage.
decisionStringGoalie decision (W/L/O).
name_csStringPlayer name (Czech localization).
name_fiStringPlayer name (Finnish localization).
name_skStringPlayer name (Slovak localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_boxscore(game_id=2024020001)

nhl_landing​

Pull the gamecenter landing payload for one NHL game.

Endpoint URL: GET https://api-web.nhle.com/v1/gamecenter/{game_id}/landing

Valid URL: https://api-web.nhle.com/v1/gamecenter/2024020001/landing

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYgame_id path parameter.

Returns​

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

col_nametypedescription
idInt64Unique player identifier.
seasonInt64Season year (echoed from arg).
game_typeInt64Game type the row belongs to.
limited_scoringBooleanBoolean flag indicating whether the game is subject to a limited-scoring designation (e.g., a low-scoring or shootout-resolved game) per NHL api-web metadata.
game_dateStringGame date.
start_time_utcStringScheduled start time in UTC.
eastern_utc_offsetStringEastern time UTC offset.
venue_utc_offsetStringVenue UTC offset.
venue_timezoneStringVenue time zone.
tv_broadcastsStringNested list of TV broadcast details.
game_stateStringGame state (e.g., FINAL, LIVE).
game_schedule_stateStringSchedule state of the game.
shootout_in_useBooleanBoolean flag indicating whether a shootout is in use as the tiebreaker format for this game per NHL api-web game landing metadata.
reg_periodsInt64Number of regulation periods scheduled for this game (typically 3 for NHL, may differ for special-format games).
ot_in_useBooleanBoolean flag indicating whether overtime rules are in effect for this game, as determined by the NHL api-web game landing endpoint.
ties_in_useBooleanWhether ties were in use that season.
venue_defaultStringVenue name (default language).
venue_location_defaultStringDefault-language display string for the city or location associated with the game's venue, as provided by the NHL api-web landing endpoint.
period_descriptor_numberInt64Period number.
period_descriptor_period_typeStringPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsInt64Maximum number of regulation periods.
away_team_idInt64Away team identifier.
away_team_common_name_defaultStringAway team common name (default language).
away_team_abbrevStringAway team abbreviation.
away_team_place_name_defaultStringAway team place name (default language).
away_team_place_name_with_preposition_defaultStringAway team place name with preposition (default).
away_team_place_name_with_preposition_frStringAway team place name with preposition (French).
away_team_scoreInt64Away team final score.
away_team_sogInt64Away team shots on goal.
away_team_logoStringURL to the away team logo.
away_team_dark_logoStringURL to the away team dark logo.
home_team_idInt64Home team identifier.
home_team_common_name_defaultStringHome team common name (default language).
home_team_abbrevStringHome team abbreviation.
home_team_place_name_defaultStringHome team place name (default language).
home_team_place_name_frStringHome team place name (French).
home_team_place_name_with_preposition_defaultStringHome team place name with preposition (default).
home_team_place_name_with_preposition_frStringHome team place name with preposition (French).
home_team_scoreInt64Home team final score.
home_team_sogInt64Home team shots on goal.
home_team_logoStringURL to the home team logo.
home_team_dark_logoStringURL to the home team dark logo.
summary_scoringStringSerialized summary of scoring events for the game, flattened from the nested NHL api-web landing payload scoring sub-object.
summary_three_starsStringSerialized representation of the three-star selections for the game, flattened from the nested NHL api-web landing payload.
summary_penaltiesStringSerialized summary of penalty events for the game, flattened from the nested NHL api-web landing payload penalties sub-object.
clock_time_remainingStringRemaining time in the current period formatted as MM:SS, as provided by the NHL api-web game landing endpoint.
clock_seconds_remainingInt64Integer count of seconds remaining in the current period at the time the NHL api-web landing payload was captured.
clock_runningBooleanBoolean flag indicating whether the game clock is actively counting down at the time the NHL api-web landing payload was captured.
clock_in_intermissionBooleanBoolean flag indicating whether the game clock is currently paused during an intermission period between regulation periods.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_landing(game_id=2024020001)

nhl_right_rail​

Pull the gamecenter right-rail payload (in-game widgets).

Endpoint URL: GET https://api-web.nhle.com/v1/gamecenter/{game_id}/right-rail

Valid URL: https://api-web.nhle.com/v1/gamecenter/2024020001/right-rail

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYgame_id path parameter.

Returns​

return_parsed=True (default) — a dict of polars.DataFrames (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).

season_series

col_nametypedescription
idInt64Unique player identifier.
seasonInt64Season year (echoed from arg).
game_typeInt64Game type the row belongs to.
game_dateStringGame date.
start_time_utcStringScheduled start time in UTC.
eastern_utc_offsetStringEastern time UTC offset.
venue_utc_offsetStringVenue UTC offset.
game_stateStringGame state (e.g., FINAL, LIVE).
game_schedule_stateStringSchedule state of the game.
game_center_linkStringLink to the NHL game center page.
away_team_idInt64Away team identifier.
away_team_abbrevStringAway team abbreviation.
away_team_logoStringURL to the away team logo.
away_team_scoreInt64Away team final score.
home_team_idInt64Home team identifier.
home_team_abbrevStringHome team abbreviation.
home_team_logoStringURL to the home team logo.
home_team_scoreInt64Home team final score.
period_descriptor_numberInt64Period number.
period_descriptor_period_typeStringPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsInt64Maximum number of regulation periods.
game_outcome_last_period_typeStringPeriod type in which the game ended.

shots_by_period

col_nametypedescription
awayInt64Away team shots in the period.
homeInt64Whether the player's team was home.
period_descriptor_numberInt64Period number.
period_descriptor_period_typeStringPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsInt64Maximum number of regulation periods.

team_game_stats

col_nametypedescription
categoryStringStat leader category.
away_valueString
home_valueString

game_info

col_nametypedescription
refereesString
linesmenString
away_team_head_coach_defaultString
away_team_scratchesString
home_team_head_coach_defaultString
home_team_scratchesString

linescore_by_period

col_nametypedescription
awayInt64Away team shots in the period.
homeInt64Whether the player's team was home.
period_descriptor_numberInt64Period number.
period_descriptor_period_typeStringPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsInt64Maximum number of regulation periods.

season_series_wins

col_nametypedescription
away_team_winsInt64
home_team_winsInt64
needed_to_winInt64

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_right_rail(game_id=2024020001)

nhl_score​

Pull the single-day scoreboard for date.

Endpoint URL: GET https://api-web.nhle.com/v1/score/{date}

Valid URL: https://api-web.nhle.com/v1/score/now

API ParameterPythonPatternRequiredNullableDescription
datedateYdate path parameter.

Returns​

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

col_nametypedescription
idInt64Unique player identifier.
seasonInt64Season year (echoed from arg).
game_typeInt64Game type the row belongs to.
game_dateStringGame date.
start_time_utcStringScheduled start time in UTC.
eastern_utc_offsetStringEastern time UTC offset.
venue_utc_offsetStringVenue UTC offset.
tv_broadcastsStringNested list of TV broadcast details.
game_stateStringGame state (e.g., FINAL, LIVE).
game_schedule_stateStringSchedule state of the game.
game_center_linkStringLink to the NHL game center page.
series_urlStringURL path to the NHL api-web series landing page providing full details about this playoff series matchup.
three_min_recapStringLink to the three-minute recap.
neutral_siteBooleanWhether the game is at a neutral site.
venue_timezoneStringVenue time zone.
periodInt64Period number.
goalsStringGoals scored.
venue_defaultStringVenue name (default language).
away_team_idInt64Away team identifier.
away_team_name_defaultStringDefault-language full team name for the away team in this game, as provided by the NHL api-web scoreboard endpoint.
away_team_abbrevStringAway team abbreviation.
away_team_scoreInt64Away team final score.
away_team_sogInt64Away team shots on goal.
away_team_logoStringURL to the away team logo.
home_team_idInt64Home team identifier.
home_team_name_defaultStringDefault-language full team name for the home team in this game, as provided by the NHL api-web scoreboard endpoint.
home_team_abbrevStringHome team abbreviation.
home_team_scoreInt64Home team final score.
home_team_sogInt64Home team shots on goal.
home_team_logoStringURL to the home team logo.
series_status_roundInt64Numeric identifier for the playoff round (e.g., 1 = First Round, 2 = Second Round) in which this game is being played.
series_status_series_abbrevStringShort abbreviation code identifying the specific playoff series matchup, as provided by the NHL api-web score endpoint.
series_status_series_titleStringHuman-readable title describing the playoff series matchup (e.g., team abbreviations and round name), as returned by the NHL api-web score endpoint.
series_status_series_letterStringSingle-letter label (e.g., 'A', 'B') assigned to the playoff series by the NHL api-web score endpoint to distinguish simultaneous matchups within a round.
series_status_needed_to_winInt64Number of additional wins required by the series leader to clinch the playoff round at the time of this game.
series_status_top_seed_team_abbrevStringThree-letter abbreviation for the higher-seeded team in this playoff series, as reported by the NHL api-web score endpoint.
series_status_top_seed_winsInt64Number of wins accumulated by the higher-seeded team in the current playoff series as of this game.
series_status_bottom_seed_team_abbrevStringThree-letter abbreviation for the lower-seeded team in this playoff series, as reported by the NHL api-web score endpoint.
series_status_bottom_seed_winsInt64Number of wins accumulated by the lower-seeded team in the current playoff series as of this game.
series_status_game_number_of_seriesInt64Sequential game number within the playoff series (e.g., 1 through 7 for a best-of-seven round).
clock_time_remainingStringRemaining time in the current period in MM:SS format, as provided by the NHL api-web score endpoint.
clock_seconds_remainingInt64Integer count of seconds remaining in the current period as reported by the NHL api-web score endpoint.
clock_runningBooleanBoolean flag indicating whether the game clock is actively running at the time the NHL api-web score payload was captured.
clock_in_intermissionBooleanBoolean flag indicating whether the game clock is paused during an intermission at the time the NHL api-web score payload was captured.
period_descriptor_numberInt64Period number.
period_descriptor_period_typeStringPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsInt64Maximum number of regulation periods.
game_outcome_last_period_typeStringPeriod type in which the game ended.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_score()

nhl_schedule_calendar​

Pull the calendar of game-days for the season.

Endpoint URL: GET https://api-web.nhle.com/v1/schedule-calendar/{date}

Valid URL: https://api-web.nhle.com/v1/schedule-calendar/now

API ParameterPythonPatternRequiredNullableDescription
datedateYdate path parameter.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_nhl_web_schedule); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_schedule_calendar()

nhl_standings​

Pull the NHL standings.

Endpoint URL: GET https://api-web.nhle.com/v1/standings/{date}

Valid URL: https://api-web.nhle.com/v1/standings/now

API ParameterPythonPatternRequiredNullableDescription
datedateYdate path parameter.

Returns​

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

col_nametypedescription
clinch_indicatorString
conference_abbrevStringConference abbreviation.
conference_home_sequenceInt64Team's rank within its conference based solely on home-game results in the NHL api-web standings.
conference_l10_sequenceInt64Team's rank within its conference based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
conference_nameStringConference name.
conference_road_sequenceInt64Team's rank within its conference based solely on road-game results in the NHL api-web standings.
conference_sequenceInt64Team's seeding position within the conference.
dateStringGame date (ISO 8601 datetime string).
division_abbrevStringDivision abbreviation.
division_home_sequenceInt64Team's rank within its division based solely on home-game results in the NHL api-web standings.
division_l10_sequenceInt64Team's rank within its division based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
division_nameStringDivision name.
division_road_sequenceInt64Team's rank within its division based solely on road-game results in the NHL api-web standings.
division_sequenceInt64Team's seeding position within the division.
game_type_idInt64Game type identifier (regular/playoffs).
games_playedInt64Matches played.
goal_differentialInt64Goal differential.
goal_differential_pctgFloat64Team's goal differential normalized to a per-game (or percentage) basis, as published in the NHL standings feed.
goal_againstInt64Total number of goals allowed by the team across all games played in the current standings snapshot.
goal_forInt64Total number of goals scored by the team across all games played in the current standings snapshot.
goals_for_pctgFloat64Team's share of total goals scored in all games involving this team, calculated as goals-for divided by (goals-for + goals-against).
home_games_playedInt64Number of home games the team has completed in the current season as of this standings snapshot.
home_goal_differentialInt64Net goal differential (goals-for minus goals-against) accumulated across all home games played in the current season.
home_goals_againstInt64Total number of goals allowed by the team in home games during the current season.
home_goals_forInt64Total number of goals scored by the team in home games during the current season.
home_lossesInt64Losses at home.
home_ot_lossesInt64Home overtime losses.
home_pointsInt64
home_regulation_plus_ot_winsInt64Number of home wins achieved in regulation or overtime (excluding shootout decisions) in the current season.
home_regulation_winsInt64Number of home wins achieved in regulation time (within 60 minutes) in the current season.
home_tiesInt64Ties at home.
home_winsInt64Wins at home.
l10_games_playedInt64Number of games included in the team's last-10-games performance window (typically 10, may be lower early in the season).
l10_goal_differentialInt64Net goal differential (goals-for minus goals-against) across the team's most recent 10 games.
l10_goals_againstInt64Total goals allowed by the team across its most recent 10 games.
l10_goals_forInt64Total goals scored by the team across its most recent 10 games.
l10_lossesInt64Losses in the last ten games.
l10_ot_lossesInt64Overtime losses in the last ten games.
l10_pointsInt64Total standings points earned by the team across its most recent 10 games.
l10_regulation_plus_ot_winsInt64Number of wins in regulation or overtime (excluding shootouts) within the team's most recent 10 games.
l10_regulation_winsInt64Number of regulation-time wins within the team's most recent 10 games.
l10_tiesInt64Number of tied results recorded within the team's most recent 10 games (applicable to seasons using tie rules).
l10_winsInt64Wins in the last ten games.
league_home_sequenceInt64Team's rank league-wide based solely on home-game results in the NHL api-web standings.
league_l10_sequenceInt64Team's rank league-wide based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
league_road_sequenceInt64Team's rank league-wide based solely on road-game results in the NHL api-web standings.
league_sequenceInt64Team's seeding position within the league.
lossesInt64Number of matches the team has lost.
ot_lossesInt64Overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Competition points.
regulation_plus_ot_win_pctgFloat64Fraction of games won in regulation or overtime (excluding shootout decisions), used as a tiebreaker metric in NHL standings.
regulation_plus_ot_winsInt64Wins in regulation plus overtime.
regulation_win_pctgFloat64Fraction of games won in regulation time only, used as a secondary tiebreaker in NHL standings.
regulation_winsInt64Wins in regulation.
road_games_playedInt64Number of road games the team has completed in the current season as of this standings snapshot.
road_goal_differentialInt64Net goal differential (goals-for minus goals-against) accumulated across all road games played in the current season.
road_goals_againstInt64Total number of goals allowed by the team in road games during the current season.
road_goals_forInt64Total number of goals scored by the team in road games during the current season.
road_lossesInt64Losses on the road.
road_ot_lossesInt64Road overtime losses.
road_pointsInt64Total standings points earned by the team in road games during the current season.
road_regulation_plus_ot_winsInt64Number of road wins achieved in regulation or overtime (excluding shootout decisions) in the current season.
road_regulation_winsInt64Number of road wins achieved in regulation time (within 60 minutes) in the current season.
road_tiesInt64Ties on the road.
road_winsInt64Wins on the road.
season_idInt64Season identifier.
shootout_lossesInt64Shootout losses.
shootout_winsInt64Shootout wins.
streak_codeStringCurrent streak code (W/L/OT).
streak_countInt64Length of the current streak.
team_logoStringURL to the team logo image.
tiesInt64Number of matches the team has drawn.
waivers_sequenceInt64Team's position in the NHL waiver-claim priority order for the current season, determined by reverse standings order.
wildcard_sequenceInt64Team's wild card seeding position.
win_pctgFloat64Team's overall win percentage (wins divided by games played), as reported by the NHL api-web standings endpoint.
winsInt64Number of matches the team has won.
place_name_defaultStringDefault-language city or place name associated with the team's market (e.g., "Toronto"), as returned by the NHL api-web standings endpoint.
team_name_defaultStringTeam name (default locale).
team_name_frStringTeam name (French locale).
team_common_name_defaultStringTeam common name (default language).
team_abbrev_defaultStringDefault three-letter abbreviation for the team (e.g., "TOR"), as provided by the NHL api-web standings endpoint.
place_name_frStringFrench-language city or place name associated with the team's market, as returned by the NHL api-web standings endpoint.
team_common_name_frStringTeam common name (French localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_standings()

nhl_standings_season​

Pull the per-season standings cutover dates.

Endpoint URL: GET https://api-web.nhle.com/v1/standings-season

Valid URL: https://api-web.nhle.com/v1/standings-season

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
idInt64Unique player identifier.
conferences_in_useBooleanWhether conferences were in use that season.
divisions_in_useBooleanWhether divisions were in use that season.
point_for_o_tloss_in_useBooleanWhether a point for overtime losses was in use.
regulation_wins_in_useBooleanWhether regulation wins were tracked.
row_in_useBooleanWhether the regulation/overtime/shootout format was in use.
standings_endStringEnd date of the standings period.
standings_startStringStart date of the standings period.
ties_in_useBooleanWhether ties were in use that season.
wildcard_in_useBooleanWhether the wild-card playoff format was in use this season.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_standings_season()

nhl_roster​

Pull a team's roster.

Endpoint URL: GET https://api-web.nhle.com/v1/roster/{team}/{season}

Valid URL: https://api-web.nhle.com/v1/roster/TOR/current

API ParameterPythonPatternRequiredNullableDescription
teamteamYteam path parameter.
seasonseasonYseason path parameter.

Returns​

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

col_nametypedescription
position_groupStringPosition group name (e.g. Centers).
idInt64Unique player identifier.
headshotStringURL to the player headshot image.
sweater_numberInt64Jersey number.
position_codeStringPlayer position code.
shoots_catchesStringHandedness (shoots/catches).
height_in_inchesInt64Height in inches.
weight_in_poundsInt64Weight in pounds.
height_in_centimetersInt64Height in centimeters.
weight_in_kilogramsInt64Weight in kilograms.
birth_dateStringPlayer birth date.
birth_countryStringPlayer birth country.
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).
birth_city_defaultStringBirth city (default localization).
birth_state_province_defaultStringBirth state/province (default localization).
birth_city_csStringBirth city (Czech localization).
birth_city_deStringBirth city (German localization).
birth_city_fiStringBirth city (Finnish localization).
birth_city_skStringBirth city (Slovak localization).
birth_city_svStringBirth city (Swedish localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_roster(team='TOR')

nhl_roster_season​

Pull every season a team has had on file.

Endpoint URL: GET https://api-web.nhle.com/v1/roster-season/{team}

Valid URL: https://api-web.nhle.com/v1/roster-season/TOR

API ParameterPythonPatternRequiredNullableDescription
teamteamYteam path parameter.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_nhl_web_roster); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_roster_season(team='TOR')

nhl_skater_leaders​

Pull skater stat leaders.

Endpoint URL: GET https://api-web.nhle.com/v1/skater-stats-leaders/{season}/{game_type}

Valid URL: https://api-web.nhle.com/v1/skater-stats-leaders/current

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
game_typegame_typeYgame_type path parameter.

Returns​

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

col_nametypedescription
categoryStringStat leader category.
idInt64Unique player identifier.
sweater_numberInt64Jersey number.
headshotStringURL to the player headshot image.
team_abbrevStringTeam abbreviation.
team_logoStringURL to the team logo image.
positionStringPlayer position.
valueInt64Leader stat numeric value.
first_name_defaultStringPlayer first name (default language).
first_name_csStringPlayer first name (Czech localization).
first_name_deStringPlayer first name (German).
first_name_esStringPlayer first name (Spanish).
first_name_fiStringPlayer first name (Finnish).
first_name_skStringPlayer first name (Slovak localization).
first_name_svStringPlayer first name (Swedish).
last_name_defaultStringPlayer last name (default language).
team_name_defaultStringTeam name (default locale).
last_name_csStringPlayer last name (Czech localization).
last_name_fiStringPlayer last name (Finnish localization).
last_name_skStringPlayer last name (Slovak localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_skater_leaders()

nhl_goalie_leaders​

Pull goalie stat leaders.

Endpoint URL: GET https://api-web.nhle.com/v1/goalie-stats-leaders/{season}/{game_type}

Valid URL: https://api-web.nhle.com/v1/goalie-stats-leaders/current

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
game_typegame_typeYgame_type path parameter.

Returns​

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

col_nametypedescription
categoryStringStat leader category.
idInt64Unique player identifier.
sweater_numberInt64Jersey number.
headshotStringURL to the player headshot image.
team_abbrevStringTeam abbreviation.
team_logoStringURL to the team logo image.
positionStringPlayer position.
valueInt64Leader stat numeric value.
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).
team_name_defaultStringTeam name (default locale).
first_name_csStringPlayer first name (Czech localization).
first_name_skStringPlayer first name (Slovak localization).
last_name_csStringPlayer last name (Czech localization).
last_name_skStringPlayer last name (Slovak localization).
last_name_fiStringPlayer last name (Finnish localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_goalie_leaders()

nhl_partner_game_odds​

Pull the NHL betting partner's current odds board for one country.

Endpoint URL: GET https://api-web.nhle.com/v1/partner-game/{country_code}/now

Valid URL: https://api-web.nhle.com/v1/partner-game/US/now

API ParameterPythonPatternRequiredNullableDescription
country_codecountry_codeYTwo-letter country code whose betting partner's board to read (e.g. "US", "CA").

Returns​

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

col_nametypedescription
current_odds_dateStringDate (YYYY-MM-DD) the NHL betting partner's odds board covers.
last_updated_utcStringUTC timestamp at which the betting partner last refreshed the odds board.
game_idInt64Unique game identifier.
game_typeInt64Game type the row belongs to.
start_time_utcStringScheduled start time in UTC.
home_awayStringHome or away indicator.
odds_descriptionStringMarket the odds line belongs to (e.g., 'MONEY_LINE_2_WAY', 'MONEY_LINE_2_WAY_TNB', 'MONEY_LINE_3_WAY', 'PUCK_LINE', 'OVER_UNDER'); null when the team carries no lines.
odds_valueFloat64American odds for the line (e.g., -145 or 114); null when the team carries no lines.
odds_qualifierStringQualifier of the line: the puck-line spread (e.g., '+1.5'), the over/under total (e.g., 'O6.5'), 'Draw' for the three-way draw price, or empty.
betting_partner_accent_colorStringAccent color (hex) of the betting partner's branding.
betting_partner_bg_colorStringBackground color (hex) of the betting partner's branding.
betting_partner_countryStringCountry the betting partner's odds board is published for (e.g., 'USA').
betting_partner_image_urlStringURL of the betting partner's logo image.
betting_partner_nameStringName of the NHL's official betting partner for the country (e.g., 'DraftKings').
betting_partner_partner_idInt64NHL api-web identifier of the betting partner.
betting_partner_site_urlStringAffiliate link to the betting partner's site.
betting_partner_text_colorStringText color (hex) of the betting partner's branding.
team_abbrevStringTeam abbreviation.
team_idInt64Unique team identifier.
team_logoStringURL to the team logo image.
team_name_defaultStringTeam name (default locale).
team_name_frStringTeam name (French locale).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_partner_game_odds(country_code='US')

nhl_team_prospects​

Pull a team's prospect pool.

Endpoint URL: GET https://api-web.nhle.com/v1/prospects/{team}

Valid URL: https://api-web.nhle.com/v1/prospects/EDM

API ParameterPythonPatternRequiredNullableDescription
teamteamYteam path parameter.

Returns​

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

col_nametypedescription
birth_countryStringPlayer birth country.
birth_dateStringPlayer birth date.
headshotStringURL to the player headshot image.
height_in_centimetersInt64Height in centimeters.
height_in_inchesInt64Height in inches.
idInt64Unique player identifier.
position_codeStringPlayer position code.
shoots_catchesStringHandedness (shoots/catches).
weight_in_kilogramsInt64Weight in kilograms.
weight_in_poundsInt64Weight in pounds.
prospect_groupStringProspect position group the player belongs to.
birth_city_defaultStringBirth city (default localization).
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).
sweater_numberFloat64Jersey number.
birth_state_province_defaultStringBirth state/province (default localization).
birth_city_csStringBirth city (Czech localization).
birth_city_fiStringBirth city (Finnish localization).
birth_city_skStringBirth city (Slovak localization).
birth_city_svStringBirth city (Swedish localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_team_prospects(team='EDM')

nhl_tv_schedule​

Pull the NHL Network TV schedule for one day.

Endpoint URL: GET https://api-web.nhle.com/v1/network/tv-schedule/{date}

Valid URL: https://api-web.nhle.com/v1/network/tv-schedule/2025-04-01

API ParameterPythonPatternRequiredNullableDescription
datedateYdate path parameter.

Returns​

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

col_nametypedescription
schedule_dateStringDay the TV schedule was requested for (YYYY-MM-DD).
broadcast_image_urlStringImage file name of the program's artwork (e.g., 'onthefly.png').
broadcast_statusStringAiring status of the program (e.g., 'LIVE'); empty for a non-live airing.
broadcast_typeStringBroadcast format of the airing (e.g., 'HD').
descriptionStringProgram synopsis.
duration_secondsInt64Airing length in seconds.
end_timeStringAiring end, ISO 8601 local time without offset (e.g. "2025-04-01T01:00:00").
house_numberStringNHL Network's internal house number for the airing.
start_timeStringAiring start, ISO 8601 local time without offset (e.g. "2025-04-01T00:00:00").
titleStringTitle of the program airing in this slot (e.g. "On The Fly").

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_tv_schedule(date='2025-04-01')

nhl_where_to_watch​

Pull the NHL.com where-to-watch (streaming and broadcast availability) payload.

Endpoint URL: GET https://api-web.nhle.com/v1/where-to-watch

Valid URL: https://api-web.nhle.com/v1/where-to-watch

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — the output of parse_nhl_web_flat; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: api-web.nhle.com answers 404 for /v1/where-to-watch with and without query arguments (2026-11-30).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_where_to_watch()

nhl_postal_lookup​

Pull the teams holding local broadcast rights (with region and network type) for one postal or ZIP code.

Endpoint URL: GET https://api-web.nhle.com/v1/postal-lookup/{postal_code}

Valid URL: https://api-web.nhle.com/v1/postal-lookup/10001

API ParameterPythonPatternRequiredNullableDescription
postal_codepostal_codeYPostal or ZIP code to look up (e.g. "10001").

Returns​

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

col_nametypedescription
cityStringCity of the looked-up postal code.
countryStringCountry of the postal code, ISO alpha-2 (e.g. "US").
countyStringCounty of the postal code.
network_typeStringRegional broadcast network code the NHL assigns to the postal code (e.g., '50 MHT').
postal_codeStringThe postal code looked up.
state_provinceStringState or province of the postal code.
team_name_defaultStringClub whose regional broadcasts reach this postal code (English name); one row per club.
team_name_frStringSame club name in French.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_postal_lookup(postal_code='10001')

nhl_location​

Pull the country the NHL web service places the caller in.

Endpoint URL: GET https://api-web.nhle.com/v1/location

Valid URL: https://api-web.nhle.com/v1/location

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

col_nametypedescription
countryStringCountry the requesting IP address resolves to, ISO alpha-2 (e.g. "US").

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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​

nhl_location()

Pull NHL.com smart-link routing entries, optionally for one handle.

Endpoint URL: GET https://api-web.nhle.com/v1/smartlinks

Valid URL: https://api-web.nhle.com/v1/smartlinks

API ParameterPythonPatternRequiredNullableDescription
handlehandleYSmart-link handle to narrow the lookup to; omit for every entry.

return_parsed=True (default) — the output of parse_nhl_web_flat; pass return_as_pandas=True for a pandas.DataFrame.

No returns table is published for this endpoint: no capture: api-web.nhle.com answers an empty array for /v1/smartlinks, with or without a handle (2026-11-30).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist.
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.
nhl_smartlinks()