Skip to main content
Version: 0.1.5

NHL — NHL Records API — Franchise

nhl_records_franchises​

List all NHL franchises (historical and active).

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

Valid URL: https://records.nhl.com/site/api/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
idintegerUnique player identifier.
first_season_idintegerSeason identifier of the first season.
full_namecharacterPlayer full name.
last_season_iddoubleSeason ID of the franchise's last season.
most_recent_team_idintegerMost recent team identifier.
team_abbrevcharacterTeam abbreviation.
team_common_namecharacterTeam common (nickname) name.
team_place_namecharacterTeam place (city/location) name.

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

Example​

nhl_records_franchises()

Last validated n/a.

nhl_records_franchise_detail​

Franchise detail records (extended metadata per franchise).

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

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

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.
activelogicalWhether athlete is currently active.
captain_historycharacterFranchise captain history text.
coaching_historycharacterFranchise coaching history text.
date_awardedcharacterDate the franchise was awarded.
directory_urlcharacterFranchise directory URL.
first_season_idintegerSeason identifier of the first season.
general_manager_historycharacterFranchise general manager history text.
hero_image_urlcharacterFranchise hero image URL.
most_recent_team_idintegerMost recent team identifier.
retired_numbers_summarycharacterSummary of retired jersey numbers.
team_abbrevcharacterTeam abbreviation.
team_full_namecharacterFull team name.

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

Example​

nhl_records_franchise_detail()

Last validated n/a.

nhl_records_franchise_team_totals​

All-time team totals per franchise (regular season).

Endpoint URL: GET https://records.nhl.com/site/api/franchise-team-totals

Valid URL: https://records.nhl.com/site/api/franchise-team-totals

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.
active_franchiseintegerIndicator of whether the franchise is active.
active_teamlogicalIndicator of whether the team is active.
cupsintegerNumber of Stanley Cup championships.
first_season_idintegerSeason identifier of the first season.
franchise_idintegerUnique franchise identifier.
game_type_idintegerGame type identifier (regular/playoffs).
game_win_pctgdoubleGame-winning percentage.
games_playeddoubleGames played.
goals_againstdoubleGoals against.
goals_fordoubleGoals for.
home_lossesdoubleLosses at home.
home_overtime_lossesdoubleOvertime losses at home.
home_tiesdoubleTies at home.
home_winsdoubleWins at home.
last_season_iddoubleSeason ID of the franchise's last season.
lossesdoubleLosses.
overtime_lossesdoubleTotal overtime losses.
penalty_minutesdoublePenalty minutes.
playoff_seasonsdoubleNumber of playoff seasons.
point_pctgdoublePoints percentage.
pointsdoubleTotal points (goals + assists).
road_lossesdoubleLosses on the road.
road_overtime_lossesdoubleOvertime losses on the road.
road_tiesdoubleTies on the road.
road_winsdoubleWins on the road.
series_lossesintegerPlayoff series losses.
series_playeddoublePlayoff series played.
series_win_pctgdoublePlayoff series win percentage.
series_winsintegerPlayoff series wins.
shootout_lossesdoubleShootout losses.
shootout_winsdoubleShootout wins.
shutoutsdoubleShutouts recorded.
team_idintegerUnique team identifier.
team_namecharacterTeam name.
tiesdoubleTotal ties.
tri_codecharacterTeam three-letter code.
winsdoubleWins.

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

Example​

nhl_records_franchise_team_totals()

Last validated n/a.

nhl_records_franchise_season_results​

Season-by-season results for each franchise.

Endpoint URL: GET https://records.nhl.com/site/api/franchise-season-results

