Skip to main content
Version: 0.2.0

NHL — NHL Records API — Other

nhl_records_awards​

List all NHL award / trophy records.

Endpoint URL: GET https://records.nhl.com/site/api/award-details

Valid URL: https://records.nhl.com/site/api/award-details

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.
awarded_posthumouslyBooleanWhether the award was given posthumously.
coach_idInt64ESPN coach id parsed from the $ref URL.
created_onStringDate the trophy record was created.
detail_summaryStringDetail summary flag.
full_nameStringPlayer full name.
general_manager_idInt64General manager identifier, if applicable.
image_urlStringPlayer headshot URL.
is_rookieBooleanWhether the player is a rookie.
player_idInt64Unique player identifier.
player_image_captionStringPlayer image caption flag.
player_image_urlStringURL to the player image.
season_idInt64Season identifier.
statusStringStatus string (e.g. captain markers).
summaryStringRecord summary string (e.g. "25-15-10").
team_idInt64Unique team identifier.
trophy_category_idInt64Trophy category identifier.
trophy_idInt64Trophy identifier.
valueStringLeader stat numeric value.
vote_countFloat64Number of votes received.

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

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_records_awards()

nhl_records_awards_by_franchise​

List award records for a single franchise.

Endpoint URL: GET https://records.nhl.com/site/api/award-details/{franchise_id}

Valid URL: https://records.nhl.com/site/api/award-details/1

API ParameterPythonPatternRequiredNullableDescription
franchise_idfranchise_idYfranchise_id path parameter.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_nhl_records); pass return_as_pandas=True for a pandas.DataFrame. return_parsed=False — the raw JSON Dict payload, unparsed.

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_records_awards_by_franchise(franchise_id=1)

nhl_records_awards_trophy_season​

Retrieve the trophy winner for a specific season.

Endpoint URL: GET https://records.nhl.com/site/api/award-details/trophy/{trophy_id}/season/{season_id}

Valid URL: https://records.nhl.com/site/api/award-details/trophy/1/season/X

API ParameterPythonPatternRequiredNullableDescription
trophy_idtrophy_idYtrophy_id path parameter.
season_idseason_idYseason_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.
awarded_posthumouslyBooleanWhether the award was given posthumously.
coach_idInt64ESPN coach id parsed from the $ref URL.
created_onStringDate the trophy record was created.
detail_summaryStringDetail summary flag.
full_nameStringPlayer full name.
general_manager_idInt64General manager identifier, if applicable.
image_urlStringPlayer headshot URL.
is_rookieBooleanWhether the player is a rookie.
player_idInt64Unique player identifier.
player_image_captionStringPlayer image caption flag.
player_image_urlStringURL to the player image.
season_idInt64Season identifier.
statusStringStatus string (e.g. captain markers).
summaryStringRecord summary string (e.g. "25-15-10").
team_idInt64Unique team identifier.
trophy_category_idInt64Trophy category identifier.
trophy_idInt64Trophy identifier.
valueStringLeader stat numeric value.
vote_countInt64Number of votes received.

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

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_records_awards_trophy_season(trophy_id=1, season_id='X')

nhl_records_coaches​

List NHL head coaches.

Endpoint URL: GET https://records.nhl.com/site/api/coach

