Skip to main content

NHL — NHL Records API — Allstar

nhl_records_allstar_skater_career​

All-Star Game career statistics for skaters.

Endpoint URL: GET https://records.nhl.com/site/api/all-star-skater-career-stats

Valid URL: https://records.nhl.com/site/api/all-star-skater-career-stats

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.
all_star_team_idInt64Identifier for the All-Star team roster to which the skater was assigned during the All-Star event.
assistsInt64Assists.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
games_playedInt64Games played.
goalsInt64Goals scored.
is_activeBooleanWhether the team is active.
is_rookieBooleanWhether the player is a rookie.
last_nameStringPlayer last name.
lossesInt64Losses.
nhl_team_idInt64NHL identifier for the skater's regular-season team at the time of All-Star selection.
penaltiesFloat64Penalty count.
penalty_minutesFloat64Penalty minutes.
player_idInt64Unique player identifier.
pointsInt64Total points (goals + assists).
positionStringPlayer position.
power_play_goalsInt64Power-play goals.
season_idInt64Season identifier.
short_handed_goalsInt64Short-handed goals.
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_allstar_skater_career()

nhl_records_allstar_goalie_career​

All-Star Game career statistics for goaltenders.

Endpoint URL: GET https://records.nhl.com/site/api/all-star-goaltender-career-stats

Valid URL: https://records.nhl.com/site/api/all-star-goaltender-career-stats

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.
all_star_team_idInt64Identifier for the NHL All-Star team the goalie represented in their career All-Star appearances.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
games_playedInt64Games played.
goals_againstInt64Goals against.
goals_against_averageFloat64Goals against average.
is_activeBooleanWhether the team is active.
is_rookieBooleanWhether the player is a rookie.
last_nameStringPlayer last name.
lossesInt64Losses.
nhl_team_idInt64NHL identifier for the regular-season franchise the goalie was affiliated with during their All-Star career.
ot_lossesInt64Overtime losses.
player_idInt64Unique player identifier.
save_percentageFloat64Save percentage (goalies).
season_idInt64Season identifier.
shots_againstInt64Shots faced.
team_lossesInt64
team_winsInt64
tiesInt64Total ties.
time_on_iceInt64Time on ice in seconds.
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_allstar_goalie_career()

nhl_records_allstar_coach_career​

All-Star Game career records for coaches.

Endpoint URL: GET https://records.nhl.com/site/api/all-star-coach-career-stats

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

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.
all_star_team_idInt64NHL identifier for the All-Star team the coach was assigned to in a given All-Star game.
coach_idInt64ESPN coach id parsed from the $ref URL.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
games_coachedInt64Total number of All-Star games the coach has coached across their career.
is_activeBooleanWhether the team is active.
last_nameStringPlayer last name.
lossesInt64Losses.
ot_lossesInt64Overtime losses.
season_idInt64Season identifier.
tiesInt64Total 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_allstar_coach_career()

nhl_records_allstar_skater_game​

All-Star Game single-game scoring records for skaters.

Endpoint URL: GET https://records.nhl.com/site/api/all-star-skater-game-stats

Valid URL: https://records.nhl.com/site/api/all-star-skater-game-stats

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.
all_star_team_idInt64Identifier for the All-Star team roster to which the skater was assigned for this game.
all_star_team_scoreInt64Goals scored by the skater's All-Star team in this specific All-Star game.
arena_nameString
assistsInt64Assists.
cityStringCity where the venue is located.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
game_dateStringGame date.
game_idInt64Unique game identifier.
game_nameString
goalsInt64Goals scored.
home_roadStringDesignation indicating whether the skater's All-Star team was the home or road side for this game.
is_activeBooleanWhether the team is active.
is_rookieBooleanWhether the player is a rookie.
last_nameStringPlayer last name.
mvpString
nhl_team_idInt64NHL identifier for the skater's regular-season team at the time this All-Star game was played.
opponent_scoreInt64
opponent_team_idInt64Opponent team identifier.
penaltiesFloat64Penalty count.
penalty_minutesFloat64Penalty minutes.
player_idInt64Unique player identifier.
pointsInt64Total points (goals + assists).
positionStringPlayer position.
power_play_goalsInt64Power-play goals.
season_idInt64Season identifier.
short_handed_goalsInt64Short-handed goals.
state_province_codeStringState or province code of the official.

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

nhl_records_allstar_goalie_game​

All-Star Game single-game stats for goaltenders.

Endpoint URL: GET https://records.nhl.com/site/api/all-star-goaltender-game-stats

Valid URL: https://records.nhl.com/site/api/all-star-goaltender-game-stats

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.
all_star_team_idInt64NHL identifier for the All-Star team the goalie was assigned to in the game.
all_star_team_scoreInt64Goals scored by the goalie's All-Star team in that game.
arena_nameString
cityStringCity where the venue is located.
first_nameStringPlayer first name.
full_nameStringPlayer full name.
game_dateStringGame date.
game_idInt64Unique game identifier.
game_nameString
goals_againstInt64Goals against.
home_roadStringIndicates whether the goalie's All-Star team was the designated home or road squad for the game.
is_activeBooleanWhether the team is active.
is_rookieBooleanWhether the player is a rookie.
last_nameStringPlayer last name.
mvpString
nhl_team_idInt64NHL identifier for the goalie's regular-season franchise at the time of the All-Star game.
opponent_scoreInt64
opponent_team_idInt64Opponent team identifier.
player_idInt64Unique player identifier.
save_percentageFloat64Save percentage (goalies).
savesInt64Saves made.
season_idInt64Season identifier.
shots_againstInt64Shots faced.
state_province_codeStringState or province code of the official.
time_on_iceInt64Time on ice in seconds.

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