Skip to main content
Version: 0.2.0

NHL — NHL Web API — Player

nhl_player_landing​

Pull the player profile / overview.

Endpoint URL: GET https://api-web.nhle.com/v1/player/{player_id}/landing

Valid URL: https://api-web.nhle.com/v1/player/8480801/landing

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYplayer_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
player_idInt64Unique player identifier.
is_activeBooleanWhether the team is active.
current_team_idInt64Player's current team identifier.
current_team_abbrevStringThree-letter abbreviation of the NHL team the player is currently rostered on (e.g., 'TOR', 'BOS').
badgesStringSerialized list of achievement or milestone badges displayed on the player's NHL api-web profile page.
team_logoStringURL to the team logo image.
sweater_numberInt64Jersey number.
positionStringPlayer position.
headshotStringURL to the player headshot image.
hero_imageStringURL to the large hero/banner image of the player displayed at the top of their NHL api-web profile page.
height_in_inchesInt64Height in inches.
height_in_centimetersInt64Height in centimeters.
weight_in_poundsInt64Weight in pounds.
weight_in_kilogramsInt64Weight in kilograms.
birth_dateStringPlayer birth date.
birth_countryStringPlayer birth country.
shoots_catchesStringHandedness (shoots/catches).
player_slugStringURL slug for the player.
in_top100_all_timeInt64Flag (1/0) indicating whether the player is recognized among the NHL's Top 100 all-time greatest players.
in_hhofInt64Flag (1/0) indicating whether the player has been inducted into the Hockey Hall of Fame.
shop_linkStringURL to the NHL shop page where merchandise for this player (e.g., jerseys) can be purchased.
twitter_linkStringURL to the player's official Twitter/X account as listed on their NHL api-web profile.
watch_linkStringURL to the NHL.tv or league streaming page where the player's games can be watched.
last5_gamesStringSerialized array of stat lines for the player's five most recent NHL games, as returned by the player landing endpoint.
season_totalsStringSerialized array of per-season stat totals for the player across all regular seasons and playoffs in their NHL career.
awardsStringSerialized list of NHL awards and honors the player has received, as returned by the NHL api-web player landing endpoint.
current_team_rosterStringSerialized roster-position metadata for the player's current NHL team assignment, as returned by the player landing endpoint.
full_team_name_defaultStringFull English name of the player's current NHL team (e.g., 'Toronto Maple Leafs'), as returned by the player landing endpoint.
full_team_name_frStringFull French-language name of the player's current NHL team, as returned by the player landing endpoint.
team_common_name_defaultStringTeam common name (default language).
team_place_name_with_preposition_defaultStringTeam place name with preposition (default).
team_place_name_with_preposition_frStringTeam place name with preposition (French).
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).
birth_city_defaultStringBirth city (default localization).
birth_state_province_defaultStringBirth state/province (default localization).
draft_details_yearInt64Calendar year in which the player was selected in the NHL Entry Draft.
draft_details_team_abbrevStringThree-letter abbreviation of the NHL team that drafted the player in the Entry Draft.
draft_details_roundInt64Round number in which the player was selected during the NHL Entry Draft.
draft_details_pick_in_roundInt64Pick number within the player's draft round in the NHL Entry Draft.
draft_details_overall_pickInt64Overall pick number at which the player was selected in the NHL Entry Draft.
featured_stats_seasonInt64Eight-digit NHL season identifier (e.g., 20232024) indicating which season the featured stats on the player's profile correspond to.
featured_stats_regular_season_sub_season_assistsInt64Assists recorded by the player in the featured regular-season sub-season (typically the current or most recent season) on their NHL api-web profile.
featured_stats_regular_season_sub_season_game_winning_goalsInt64Game-winning goals recorded by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_games_playedInt64Games played by the player in the featured regular-season sub-season (typically the current or most recent season) on their NHL api-web profile.
featured_stats_regular_season_sub_season_goalsInt64Goals scored by the player in the featured regular-season sub-season (typically the current or most recent season) on their NHL api-web profile.
featured_stats_regular_season_sub_season_ot_goalsInt64Overtime goals scored by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_pimInt64Penalty minutes accumulated by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_plus_minusInt64Plus/minus rating for the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_pointsInt64Points (goals + assists) recorded by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_power_play_goalsInt64Power-play goals scored by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_power_play_pointsInt64Power-play points accumulated by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_shooting_pctgFloat64Shooting percentage for the player in the featured regular-season sub-season on their NHL api-web profile, expressed as a decimal.
featured_stats_regular_season_sub_season_shorthanded_goalsInt64Shorthanded goals scored by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_shorthanded_pointsInt64Shorthanded points accumulated by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_sub_season_shotsInt64Shots on goal taken by the player in the featured regular-season sub-season on their NHL api-web profile.
featured_stats_regular_season_career_assistsInt64Career regular-season assists highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_game_winning_goalsInt64Career regular-season game-winning goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_games_playedInt64Career regular-season games played highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_goalsInt64Career regular-season goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_ot_goalsInt64Career regular-season overtime goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_pimInt64Career regular-season penalty minutes highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_plus_minusInt64Career regular-season plus/minus rating highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_pointsInt64Career regular-season points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_power_play_goalsInt64Career regular-season power-play goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_power_play_pointsInt64Career regular-season power-play points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_shooting_pctgFloat64Career regular-season shooting percentage highlighted on the player's NHL api-web profile, expressed as a decimal.
featured_stats_regular_season_career_shorthanded_goalsInt64Career regular-season shorthanded goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_shorthanded_pointsInt64Career regular-season shorthanded points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_regular_season_career_shotsInt64Career regular-season shots on goal highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_sub_season_assistsInt64Assists recorded by the player in the featured playoff sub-season (typically the most recent postseason) on their NHL api-web profile.
featured_stats_playoffs_sub_season_game_winning_goalsInt64Game-winning goals recorded by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_games_playedInt64Games played by the player in the featured playoff sub-season (typically the most recent postseason) on their NHL api-web profile.
featured_stats_playoffs_sub_season_goalsInt64Goals scored by the player in the featured playoff sub-season (typically the most recent postseason) on their NHL api-web profile.
featured_stats_playoffs_sub_season_ot_goalsInt64Overtime goals scored by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_pimInt64Penalty minutes accumulated by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_plus_minusInt64Plus/minus rating for the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_pointsInt64Points (goals + assists) recorded by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_power_play_goalsInt64Power-play goals scored by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_power_play_pointsInt64Power-play points accumulated by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_shooting_pctgFloat64Shooting percentage for the player in the featured playoff sub-season on their NHL api-web profile, expressed as a decimal.
featured_stats_playoffs_sub_season_shorthanded_goalsInt64Shorthanded goals scored by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_shorthanded_pointsInt64Shorthanded points accumulated by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_sub_season_shotsInt64Shots on goal taken by the player in the featured playoff sub-season on their NHL api-web profile.
featured_stats_playoffs_career_assistsInt64Career playoff assists highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_game_winning_goalsInt64Career playoff game-winning goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_games_playedInt64Career playoff games played highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_goalsInt64Career playoff goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_ot_goalsInt64Career playoff overtime goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_pimInt64Career playoff penalty minutes highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_plus_minusInt64Career playoff plus/minus rating highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_pointsInt64Career playoff points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_power_play_goalsInt64Career playoff power-play goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_power_play_pointsInt64Career playoff power-play points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_shooting_pctgFloat64Career playoff shooting percentage highlighted on the player's NHL api-web profile, expressed as a decimal.
featured_stats_playoffs_career_shorthanded_goalsInt64Career playoff shorthanded goals highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_shorthanded_pointsInt64Career playoff shorthanded points highlighted on the player's NHL api-web profile for the featured season context.
featured_stats_playoffs_career_shotsInt64Career playoff shots on goal highlighted on the player's NHL api-web profile for the featured season context.
career_totals_regular_season_assistsInt64Career cumulative assists recorded by the player across all NHL regular-season games.
career_totals_regular_season_avg_toiStringCareer average time on ice per game in the NHL regular season, expressed as an MM:SS string.
career_totals_regular_season_faceoff_winning_pctgFloat64Career faceoff win percentage for the player across all NHL regular-season games.
career_totals_regular_season_game_winning_goalsInt64Career total of game-winning goals the player has scored in NHL regular-season games.
career_totals_regular_season_games_playedInt64Total number of NHL regular-season games the player has appeared in across their career.
career_totals_regular_season_goalsInt64Career total goals scored by the player in NHL regular-season games.
career_totals_regular_season_ot_goalsInt64Career total overtime goals scored by the player in NHL regular-season games.
career_totals_regular_season_pimInt64Career total penalty minutes accumulated by the player in NHL regular-season games.
career_totals_regular_season_plus_minusInt64Career plus/minus rating accumulated by the player across all NHL regular-season games.
career_totals_regular_season_pointsInt64Career total points (goals + assists) accumulated by the player in NHL regular-season games.
career_totals_regular_season_power_play_goalsInt64Career total power-play goals scored by the player in NHL regular-season games.
career_totals_regular_season_power_play_pointsInt64Career total power-play points (goals + assists on the power play) in NHL regular-season games.
career_totals_regular_season_shooting_pctgFloat64Career shooting percentage for the player in NHL regular-season games, expressed as a decimal.
career_totals_regular_season_shorthanded_goalsInt64Career total shorthanded goals scored by the player in NHL regular-season games.
career_totals_regular_season_shorthanded_pointsInt64Career total shorthanded points (goals + assists while shorthanded) in NHL regular-season games.
career_totals_regular_season_shotsInt64Career total shots on goal taken by the player in NHL regular-season games.
career_totals_playoffs_assistsInt64Career cumulative assists recorded by the player across all NHL playoff appearances.
career_totals_playoffs_avg_toiStringCareer average time on ice per game in NHL playoff play, expressed as an MM:SS string.
career_totals_playoffs_faceoff_winning_pctgFloat64Career faceoff win percentage for the player across all NHL playoff games.
career_totals_playoffs_game_winning_goalsInt64Career total of game-winning goals the player has scored in NHL playoff games.
career_totals_playoffs_games_playedInt64Total number of NHL playoff games the player has appeared in across their career.
career_totals_playoffs_goalsInt64Career total goals scored by the player in NHL playoff games.
career_totals_playoffs_ot_goalsInt64Career total overtime goals scored by the player in NHL playoff games.
career_totals_playoffs_pimInt64Career total penalty minutes accumulated by the player in NHL playoff games.
career_totals_playoffs_plus_minusInt64Career plus/minus rating accumulated by the player across all NHL playoff games.
career_totals_playoffs_pointsInt64Career total points (goals + assists) accumulated by the player in NHL playoff games.
career_totals_playoffs_power_play_goalsInt64Career total power-play goals scored by the player in NHL playoff games.
career_totals_playoffs_power_play_pointsInt64Career total power-play points (goals + assists on the power play) in NHL playoff games.
career_totals_playoffs_shooting_pctgFloat64Career shooting percentage for the player in NHL playoff games, expressed as a decimal.
career_totals_playoffs_shorthanded_goalsInt64Career total shorthanded goals scored by the player in NHL playoff games.
career_totals_playoffs_shorthanded_pointsInt64Career total shorthanded points (goals + assists while shorthanded) in NHL playoff games.
career_totals_playoffs_shotsInt64Career total shots on goal taken by the player in NHL playoff games.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

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_player_landing(player_id=8480801)