Valid URL: https://records.nhl.com/site/api/coach

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.
bioStringLong-form biographical narrative for the coach, as provided by the NHL api-web endpoint.
birth_cityStringBirth city.
birth_country3codeStringProspect birth country three-letter code.
birth_dateStringPlayer birth date.
birth_state_province_codeStringTwo-letter state or province code of the coach's birth location (e.g., 'ON' for Ontario, 'MI' for Michigan).
brief_descriptionStringBrief description of the trophy.
date_of_deathStringDate of death, if applicable.
deceasedBooleanWhether the player is deceased.
descriptionStringFull text description of the event.
featured_imageStringURL of the coach's featured promotional or profile image on the NHL platform.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
historyString
hockey_hof_linkStringURL to the coach's Hockey Hall of Fame profile page, if they are an inductee.
in_hockey_hofBooleanWhether the player is in the Hockey Hall of Fame.
in_iihf_hockey_hofBooleanBoolean flag indicating whether the coach is inducted into the IIHF Hockey Hall of Fame.
in_us_hockey_hofBooleanWhether the player is in the US Hockey Hall of Fame.
instagramStringInstagram handle or profile URL for the coach's official social media presence.
is_activeBooleanWhether the team is active.
last_nameStringPlayer last name.
nationality_codeStringNationality code of the official.
player_idInt64Unique player identifier.
stanley_cupFloat64Number of Stanley Cup championships won by the coach as a head coach or assistant coach.
team_idInt64Unique team identifier.
top100_player_linkStringURL to the coach's NHL Top 100 players recognition page, if applicable.
twitterStringTwitter/X handle or profile URL for the coach's official social media presence.

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

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_records_coaches()

nhl_records_coach​

Retrieve one coach by their numeric ID.

Endpoint URL: GET https://records.nhl.com/site/api/coach/{coach_id}

Valid URL: https://records.nhl.com/site/api/coach/X

API ParameterPythonPatternRequiredNullableDescription
coach_idcoach_idYcoach_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.
bioStringFree-text biographical summary of the coach's career and background.
birth_cityStringBirth city.
birth_country3codeStringProspect birth country three-letter code.
birth_dateStringPlayer birth date.
birth_state_province_codeStringTwo-letter state or province code indicating the coach's place of birth.
brief_descriptionStringBrief description of the trophy.
date_of_deathStringDate of death, if applicable.
deceasedBooleanWhether the player is deceased.
descriptionStringFull text description of the event.
featured_imageStringURL of the featured promotional image associated with the coach's NHL profile.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
historyString
hockey_hof_linkStringURL to the coach's page on the Hockey Hall of Fame website, if inducted.
in_hockey_hofBooleanWhether the player is in the Hockey Hall of Fame.
in_iihf_hockey_hofBooleanBoolean flag indicating whether the coach is inducted into the IIHF Hockey Hall of Fame.
in_us_hockey_hofBooleanWhether the player is in the US Hockey Hall of Fame.
instagramStringInstagram profile handle or URL associated with the coach.
is_activeBooleanWhether the team is active.
last_nameStringPlayer last name.
nationality_codeStringNationality code of the official.
player_idInt64Unique player identifier.
stanley_cupInt64Number of Stanley Cup championships won by the coach as a head coach.
team_idInt64Unique team identifier.
top100_player_linkStringURL to the coach's entry on the NHL's Top 100 Players list, if applicable.
twitterStringTwitter (X) handle or URL associated with the coach.

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

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_records_coach(coach_id='X')

nhl_records_all_time_record_vs_franchise​

All-time head-to-head records between every franchise pairing.

Endpoint URL: GET https://records.nhl.com/site/api/all-time-record-vs-franchise

