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_awaycharacterHome or away indicator.
position_groupcharacterPosition group name (e.g. Centers).
player_idintegerUnique player identifier.
sweater_numberintegerJersey number.
positioncharacterPlayer position.
goalsdoubleGoals scored.
assistsdoubleAssists.
pointsdoubleTotal points (goals + assists).
plus_minusdoublePlus/minus rating.
pimintegerPenalty minutes.
hitsdoubleHits.
power_play_goalsdoublePower-play goals.
sogdoubleShots on goal from the area.
faceoff_winning_pctgdoubleFaceoff win percentage.
toicharacterTime on ice.
blocked_shotsdoubleBlocked shots.
shiftsdoubleNumber of shifts.
giveawaysdoubleGiveaways.
takeawaysdoubleTakeaways.
name_defaultcharacterPlayer name (default localization).
even_strength_shots_againstcharacterEven-strength shots against (saves/total).
power_play_shots_againstcharacterPower-play shots against (saves/total).
shorthanded_shots_againstcharacterShorthanded shots against (saves/total).
save_shots_againstcharacterTotal shots against (saves/total).
even_strength_goals_againstdoubleEven-strength goals against.
power_play_goals_againstdoublePower-play goals against.
shorthanded_goals_againstdoubleShorthanded goals against.
goals_againstdoubleGoals against.
starterlogicalWhether the goalie started the game.
shots_againstdoubleShots faced.
savesdoubleSaves made.
save_pctgdoubleSave percentage.
decisioncharacterGoalie decision (W/L/O).
name_cscharacterPlayer name (Czech localization).
name_ficharacterPlayer name (Finnish localization).
name_skcharacterPlayer name (Slovak localization).

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

Example​

nhl_boxscore(game_id=2024020001)

Last validated n/a.

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
idintegerUnique player identifier.
seasonintegerSeason year (echoed from arg).
game_typeintegerGame type the row belongs to.
limited_scoringlogicalBoolean 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_datecharacterGame date.
start_time_utccharacterScheduled start time in UTC.
eastern_utc_offsetcharacterEastern time UTC offset.
venue_utc_offsetcharacterVenue UTC offset.
venue_timezonecharacterVenue time zone.
tv_broadcastscharacterNested list of TV broadcast details.
game_statecharacterGame state (e.g., FINAL, LIVE).
game_schedule_statecharacterSchedule state of the game.
shootout_in_uselogicalBoolean flag indicating whether a shootout is in use as the tiebreaker format for this game per NHL api-web game landing metadata.
reg_periodsintegerNumber of regulation periods scheduled for this game (typically 3 for NHL, may differ for special-format games).
ot_in_uselogicalBoolean flag indicating whether overtime rules are in effect for this game, as determined by the NHL api-web game landing endpoint.
ties_in_uselogicalWhether ties were in use that season.
venue_defaultcharacterVenue name (default language).
venue_location_defaultcharacterDefault-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_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.
away_team_idintegerAway team identifier.
away_team_common_name_defaultcharacterAway team common name (default language).
away_team_abbrevcharacterAway team abbreviation.
away_team_place_name_defaultcharacterAway team place name (default language).
away_team_place_name_with_preposition_defaultcharacterAway team place name with preposition (default).
away_team_place_name_with_preposition_frcharacterAway team place name with preposition (French).
away_team_scoreintegerAway team final score.
away_team_sogintegerAway team shots on goal.
away_team_logocharacterURL to the away team logo.
away_team_dark_logocharacterURL to the away team dark logo.
home_team_idintegerHome team identifier.
home_team_common_name_defaultcharacterHome team common name (default language).
home_team_abbrevcharacterHome team abbreviation.
home_team_place_name_defaultcharacterHome team place name (default language).
home_team_place_name_frcharacterHome team place name (French).
home_team_place_name_with_preposition_defaultcharacterHome team place name with preposition (default).
home_team_place_name_with_preposition_frcharacterHome team place name with preposition (French).
home_team_scoreintegerHome team final score.
home_team_sogintegerHome team shots on goal.
home_team_logocharacterURL to the home team logo.
home_team_dark_logocharacterURL to the home team dark logo.
summary_scoringcharacterSerialized summary of scoring events for the game, flattened from the nested NHL api-web landing payload scoring sub-object.
summary_three_starscharacterSerialized representation of the three-star selections for the game, flattened from the nested NHL api-web landing payload.
summary_penaltiescharacterSerialized summary of penalty events for the game, flattened from the nested NHL api-web landing payload penalties sub-object.
clock_time_remainingcharacterRemaining time in the current period formatted as MM:SS, as provided by the NHL api-web game landing endpoint.
clock_seconds_remainingintegerInteger count of seconds remaining in the current period at the time the NHL api-web landing payload was captured.
clock_runninglogicalBoolean flag indicating whether the game clock is actively counting down at the time the NHL api-web landing payload was captured.
clock_in_intermissionlogicalBoolean flag indicating whether the game clock is currently paused during an intermission period between regulation periods.

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

