Skip to main content

NHL — NHL Records API — Goalie

nhl_records_goalie_career_stats​

Goaltender career statistics (regular season).

Endpoint URL: GET https://records.nhl.com/site/api/goalie-career-stats

Valid URL: https://records.nhl.com/site/api/goalie-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.
active_playerBooleanIndicator of whether the player is active.
first_nameStringPlayer first name.
first_season_for_game_typeInt64First season ID for the game type.
franchise_idInt64Unique franchise identifier.
game_seven_games_playedStringGame seven games played.
game_seven_lossesStringGame seven losses.
game_seven_winsStringGame seven wins.
game_type_idInt64Game type identifier (regular/playoffs).
games_playedInt64Games played.
goals_againstInt64Goals against.
goals_against_averageFloat64Goals against average.
last_nameStringPlayer last name.
last_season_for_game_typeInt64Last season ID for the game type.
lossesInt64Losses.
overtime_games_playedInt64Overtime games played.
overtime_goals_againstInt64Overtime goals against.
overtime_goals_against_averageStringOvertime goals against average.
overtime_lossesStringTotal overtime losses.
overtime_save_pctgFloat64Overtime save percentage.
overtime_shots_againstInt64Overtime shots against.
overtime_tiesInt64Overtime ties.
overtime_time_on_iceFloat64Overtime time on ice (seconds).
overtime_winsInt64Overtime wins.
player_idInt64Unique player identifier.
position_codeStringPlayer position code.
save_pctgFloat64Save percentage.
savesInt64Saves made.
seasons_playedInt64Number of seasons played.
shots_againstInt64Shots faced.
shutoutsInt64Shutouts recorded.
team_abbrevsStringTeam abbreviation(s).
team_namesStringTeam names.
tiesInt64Total ties.
time_on_iceInt64Time on ice in seconds.
time_on_ice_min_secStringTotal time on ice (MM:SS).
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_goalie_career_stats()

nhl_records_goalie_career_stats_with_playoffs​

Goaltender career stats inclusive of regular season and playoffs.

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

Valid URL: https://records.nhl.com/site/api/goalie_career_stats_incl_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_playerInt64Indicator of whether the player is active.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
games_playedInt64Games played.
goals_againstInt64Goals against.
goals_against_averageFloat64Goals against average.
last_nameStringPlayer last name.
lossesInt64Losses.
overtime_lossesStringTotal overtime losses.
player_idInt64Unique player identifier.
position_codeStringPlayer position code.
save_pctgFloat64Save percentage.
savesInt64Saves made.
shots_againstInt64Shots faced.
shutoutsInt64Shutouts recorded.
team_abbrevsStringTeam abbreviation(s).
team_namesStringTeam names.
tiesInt64Total ties.
time_on_iceInt64Time on ice in seconds.
time_on_ice_min_secStringTotal time on ice (MM:SS).
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_goalie_career_stats_with_playoffs()

nhl_records_goalie_season_stats​

Goaltender single-season statistics.

Endpoint URL: GET https://records.nhl.com/site/api/goalie-season-stats

Valid URL: https://records.nhl.com/site/api/goalie-season-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.
active_playerBooleanIndicator of whether the player is active.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
game_seven_games_playedStringGame seven games played.
game_seven_lossesStringGame seven losses.
game_seven_winsStringGame seven wins.
game_typeInt64Game type the row belongs to.
games_playedInt64Games played.
games_startedInt64Games started (goalies).
goals_againstInt64Goals against.
goals_against_averageFloat64Goals against average.
last_nameStringPlayer last name.
lossesInt64Losses.
number_of_games_in_seasonInt64Number of games in the season.
overtime_games_playedInt64Overtime games played.
overtime_goals_againstInt64Overtime goals against.
overtime_lossesStringTotal overtime losses.
overtime_tiesInt64Overtime ties.
overtime_winsInt64Overtime wins.
player_idInt64Unique player identifier.
position_codeStringPlayer position code.
rookie_flagBooleanIndicator of whether the player was a rookie.
save_pctgFloat64Save percentage.
savesInt64Saves made.
season_idInt64Season identifier.
shots_againstInt64Shots faced.
shutoutsInt64Shutouts recorded.
team_abbrevsStringTeam abbreviation(s).
team_namesStringTeam names.
tiesInt64Total ties.
time_on_iceInt64Time on ice in seconds.
time_on_ice_min_secStringTotal time on ice (MM:SS).
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_goalie_season_stats()