nhl_player_game_log​

Pull a player's game-by-game log.

Endpoint URL: GET https://api-web.nhle.com/v1/player/{player_id}/game-log/{season}/{game_type}

Valid URL: https://api-web.nhle.com/v1/player/8480801/game-log/now

API ParameterPythonPatternRequiredNullableDescription
player_idplayer_idYplayer_id path parameter.
seasonseasonYseason path parameter.
game_typegame_typeYgame_type 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
game_idInt64Unique game identifier.
team_abbrevStringTeam abbreviation.
home_road_flagStringHome or road indicator.
game_dateStringGame date.
goalsInt64Goals scored.
assistsInt64Assists.
pointsInt64Total points (goals + assists).
plus_minusInt64Plus/minus rating.
power_play_goalsInt64Power-play goals.
power_play_pointsInt64Power play points.
game_winning_goalsInt64Game-winning goals.
ot_goalsInt64Overtime goals.
shotsInt64Shots on goal.
shiftsInt64Number of shifts.
shorthanded_goalsInt64Shorthanded goals.
shorthanded_pointsInt64Shorthanded points.
opponent_abbrevStringOpponent team abbreviation.
pimInt64Penalty minutes.
toiStringTime on ice.
common_name_defaultStringPlayer's team common name.
opponent_common_name_defaultStringOpponent team common name.
opponent_common_name_frStringFrench-language common name of the opposing team in the player's individual game log entry from the NHL api-web feed.

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

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_player_game_log(player_id=8480801)

nhl_player_spotlight​

Pull the league's currently featured players.

Endpoint URL: GET https://api-web.nhle.com/v1/player-spotlight

Valid URL: https://api-web.nhle.com/v1/player-spotlight

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
player_idInt64Unique player identifier.
player_slugStringURL slug for the player.
positionStringPlayer position.
sweater_numberInt64Jersey number.
team_idInt64Unique team identifier.
headshotStringURL to the player headshot image.
team_tri_codeStringTeam tri-code abbreviation.
team_logoStringURL to the team logo image.
sort_idInt64Sort order identifier for the spotlight.
name_defaultStringPlayer name (default localization).
name_csStringPlayer name (Czech localization).
name_fiStringPlayer name (Finnish localization).
name_skStringPlayer name (Slovak localization).

return_parsed=False — the raw JSON payload: a dict, or a list for the endpoints that answer an array (nhl_postal_lookup, nhl_smartlinks).

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