Example​

nhl_landing(game_id=2024020001)

Last validated n/a.

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
idintegerUnique player identifier.
seasonintegerSeason year (echoed from arg).
game_typeintegerGame type the row belongs to.
game_datecharacterGame date.
start_time_utccharacterScheduled start time in UTC.
eastern_utc_offsetcharacterEastern time UTC offset.
venue_utc_offsetcharacterVenue UTC offset.
game_statecharacterGame state (e.g., FINAL, LIVE).
game_schedule_statecharacterSchedule state of the game.
game_center_linkcharacterLink to the NHL game center page.
away_team_idintegerAway team identifier.
away_team_abbrevcharacterAway team abbreviation.
away_team_logocharacterURL to the away team logo.
away_team_scoreintegerAway team final score.
home_team_idintegerHome team identifier.
home_team_abbrevcharacterHome team abbreviation.
home_team_logocharacterURL to the home team logo.
home_team_scoreintegerHome team final score.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.
game_outcome_last_period_typecharacterPeriod type in which the game ended.

shots_by_period

col_nametypedescription
awayintegerAway team shots in the period.
homeintegerWhether the player's team was home.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.

team_game_stats

col_nametypedescription
categorycharacterStat leader category.
away_valuecharacter
home_valuecharacter

game_info

col_nametypedescription
refereescharacter
linesmencharacter
away_team_head_coach_defaultcharacter
away_team_scratchescharacter
home_team_head_coach_defaultcharacter
home_team_scratchescharacter

linescore_by_period

col_nametypedescription
awayintegerAway team shots in the period.
homeintegerWhether the player's team was home.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.

season_series_wins

col_nametypedescription
away_team_winsinteger
home_team_winsinteger
needed_to_wininteger

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

Example​

nhl_right_rail(game_id=2024020001)