nhl_records_goalie_win_streak​

Goaltenders with the longest consecutive-win streaks.

Endpoint URL: GET https://records.nhl.com/site/api/goalie-win-streak

Valid URL: https://records.nhl.com/site/api/goalie-win-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_playerBooleanIndicator of whether the player is active.
active_streakBooleanIndicator of whether the streak is active.
end_dateStringSeason end date.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
game_type_idInt64Game type identifier (regular/playoffs).
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
rookieBooleanWhether the player is a rookie.
season_idInt64Season identifier.
start_dateStringSeason start date.
team_abbrevStringTeam abbreviation.
team_idInt64Unique team identifier.
team_nameStringTeam name.
win_streakInt64Number of consecutive wins recorded by the goalie in this streak.

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

nhl_records_goalie_shutout_streak​

Goaltenders with the longest consecutive-shutout streaks.

Endpoint URL: GET https://records.nhl.com/site/api/goalie-shutout-streak

Valid URL: https://records.nhl.com/site/api/goalie-shutout-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_playerBooleanIndicator of whether the player is active.
active_streakBooleanIndicator of whether the streak is active.
duration_min_secStringStreak duration (MM:SS).
duration_secondsInt64Streak duration in seconds.
end_dateStringSeason end date.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
game_type_idInt64Game type identifier (regular/playoffs).
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
savesStringSaves made.
season_idInt64Season identifier.
start_dateStringSeason start date.
team_abbrevStringTeam abbreviation.
team_idInt64Unique team identifier.
team_nameStringTeam name.

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

nhl_records_goalie_win_plateaus​

Goaltenders who reached each win plateau (100, 200, 300 …).

Endpoint URL: GET https://records.nhl.com/site/api/goalie-win-plateaus

Valid URL: https://records.nhl.com/site/api/goalie-win-plateaus

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.
first_nameStringPlayer first name.
forty_win_seasonsInt64Number of seasons in which the goalie recorded 40 or more wins, a rare single-season achievement.
franchise_idInt64Unique franchise identifier.
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
seasons_playedInt64Number of seasons played.
team_abbrevsStringTeam abbreviation(s).
team_namesStringTeam names.
thirty_win_seasonsInt64Number of seasons in which the goalie recorded 30 or more wins.
twenty_win_seasonsInt64Number of seasons in which the goalie recorded 20 or more wins.

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

nhl_records_goalie_playoff_streak​

Goaltender consecutive playoff-win streaks.

Endpoint URL: GET https://records.nhl.com/site/api/goalie-playoff-streak

Valid URL: https://records.nhl.com/site/api/goalie-playoff-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_playerBooleanIndicator of whether the player is active.
active_streakBooleanIndicator of whether the streak is active.
consecutive_playoff_seasonsInt64Number of consecutive playoff seasons in which the goalie appeared for the franchise during this streak.
end_seasonInt64Last season (in YYYYYYYY format) of the goalie's consecutive playoff appearance streak.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
playoff_seasonsInt64Number of playoff seasons.
stanley_cup_winsInt64Number of Stanley Cup championships.
start_seasonInt64First season (in YYYYYYYY format) of the goalie's consecutive playoff appearance streak.
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_goalie_playoff_streak()

nhl_records_goalie_undefeated_streak​

Goaltender longest undefeated streaks (wins + ties).

Endpoint URL: GET https://records.nhl.com/site/api/goalie-undefeated-streak

Valid URL: https://records.nhl.com/site/api/goalie-undefeated-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_playerBooleanIndicator of whether the player is active.
active_streakBooleanIndicator of whether the streak is active.
end_dateStringSeason end date.
first_nameStringPlayer first name.
franchise_idInt64Unique franchise identifier.
game_type_idInt64Game type identifier (regular/playoffs).
last_nameStringPlayer last name.
player_idInt64Unique player identifier.
season_idInt64Season identifier.
start_dateStringSeason start date.
team_abbrevStringTeam abbreviation.
team_idInt64Unique team identifier.
team_nameStringTeam name.
undefeated_streakInt64Number of consecutive games without a regulation loss (wins plus overtime or shootout losses) in the goalie's record streak.

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