Valid URL: https://records.nhl.com/site/api/franchise-season-results

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.
conference_abbrevcharacterConference abbreviation.
conference_namecharacterConference name.
conference_sequenceintegerTeam's seeding position within the conference.
decisioncharacterGoalie decision (W/L/O).
division_abbrevcharacterDivision abbreviation.
division_namecharacterDivision name.
division_sequenceintegerTeam's seeding position within the division.
final_playoff_roundintegerFinal playoff round reached.
franchise_idintegerUnique franchise identifier.
game_type_idintegerGame type identifier (regular/playoffs).
games_playedintegerGames played.
goalsintegerGoals scored.
goals_againstintegerGoals against.
home_lossesintegerLosses at home.
home_overtime_lossescharacterOvertime losses at home.
home_tiesintegerTies at home.
home_winsintegerWins at home.
in_playoffslogicalWhether the season reached the playoffs.
league_sequenceintegerTeam's seeding position within the league.
lossesintegerLosses.
overtime_lossescharacterTotal overtime losses.
penalty_minutesintegerPenalty minutes.
playoff_rounddoublePlayoff round identifier.
pointsintegerTotal points (goals + assists).
road_lossesintegerLosses on the road.
road_overtime_lossescharacterOvertime losses on the road.
road_tiesintegerTies on the road.
road_winsintegerWins on the road.
season_idintegerSeason identifier.
series_abbrevcharacterPlayoff series abbreviation.
series_titlecharacterPlayoff series title.
shutoutsintegerShutouts recorded.
team_idintegerUnique team identifier.
team_namecharacterTeam name.
tiesintegerTotal ties.
tri_codecharacterTeam three-letter code.
winsintegerWins.

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

Example​

nhl_records_franchise_season_results()

Last validated n/a.

nhl_records_franchise_playoff_appearances​

Franchise playoff appearance counts and streak information.

Endpoint URL: GET https://records.nhl.com/site/api/franchise-playoff-appearances

Valid URL: https://records.nhl.com/site/api/franchise-playoff-appearances

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.
first_season_idintegerSeason identifier of the first season.
franchise_idintegerUnique franchise identifier.
franchise_namecharacterFranchise name.
playoff_seasonsintegerNumber of playoff seasons.
stanley_cup_appearancesintegerNumber of Stanley Cup Final appearances.
stanley_cup_winsintegerNumber of Stanley Cup championships.
yearsintegerNumber of years the franchise existed.

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

Example​

nhl_records_franchise_playoff_appearances()

Last validated n/a.

nhl_records_franchise_totals​

League-wide franchise totals (all-time aggregate per franchise).

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

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

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.
active_franchiseintegerIndicator of whether the franchise is active.
cupsintegerNumber of Stanley Cup championships.
first_season_idintegerSeason identifier of the first season.
franchise_idintegerUnique franchise identifier.
game_type_idintegerGame type identifier (regular/playoffs).
game_win_pctgdoubleGame-winning percentage.
games_playedintegerGames played.
goals_againstintegerGoals against.
goals_forintegerGoals for.
home_lossesintegerLosses at home.
home_overtime_lossesdoubleOvertime losses at home.
home_tiesdoubleTies at home.
home_winsintegerWins at home.
last_season_iddoubleSeason ID of the franchise's last season.
lossesintegerLosses.
overtime_lossesdoubleTotal overtime losses.
penalty_minutesintegerPenalty minutes.
playoff_seasonsdoubleNumber of playoff seasons.
point_pctgdoublePoints percentage.
pointsintegerTotal points (goals + assists).
road_lossesintegerLosses on the road.
road_overtime_lossesdoubleOvertime losses on the road.
road_tiesdoubleTies on the road.
road_winsintegerWins on the road.
series_lossesdoublePlayoff series losses.
series_playeddoublePlayoff series played.
series_win_pctgdoublePlayoff series win percentage.
series_winsdoublePlayoff series wins.
shootout_lossesintegerShootout losses.
shootout_winsintegerShootout wins.
shutoutsintegerShutouts recorded.
team_abbrevcharacterTeam abbreviation.
team_idintegerUnique team identifier.
team_namecharacterTeam name.
tiesdoubleTotal ties.
winsintegerWins.

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

Example​

nhl_records_franchise_totals()

Last validated n/a.