Last validated n/a.

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
idintegerUnique player identifier.
seasonintegerSeason year (echoed from arg).
game_typeintegerGame type the row belongs to.
game_datecharacterGame date.
start_time_utccharacterScheduled start time in UTC.
eastern_utc_offsetcharacterEastern time UTC offset.
venue_utc_offsetcharacterVenue UTC offset.
tv_broadcastscharacterNested list of TV broadcast details.
game_statecharacterGame state (e.g., FINAL, LIVE).
game_schedule_statecharacterSchedule state of the game.
game_center_linkcharacterLink to the NHL game center page.
series_urlcharacterURL path to the NHL api-web series landing page providing full details about this playoff series matchup.
three_min_recapcharacterLink to the three-minute recap.
neutral_sitelogicalWhether the game is at a neutral site.
venue_timezonecharacterVenue time zone.
periodintegerPeriod number.
goalscharacterGoals scored.
venue_defaultcharacterVenue name (default language).
away_team_idintegerAway team identifier.
away_team_name_defaultcharacterDefault-language full team name for the away team in this game, as provided by the NHL api-web scoreboard endpoint.
away_team_abbrevcharacterAway team abbreviation.
away_team_scoreintegerAway team final score.
away_team_sogintegerAway team shots on goal.
away_team_logocharacterURL to the away team logo.
home_team_idintegerHome team identifier.
home_team_name_defaultcharacterDefault-language full team name for the home team in this game, as provided by the NHL api-web scoreboard endpoint.
home_team_abbrevcharacterHome team abbreviation.
home_team_scoreintegerHome team final score.
home_team_sogintegerHome team shots on goal.
home_team_logocharacterURL to the home team logo.
series_status_roundintegerNumeric identifier for the playoff round (e.g., 1 = First Round, 2 = Second Round) in which this game is being played.
series_status_series_abbrevcharacterShort abbreviation code identifying the specific playoff series matchup, as provided by the NHL api-web score endpoint.
series_status_series_titlecharacterHuman-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_lettercharacterSingle-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_winintegerNumber of additional wins required by the series leader to clinch the playoff round at the time of this game.
series_status_top_seed_team_abbrevcharacterThree-letter abbreviation for the higher-seeded team in this playoff series, as reported by the NHL api-web score endpoint.
series_status_top_seed_winsintegerNumber of wins accumulated by the higher-seeded team in the current playoff series as of this game.
series_status_bottom_seed_team_abbrevcharacterThree-letter abbreviation for the lower-seeded team in this playoff series, as reported by the NHL api-web score endpoint.
series_status_bottom_seed_winsintegerNumber of wins accumulated by the lower-seeded team in the current playoff series as of this game.
series_status_game_number_of_seriesintegerSequential game number within the playoff series (e.g., 1 through 7 for a best-of-seven round).
clock_time_remainingcharacterRemaining time in the current period in MM:SS format, as provided by the NHL api-web score endpoint.
clock_seconds_remainingintegerInteger count of seconds remaining in the current period as reported by the NHL api-web score endpoint.
clock_runninglogicalBoolean flag indicating whether the game clock is actively running at the time the NHL api-web score payload was captured.
clock_in_intermissionlogicalBoolean flag indicating whether the game clock is paused during an intermission at the time the NHL api-web score payload was captured.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.
game_outcome_last_period_typecharacterPeriod type in which the game ended.

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

Example​

nhl_score()

Last validated n/a.

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 Dict payload, unparsed.

Example​

nhl_schedule_calendar()

Last validated n/a.

nhl_playoff_series​

Pull a single playoff series payload.

Endpoint URL: GET https://api-web.nhle.com/v1/schedule/playoff-series/{season}/{series_letter}

Valid URL: https://api-web.nhle.com/v1/schedule/playoff-series/20242025/a

