Skip to main content

NHL — NHL Records API — Coach

nhl_records_coach_career​

Coach career-records (regular season).

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

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

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.
active_coachBooleanIndicates whether the coach is currently active as an NHL head coach.
coach_nameStringFull display name of the NHL head coach.
end_seasonInt64The most recent season the coach held a head-coaching position, encoded as an eight-digit season ID.
first_nameStringPlayer first name.
game_type_idInt64Game type identifier (regular/playoffs).
gamesInt64Games played.
home_gamesInt64
home_lossesInt64Losses at home.
home_ot_lossesFloat64Home overtime losses.
home_tiesFloat64Ties at home.
home_win_pctgFloat64Win percentage for all regular-season home games coached.
home_winsInt64Wins at home.
jack_adamsInt64Number of Jack Adams Award trophies won by the coach as NHL coach of the year.
last_coached_dateStringDate of the coach's most recent game on the bench, in ISO 8601 format.
last_nameStringPlayer last name.
lossesInt64Losses.
losses_in_otInt64Total regular-season games the coach's team lost in overtime.
losses_in_ot_plus_shootoutInt64Total regular-season games the coach's team lost in overtime or a shootout combined.
losses_in_shootoutFloat64Total regular-season games the coach's team lost via shootout.
ot_lossesFloat64Overtime losses.
road_gamesInt64Total regular-season road games coached.
road_lossesInt64Losses on the road.
road_ot_lossesFloat64Road overtime losses.
road_tiesFloat64Ties on the road.
road_win_pctgFloat64Win percentage for all regular-season road games coached.
road_winsInt64Wins on the road.
seasonsInt64Number of NHL seasons the coach has served as a head coach.
stanley_cup_final_appearancesInt64Number of times the coach has led a team to the Stanley Cup Final.
stanley_cupsInt64Number of Stanley Cup championships won as head coach.
start_seasonInt64The first season the coach served as an NHL head coach, encoded as an eight-digit season ID.
team_abbrevsStringTeam abbreviation(s).
tiesFloat64Total ties.
ties_in_otInt64Total regular-season overtime-period ties recorded under pre-shootout rules.
win_pctgFloat64Overall regular-season win percentage across the coach's entire career.
winsInt64Wins.
wins_in_otInt64Total regular-season games the coach's team won in overtime.
wins_in_ot_plus_shootoutInt64Total regular-season games the coach's team won in overtime or a shootout combined.
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_coach_career()

nhl_records_coach_career_with_playoffs​

Coach career records inclusive of regular season + playoffs.

Endpoint URL: GET https://records.nhl.com/site/api/coach-career-records-regular-plus-playoffs

Valid URL: https://records.nhl.com/site/api/coach-career-records-regular-plus-playoffs

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_coachBooleanIndicates whether the coach is currently active as an NHL head coach.
coach_idInt64ESPN coach id parsed from the $ref URL.
coach_nameStringFull display name of the NHL head coach.
end_seasonInt64The most recent season the coach held a head-coaching position, encoded as an eight-digit season ID.
gamesInt64Games played.
lossesInt64Losses.
ot_lossesFloat64Overtime losses.
seasonsInt64Number of NHL seasons the coach has served as a head coach, including playoff appearances.
start_seasonInt64The first season the coach served as an NHL head coach, encoded as an eight-digit season ID.
team_abbrevsStringTeam abbreviation(s).
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_coach_career_with_playoffs()

nhl_records_coach_franchise​

Coach records scoped to individual franchise stints.

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

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

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.
active_coachBooleanIndicates whether the coach is currently active with the franchise.
coach_nameStringFull display name of the coach as recorded in NHL records.
end_seasonInt64Last season (in YYYYYYYY format) the coach was behind the bench for this franchise.
first_coached_dateStringCalendar date on which the coach first handled a game for this franchise.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
franchise_nameStringFranchise name.
game_type_idInt64Game type identifier (regular/playoffs).
gamesInt64Games played.
home_gamesInt64
home_lossesInt64Losses at home.
home_ot_lossesFloat64Home overtime losses.
home_tiesFloat64Ties at home.
home_win_pctgFloat64Fraction of home games the coach's franchise won during their tenure.
home_winsInt64Wins at home.
jack_adamsInt64Number of Jack Adams Awards (NHL coach of the year) won by the coach during this franchise tenure.
last_coached_dateStringCalendar date of the coach's most recent game on the bench for this franchise.
last_nameStringPlayer last name.
lossesInt64Losses.
losses_in_otInt64Number of games the coach's franchise lost in overtime during the tenure.
losses_in_ot_plus_shootoutInt64Combined losses in overtime and shootout during the coach's franchise tenure.
losses_in_shootoutFloat64Number of games the coach's franchise lost in a shootout during the tenure.
ot_lossesFloat64Overtime losses.
point_pctgFloat64Points percentage.
pointsInt64Total points (goals + assists).
road_gamesInt64Total regular-season road games coached with this franchise.
road_lossesInt64Losses on the road.
road_ot_lossesFloat64Road overtime losses.
road_tiesFloat64Ties on the road.
road_win_pctgFloat64Fraction of away games the coach's franchise won during their tenure.
road_winsInt64Wins on the road.
seasonsInt64Number of NHL seasons the coach spent with this franchise.
stanley_cup_final_appearancesInt64Number of Stanley Cup Final appearances made while coaching this franchise.
stanley_cupsInt64Number of Stanley Cup championships won while coaching this franchise.
start_seasonInt64First season (in YYYYYYYY format) the coach served with this franchise.
team_abbrevStringTeam abbreviation.
team_nameStringTeam name.
tiesFloat64Total ties.
ties_in_otInt64Number of overtime ties recorded under this coach for this franchise (pre-shootout era).
win_pctgFloat64Overall win percentage across all regular-season games coached with this franchise.
winsInt64Wins.
wins_in_otInt64Number of games the coach's franchise won in overtime during the tenure.
wins_in_ot_plus_shootoutInt64Combined wins in overtime and shootout during the coach's franchise 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_coach_franchise()

nhl_records_coach_stanley_cup​

Coach Stanley Cup Final win streak and consecutive-cup records.

Endpoint URL: GET https://records.nhl.com/site/api/coach-stanley-cup-streak

Valid URL: https://records.nhl.com/site/api/coach-stanley-cup-streak

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_coachBooleanBoolean flag indicating whether the coach is currently active as an NHL head coach.
coach_idInt64ESPN coach id parsed from the $ref URL.
coach_nameStringFull name of the head coach in this Stanley Cup championship record.
franchise_idInt64Unique franchise identifier.
franchise_nameStringFranchise name.
longest_streakInt64Maximum number of consecutive seasons in which the coach won the Stanley Cup.
longest_streak_descriptionStringHuman-readable description of the coach's longest consecutive Stanley Cup winning streak.
seasons_wonStringComma-separated list of NHL seasons in which the coach won the Stanley Cup as head coach.
stanley_cupsInt64Total number of Stanley Cup championships won by this coach as head coach.
team_abbrevsStringTeam abbreviation(s).

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