Valid URL: https://records.nhl.com/site/api/all-time-record-vs-franchise

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.
active_franchiseInt64Indicator of whether the franchise is active.
active_opponent_franchiseInt64Flag indicating whether the opponent franchise is currently active in the NHL (1 = active, 0 = relocated or dissolved).
franchise_nameStringFranchise name.
game_type_idInt64Game type identifier (regular/playoffs).
home_games_playedInt64Total number of home games the franchise has played all-time against this opponent franchise.
home_goals_againstFloat64Total goals allowed by the franchise in all-time home games against this opponent.
home_goals_forFloat64Total goals scored by the franchise in all-time home games against this opponent.
home_last_meeting_season_idInt64NHL season identifier for the most recent home game played against this opponent franchise.
home_lossesInt64Losses at home.
home_ot_lossesInt64Home overtime losses.
home_pointsInt64
home_tiesInt64Ties at home.
home_winsInt64Wins at home.
opponent_franchise_idInt64NHL records identifier for the opposing franchise in this all-time head-to-head record.
opponent_franchise_nameStringFull name of the opposing franchise in this all-time head-to-head record.
opponent_team_idInt64Opponent team identifier.
road_games_playedInt64Total number of road games the franchise has played all-time against this opponent franchise.
road_goals_againstInt64Total goals allowed by the franchise in all-time road games against this opponent.
road_goals_forInt64Total goals scored by the franchise in all-time road games against this opponent.
road_last_meeting_season_idInt64NHL season identifier for the most recent road game played against this opponent franchise.
road_lossesInt64Losses on the road.
road_ot_lossesInt64Road overtime losses.
road_pointsInt64Total standings points earned by the franchise in all-time road games against this opponent.
road_tiesInt64Ties on the road.
road_winsInt64Wins on the road.
team_franchise_idInt64Team franchise identifier.
team_idInt64Unique team identifier.
total_games_playedInt64Total number of games played all-time between this franchise and the opponent franchise across home and road venues.
total_goals_againstInt64Total goals allowed by the franchise in all-time games against this opponent across home and road.
total_goals_forInt64Total goals scored by the franchise in all-time games against this opponent across home and road.
total_last_meeting_season_idInt64NHL season identifier for the most recent game played between the two franchises in any venue.
total_lossesInt64Total losses to date (goalie).
total_ot_lossesInt64Total number of overtime losses accumulated by the franchise all-time against this opponent.
total_pointsInt64Total standings points earned by the franchise across all all-time games against this opponent.
total_tiesInt64
total_winsInt64

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

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_records_all_time_record_vs_franchise()

nhl_records_skater_career_stats​

Skater career statistics (all-time, regular season).

Endpoint URL: GET https://records.nhl.com/site/api/skater-career-statistics

Valid URL: https://records.nhl.com/site/api/skater-career-statistics

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

No returns table is published for this endpoint: no capture: records.nhl.com answers 404 for this route with the documented example arguments (2026-10-07).

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

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_records_skater_career_stats()

nhl_records_skater_career_leaders​

All-time skater career leaderboards.

Endpoint URL: GET https://records.nhl.com/site/api/skater-career-leaders

Valid URL: https://records.nhl.com/site/api/skater-career-leaders

API ParameterPythonPatternRequiredNullableDescription

Returns​

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

No returns table is published for this endpoint: no capture: records.nhl.com answers 404 for this route with the documented example arguments (2026-10-07).

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

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_records_skater_career_leaders()

nhl_records_consecutive_100pt_seasons​

Skaters with the most consecutive 100-point seasons.

Endpoint URL: GET https://records.nhl.com/site/api/consecutive-100-point-seasons

Valid URL: https://records.nhl.com/site/api/consecutive-100-point-seasons

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.
active_playerBooleanIndicator of whether the player is active.
active_streakBooleanIndicator of whether the streak is active.
consecutive100_point_seasonsInt64Number of consecutive NHL regular seasons in which the player reached 100 or more points.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
position_codeStringPlayer position code.
seasons_playedInt64Number of seasons played.
streak_end_seasonInt64The last season of the consecutive 100-point streak, encoded as an eight-digit season ID.
streak_start_seasonInt64The first season of the consecutive 100-point streak, encoded as an eight-digit season ID.
team_abbrevsStringTeam abbreviation(s).
team_namesStringTeam names.

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

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_records_consecutive_100pt_seasons()

nhl_records_expansion_draft_picks​

Expansion draft picks (e.g. Vegas 2017, Seattle 2021).

Endpoint URL: GET https://records.nhl.com/site/api/expansion-draft-picks

Valid URL: https://records.nhl.com/site/api/expansion-draft-picks

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.
activeBooleanWhether athlete is currently active.
draft_picksStringJSON-serialized list of players selected by this franchise in the NHL expansion draft.
season_idInt64Season identifier.
team_idInt64Unique team identifier.

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

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_records_expansion_draft_picks()

nhl_records_attendance​

NHL arena attendance records.

Endpoint URL: GET https://records.nhl.com/site/api/attendance

Valid URL: https://records.nhl.com/site/api/attendance

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.
playoff_attendanceFloat64Total playoff attendance.
regular_attendanceFloat64Total regular-season attendance.
season_idInt64Season identifier.
total_attendanceFloat64Total attendance for the season.

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

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_records_attendance()