API ParameterPythonPatternRequiredNullableDescription
seasonseasonYseason path parameter.
series_letterseries_letterYseries_letter 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
roundintegerShootout round number.
series_lettercharacterSingle-letter label identifying this series within its playoff round (e.g., 'A', 'B'), as used by the NHL api-web.
top_seed_team_idintegerUnique NHL api-web identifier for the higher-seeded team in this playoff series.
top_seed_team_abbrevcharacterThree-letter abbreviation of the higher-seeded team in this NHL playoff series (e.g., 'TOR').
bottom_seed_team_idintegerUnique NHL api-web identifier for the lower-seeded team in this playoff series.
bottom_seed_team_abbrevcharacterThree-letter abbreviation of the lower-seeded team in this NHL playoff series (e.g., 'BOS').
idintegerUnique player identifier.
seasonintegerSeason year (echoed from arg).
game_typeintegerGame type the row belongs to.
game_numberintegerGame number within the schedule.
if_necessarylogical
neutral_sitelogicalWhether the game is at a neutral site.
start_time_utccharacterScheduled start time in UTC.
eastern_utc_offsetcharacterEastern time UTC offset.
venue_utc_offsetcharacterVenue UTC offset.
venue_timezonecharacterVenue time zone.
game_statecharacterGame state (e.g., FINAL, LIVE).
game_schedule_statecharacterSchedule state of the game.
tv_broadcastscharacterNested list of TV broadcast details.
game_center_linkcharacterLink to the NHL game center page.
venue_defaultcharacterVenue name (default language).
away_team_idintegerAway team identifier.
away_team_common_name_defaultcharacterAway team common name (default language).
away_team_place_name_defaultcharacterAway team place name (default language).
away_team_place_name_with_preposition_defaultcharacterAway team place name with preposition (default).
away_team_place_name_with_preposition_frcharacterAway team place name with preposition (French).
away_team_abbrevcharacterAway team abbreviation.
away_team_scoreintegerAway team final score.
home_team_idintegerHome team identifier.
home_team_common_name_defaultcharacterHome team common name (default language).
home_team_place_name_defaultcharacterHome team place name (default language).
home_team_place_name_frcharacterHome team place name (French).
home_team_place_name_with_preposition_defaultcharacterHome team place name with preposition (default).
home_team_place_name_with_preposition_frcharacterHome team place name with preposition (French).
home_team_abbrevcharacterHome team abbreviation.
home_team_scoreintegerHome team final score.
period_descriptor_numberintegerPeriod number.
period_descriptor_period_typecharacterPeriod type (e.g., REG, OT).
period_descriptor_max_regulation_periodsintegerMaximum number of regulation periods.
series_status_top_seed_winsintegerNumber of wins accumulated by the higher-seeded team in this NHL playoff series to date.
series_status_bottom_seed_winsintegerNumber of wins accumulated by the lower-seeded team in this NHL playoff series to date.
game_outcome_last_period_typecharacterPeriod type in which the game ended.
game_outcome_ot_periodsdoubleNumber of overtime periods played in the game that concluded this series or scheduled game, where applicable.
away_team_place_name_frcharacterAway team place name (French).

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

Example​

nhl_playoff_series(season=2025, series_letter='a')

