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
idintegerUnique player identifier.
all_star_team_idintegerIdentifier for the All-Star team roster to which the skater was assigned during the All-Star event.
assistsintegerAssists.
first_namecharacterPlayer first name.
full_namecharacterPlayer full name.
games_playedintegerGames played.
goalsintegerGoals scored.
is_activelogicalWhether the team is active.
is_rookielogicalWhether the player is a rookie.
last_namecharacterPlayer last name.
lossesintegerLosses.
nhl_team_idintegerNHL identifier for the skater's regular-season team at the time of All-Star selection.
penaltiesdoublePenalty count.
penalty_minutesdoublePenalty minutes.
player_idintegerUnique player identifier.
pointsintegerTotal points (goals + assists).
positioncharacterPlayer position.
power_play_goalsintegerPower-play goals.
season_idintegerSeason identifier.
short_handed_goalsintegerShort-handed goals.
winsintegerWins.

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

Example​

nhl_records_allstar_skater_career()

Last validated n/a.

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
idintegerUnique player identifier.
all_star_team_idintegerIdentifier for the NHL All-Star team the goalie represented in their career All-Star appearances.
first_namecharacterPlayer first name.
full_namecharacterPlayer full name.
games_playedintegerGames played.
goals_againstintegerGoals against.
goals_against_averagedoubleGoals against average.
is_activelogicalWhether the team is active.
is_rookielogicalWhether the player is a rookie.
last_namecharacterPlayer last name.
lossesintegerLosses.
nhl_team_idintegerNHL identifier for the regular-season franchise the goalie was affiliated with during their All-Star career.
ot_lossesintegerOvertime losses.
player_idintegerUnique player identifier.
save_percentagedoubleSave percentage (goalies).
season_idintegerSeason identifier.
shots_againstintegerShots faced.
team_lossesinteger
team_winsinteger
tiesintegerTotal ties.
time_on_iceintegerTime on ice in seconds.
winsintegerWins.

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

Example​

nhl_records_allstar_goalie_career()

Last validated n/a.

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
idintegerUnique player identifier.
all_star_team_idintegerNHL identifier for the All-Star team the coach was assigned to in a given All-Star game.
coach_idintegerESPN coach id parsed from the $ref URL.
first_namecharacterPlayer first name.
full_namecharacterPlayer full name.
games_coachedintegerTotal number of All-Star games the coach has coached across their career.
is_activelogicalWhether the team is active.
last_namecharacterPlayer last name.
lossesintegerLosses.
ot_lossesintegerOvertime losses.
season_idintegerSeason identifier.
tiesintegerTotal ties.
winsintegerWins.

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

Example​

nhl_records_allstar_coach_career()

Last validated n/a.

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
idintegerUnique player identifier.
all_star_team_idintegerIdentifier for the All-Star team roster to which the skater was assigned for this game.
all_star_team_scoreintegerGoals scored by the skater's All-Star team in this specific All-Star game.
arena_namecharacter
assistsintegerAssists.
citycharacterCity where the venue is located.
first_namecharacterPlayer first name.
full_namecharacterPlayer full name.
game_datecharacterGame date.
game_idintegerUnique game identifier.
game_namecharacter
goalsintegerGoals scored.
home_roadcharacterDesignation indicating whether the skater's All-Star team was the home or road side for this game.
is_activelogicalWhether the team is active.
is_rookielogicalWhether the player is a rookie.
last_namecharacterPlayer last name.
mvpcharacter
nhl_team_idintegerNHL identifier for the skater's regular-season team at the time this All-Star game was played.
opponent_scoreinteger
opponent_team_idintegerOpponent team identifier.
penaltiesdoublePenalty count.
penalty_minutesdoublePenalty minutes.
player_idintegerUnique player identifier.
pointsintegerTotal points (goals + assists).
positioncharacterPlayer position.
power_play_goalsintegerPower-play goals.
season_idintegerSeason identifier.
short_handed_goalsintegerShort-handed goals.
state_province_codecharacterState or province code of the official.

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

Example​

nhl_records_allstar_skater_game()

Last validated n/a.

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
idintegerUnique player identifier.
all_star_team_idintegerNHL identifier for the All-Star team the goalie was assigned to in the game.
all_star_team_scoreintegerGoals scored by the goalie's All-Star team in that game.
arena_namecharacter
citycharacterCity where the venue is located.
first_namecharacterPlayer first name.
full_namecharacterPlayer full name.
game_datecharacterGame date.
game_idintegerUnique game identifier.
game_namecharacter
goals_againstintegerGoals against.
home_roadcharacterIndicates whether the goalie's All-Star team was the designated home or road squad for the game.
is_activelogicalWhether the team is active.
is_rookielogicalWhether the player is a rookie.
last_namecharacterPlayer last name.
mvpcharacter
nhl_team_idintegerNHL identifier for the goalie's regular-season franchise at the time of the All-Star game.
opponent_scoreinteger
opponent_team_idintegerOpponent team identifier.
player_idintegerUnique player identifier.
save_percentagedoubleSave percentage (goalies).
savesintegerSaves made.
season_idintegerSeason identifier.
shots_againstintegerShots faced.
state_province_codecharacterState or province code of the official.
time_on_iceintegerTime on ice in seconds.

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

Example​

nhl_records_allstar_goalie_game()

Last validated n/a.