nhl_records_hof_players​

Hockey Hall of Fame player inductees.

Endpoint URL: GET https://records.nhl.com/site/api/hof/players

Valid URL: https://records.nhl.com/site/api/hof/players

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.
date_inductedStringDate the inductee entered the Hall of Fame.
induction_cat_idInt64Induction category identifier.
misc_full_nameStringFull name of the inductee.
office_idInt64Office/category identifier.
official_idInt64ESPN official id (echoed from arg).
player_idInt64Unique player identifier.

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

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_records_hof_players()

nhl_records_hof_players_by_office​

Hall of Fame players for a specific induction office/category.

Endpoint URL: GET https://records.nhl.com/site/api/hof/players/{office_id}

Valid URL: https://records.nhl.com/site/api/hof/players/X

API ParameterPythonPatternRequiredNullableDescription
office_idoffice_idYoffice_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.
date_inductedStringDate the inductee entered the Hall of Fame.
induction_cat_idInt64Induction category identifier.
misc_full_nameStringFull name of the inductee.
office_idInt64Office/category identifier.
official_idInt64ESPN official id (echoed from arg).
player_idInt64Unique player identifier.

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

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_records_hof_players_by_office(office_id='X')

nhl_records_gm_career​

General Manager career records.

Endpoint URL: GET https://records.nhl.com/site/api/general-manager/{gm_id}

Valid URL: https://records.nhl.com/site/api/general-manager-career-records

API ParameterPythonPatternRequiredNullableDescription
gm_idgm_idYgm_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.
active_gmBooleanIndicates whether the general manager is currently active in an NHL front-office role.
end_dateStringSeason end date.
end_season_idInt64Season identifier (e.g., 20232024) for the last season the GM held the position.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
game_type_idInt64Game type identifier (regular/playoffs).
gamesInt64Games played.
gm_of_the_yearInt64Number of times the general manager won the NHL GM of the Year Award during their career.
home_gamesInt64
home_lossesInt64Losses at home.
home_ot_lossesFloat64Home overtime losses.
home_tiesFloat64Ties at home.
home_winsInt64Wins at home.
last_nameStringPlayer last name.
lossesInt64Losses.
losses_in_otInt64Number of games the GM's team lost in overtime during their tenure.
losses_in_ot_plus_shootoutInt64Combined total of overtime and shootout losses recorded during the GM's tenure.
losses_in_shootoutFloat64Number of games the GM's team lost in the shootout portion of a tied game.
overtime_lossesInt64Total overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Total points (goals + assists).
road_gamesInt64Total number of away games played by the GM's team across their tenure.
road_lossesInt64Losses on the road.
road_ot_lossesFloat64Road overtime losses.
road_tiesFloat64Ties on the road.
road_winsInt64Wins on the road.
seasonsInt64Total number of NHL seasons the general manager has served in the role.
stanley_cup_final_appearancesInt64Number of times the GM's team reached the Stanley Cup Final during their tenure.
stanley_cupsInt64Number of Stanley Cup championships won by the GM's franchise during their tenure.
start_dateStringSeason start date.
start_season_idInt64Season identifier (e.g., 20052006) for the first season the GM held the position.
team_abbrevsStringTeam abbreviation(s).
tiesInt64Total ties.
ties_in_otInt64Number of overtime ties recorded under legacy rules during the GM's tenure.
win_pctgFloat64Career winning percentage for the GM, calculated as wins divided by total games decided.
winsInt64Wins.
wins_in_otInt64Number of games the GM's team won in overtime during their tenure.
wins_in_ot_plus_shootoutInt64Combined total of overtime and shootout wins recorded during the GM's tenure.
wins_in_shootoutFloat64Wins in shootout.

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

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_records_gm_career()

nhl_records_gm_franchise​

General Manager records scoped to franchise stints.

Endpoint URL: GET https://records.nhl.com/site/api/general-manager-franchise-records