Last validated n/a.

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_indicatorcharacter
conference_abbrevcharacterConference abbreviation.
conference_home_sequenceintegerTeam's rank within its conference based solely on home-game results in the NHL api-web standings.
conference_l10_sequenceintegerTeam's rank within its conference based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
conference_namecharacterConference name.
conference_road_sequenceintegerTeam's rank within its conference based solely on road-game results in the NHL api-web standings.
conference_sequenceintegerTeam's seeding position within the conference.
datecharacterGame date (ISO 8601 datetime string).
division_abbrevcharacterDivision abbreviation.
division_home_sequenceintegerTeam's rank within its division based solely on home-game results in the NHL api-web standings.
division_l10_sequenceintegerTeam's rank within its division based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
division_namecharacterDivision name.
division_road_sequenceintegerTeam's rank within its division based solely on road-game results in the NHL api-web standings.
division_sequenceintegerTeam's seeding position within the division.
game_type_idintegerGame type identifier (regular/playoffs).
games_playedintegerMatches played.
goal_differentialintegerGoal differential.
goal_differential_pctgdoubleTeam's goal differential normalized to a per-game (or percentage) basis, as published in the NHL standings feed.
goal_againstintegerTotal number of goals allowed by the team across all games played in the current standings snapshot.
goal_forintegerTotal number of goals scored by the team across all games played in the current standings snapshot.
goals_for_pctgdoubleTeam's share of total goals scored in all games involving this team, calculated as goals-for divided by (goals-for + goals-against).
home_games_playedintegerNumber of home games the team has completed in the current season as of this standings snapshot.
home_goal_differentialintegerNet goal differential (goals-for minus goals-against) accumulated across all home games played in the current season.
home_goals_againstintegerTotal number of goals allowed by the team in home games during the current season.
home_goals_forintegerTotal number of goals scored by the team in home games during the current season.
home_lossesintegerLosses at home.
home_ot_lossesintegerHome overtime losses.
home_pointsinteger
home_regulation_plus_ot_winsintegerNumber of home wins achieved in regulation or overtime (excluding shootout decisions) in the current season.
home_regulation_winsintegerNumber of home wins achieved in regulation time (within 60 minutes) in the current season.
home_tiesintegerTies at home.
home_winsintegerWins at home.
l10_games_playedintegerNumber of games included in the team's last-10-games performance window (typically 10, may be lower early in the season).
l10_goal_differentialintegerNet goal differential (goals-for minus goals-against) across the team's most recent 10 games.
l10_goals_againstintegerTotal goals allowed by the team across its most recent 10 games.
l10_goals_forintegerTotal goals scored by the team across its most recent 10 games.
l10_lossesintegerLosses in the last ten games.
l10_ot_lossesintegerOvertime losses in the last ten games.
l10_pointsintegerTotal standings points earned by the team across its most recent 10 games.
l10_regulation_plus_ot_winsintegerNumber of wins in regulation or overtime (excluding shootouts) within the team's most recent 10 games.
l10_regulation_winsintegerNumber of regulation-time wins within the team's most recent 10 games.
l10_tiesintegerNumber of tied results recorded within the team's most recent 10 games (applicable to seasons using tie rules).
l10_winsintegerWins in the last ten games.
league_home_sequenceintegerTeam's rank league-wide based solely on home-game results in the NHL api-web standings.
league_l10_sequenceintegerTeam's rank league-wide based on performance in the last 10 games played, as reported by the NHL api-web standings endpoint.
league_road_sequenceintegerTeam's rank league-wide based solely on road-game results in the NHL api-web standings.
league_sequenceintegerTeam's seeding position within the league.
lossesintegerNumber of matches the team has lost.
ot_lossesintegerOvertime losses.
point_pctgdoublePoints percentage.
pointsintegerCompetition points.
regulation_plus_ot_win_pctgdoubleFraction of games won in regulation or overtime (excluding shootout decisions), used as a tiebreaker metric in NHL standings.
regulation_plus_ot_winsintegerWins in regulation plus overtime.
regulation_win_pctgdoubleFraction of games won in regulation time only, used as a secondary tiebreaker in NHL standings.
regulation_winsintegerWins in regulation.
road_games_playedintegerNumber of road games the team has completed in the current season as of this standings snapshot.
road_goal_differentialintegerNet goal differential (goals-for minus goals-against) accumulated across all road games played in the current season.
road_goals_againstintegerTotal number of goals allowed by the team in road games during the current season.
road_goals_forintegerTotal number of goals scored by the team in road games during the current season.
road_lossesintegerLosses on the road.
road_ot_lossesintegerRoad overtime losses.
road_pointsintegerTotal standings points earned by the team in road games during the current season.
road_regulation_plus_ot_winsintegerNumber of road wins achieved in regulation or overtime (excluding shootout decisions) in the current season.
road_regulation_winsintegerNumber of road wins achieved in regulation time (within 60 minutes) in the current season.
road_tiesintegerTies on the road.
road_winsintegerWins on the road.
season_idintegerSeason identifier.
shootout_lossesintegerShootout losses.
shootout_winsintegerShootout wins.
streak_codecharacterCurrent streak code (W/L/OT).
streak_countintegerLength of the current streak.
team_logocharacterURL to the team logo image.
tiesintegerNumber of matches the team has drawn.
waivers_sequenceintegerTeam's position in the NHL waiver-claim priority order for the current season, determined by reverse standings order.
wildcard_sequenceintegerTeam's wild card seeding position.
win_pctgdoubleTeam's overall win percentage (wins divided by games played), as reported by the NHL api-web standings endpoint.
winsintegerNumber of matches the team has won.
place_name_defaultcharacterDefault-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_defaultcharacterTeam name (default locale).
team_name_frcharacterTeam name (French locale).
team_common_name_defaultcharacterTeam common name (default language).
team_abbrev_defaultcharacterDefault three-letter abbreviation for the team (e.g., "TOR"), as provided by the NHL api-web standings endpoint.
place_name_frcharacterFrench-language city or place name associated with the team's market, as returned by the NHL api-web standings endpoint.
team_common_name_frcharacterTeam common name (French localization).

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