Valid URL: https://records.nhl.com/site/api/general-manager-franchise-records

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.
active_gmBooleanIndicates whether the general manager is currently active with the franchise.
end_dateStringSeason end date.
end_season_idInt64NHL season identifier for the last season the GM held the role with this franchise.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
franchise_nameStringFranchise name.
full_nameStringPlayer full name.
game_type_idInt64Game type identifier (regular/playoffs).
gamesInt64Games played.
gm_of_the_yearInt64Number of NHL General Manager of the Year awards won during this franchise tenure.
home_gamesInt64
home_lossesInt64Losses at home.
home_ot_lossesFloat64Home overtime losses.
home_tiesFloat64Ties at home.
home_winsInt64Wins at home.
last_nameStringPlayer last name.
lossesInt64Losses.
losses_in_otInt64Number of regular-season overtime losses recorded by the franchise under this GM.
losses_in_ot_plus_shootoutInt64Combined overtime and shootout losses for the franchise during this GM's tenure.
losses_in_shootoutFloat64Number of regular-season shootout losses recorded by the franchise under this GM.
overtime_lossesInt64Total overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Total points (goals + assists).
road_gamesInt64Total regular-season away games played by the franchise during this GM's tenure.
road_lossesInt64Losses on the road.
road_ot_lossesFloat64Road overtime losses.
road_tiesFloat64Ties on the road.
road_winsInt64Wins on the road.
seasonsInt64Number of NHL seasons the GM held the role with this franchise.
stanley_cup_final_appearancesInt64Number of Stanley Cup Final appearances by the franchise during this GM's tenure.
stanley_cupsInt64Number of Stanley Cup championships won by the franchise under this GM.
start_dateStringSeason start date.
start_season_idInt64NHL season identifier for the first season the GM held the role with this franchise.
team_idInt64Unique team identifier.
team_nameStringTeam name.
tiesInt64Total ties.
ties_in_otInt64Number of overtime ties recorded by the franchise under this GM (pre-shootout era).
win_pctgFloat64Overall win percentage for the franchise across all regular-season games during this GM's tenure.
winsInt64Wins.
wins_in_otInt64Number of regular-season overtime wins recorded by the franchise under this GM.
wins_in_ot_plus_shootoutInt64Combined overtime and shootout wins for the franchise during this GM's tenure.
wins_in_shootoutFloat64Wins in shootout.

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

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_records_gm_franchise()

nhl_records_home_team_record​

League-wide home-team win/loss record by season.

Endpoint URL: GET https://records.nhl.com/site/api/home-team-record

Valid URL: https://records.nhl.com/site/api/home-team-record

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.
franchise_idInt64Unique franchise identifier.
game_type_idInt64Game type identifier (regular/playoffs).
games_playedInt64Games played.
goalsInt64Goals scored.
goals_againstInt64Goals against.
goals_against_per_gameFloat64Goals against per game.
goals_per_gameFloat64Average number of goals the team scored per home game over the recorded period.
lossesInt64Losses.
overtime_lossesFloat64Total overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Total points (goals + assists).
season_idInt64Season identifier.
team_idInt64Unique team identifier.
team_nameStringTeam name.
tiesFloat64Total ties.
winsInt64Wins.

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

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_records_home_team_record()

nhl_records_away_team_record​

League-wide away-team win/loss record by season.

Endpoint URL: GET https://records.nhl.com/site/api/away-team-record

Valid URL: https://records.nhl.com/site/api/away-team-record

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.
franchise_idInt64Unique franchise identifier.
game_type_idInt64Game type identifier (regular/playoffs).
games_playedInt64Games played.
goalsInt64Goals scored.
goals_againstInt64Goals against.
goals_against_per_gameFloat64Goals against per game.
goals_per_gameFloat64Average number of goals the team scored per road game over the recorded period.
lossesInt64Losses.
overtime_lossesFloat64Total overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Total points (goals + assists).
season_idInt64Season identifier.
team_idInt64Unique team identifier.
team_nameStringTeam name.
tiesFloat64Total ties.
winsInt64Wins.

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

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_records_away_team_record()