Example​

nhl_standings()

Last validated n/a.

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
idintegerUnique player identifier.
conferences_in_uselogicalWhether conferences were in use that season.
divisions_in_uselogicalWhether divisions were in use that season.
point_for_o_tloss_in_uselogicalWhether a point for overtime losses was in use.
regulation_wins_in_uselogicalWhether regulation wins were tracked.
row_in_uselogicalWhether the regulation/overtime/shootout format was in use.
standings_endcharacterEnd date of the standings period.
standings_startcharacterStart date of the standings period.
ties_in_uselogicalWhether ties were in use that season.
wildcard_in_uselogicalWhether the wild-card playoff format was in use this season.

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

Example​

nhl_standings_season()

Last validated n/a.

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_groupcharacterPosition group name (e.g. Centers).
idintegerUnique player identifier.
headshotcharacterURL to the player headshot image.
sweater_numberintegerJersey number.
position_codecharacterPlayer position code.
shoots_catchescharacterHandedness (shoots/catches).
height_in_inchesintegerHeight in inches.
weight_in_poundsintegerWeight in pounds.
height_in_centimetersintegerHeight in centimeters.
weight_in_kilogramsintegerWeight in kilograms.
birth_datecharacterPlayer birth date.
birth_countrycharacterPlayer birth country.
first_name_defaultcharacterPlayer first name (default language).
last_name_defaultcharacterPlayer last name (default language).
birth_city_defaultcharacterBirth city (default localization).
birth_state_province_defaultcharacterBirth state/province (default localization).
birth_city_cscharacterBirth city (Czech localization).
birth_city_decharacterBirth city (German localization).
birth_city_ficharacterBirth city (Finnish localization).
birth_city_skcharacterBirth city (Slovak localization).
birth_city_svcharacterBirth city (Swedish localization).

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

Example​

nhl_roster(team='TOR')

Last validated n/a.

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 Dict payload, unparsed.

Example​

nhl_roster_season(team='TOR')

Last validated n/a.

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
categorycharacterStat leader category.
idintegerUnique player identifier.
sweater_numberintegerJersey number.
headshotcharacterURL to the player headshot image.
team_abbrevcharacterTeam abbreviation.
team_logocharacterURL to the team logo image.
positioncharacterPlayer position.
valueintegerLeader stat numeric value.
first_name_defaultcharacterPlayer first name (default language).
first_name_cscharacterPlayer first name (Czech localization).
first_name_decharacterPlayer first name (German).
first_name_escharacterPlayer first name (Spanish).
first_name_ficharacterPlayer first name (Finnish).
first_name_skcharacterPlayer first name (Slovak localization).
first_name_svcharacterPlayer first name (Swedish).
last_name_defaultcharacterPlayer last name (default language).
team_name_defaultcharacterTeam name (default locale).
last_name_cscharacterPlayer last name (Czech localization).
last_name_ficharacterPlayer last name (Finnish localization).
last_name_skcharacterPlayer last name (Slovak localization).

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

Example​

nhl_skater_leaders()

Last validated n/a.

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
categorycharacterStat leader category.
idintegerUnique player identifier.
sweater_numberintegerJersey number.
headshotcharacterURL to the player headshot image.
team_abbrevcharacterTeam abbreviation.
team_logocharacterURL to the team logo image.
positioncharacterPlayer position.
valueintegerLeader stat numeric value.
first_name_defaultcharacterPlayer first name (default language).
last_name_defaultcharacterPlayer last name (default language).
team_name_defaultcharacterTeam name (default locale).
first_name_cscharacterPlayer first name (Czech localization).
first_name_skcharacterPlayer first name (Slovak localization).
last_name_cscharacterPlayer last name (Czech localization).
last_name_skcharacterPlayer last name (Slovak localization).
last_name_ficharacterPlayer last name (Finnish localization).

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

Example​

nhl_goalie_leaders()

Last validated n/a.