Skip to main content
Version: 0.2.0

NHL — NHL Web API — Draft

nhl_draft_picks​

Pull NHL draft picks for a year (and optionally one round).

Endpoint URL: GET https://api-web.nhle.com/v1/draft/picks/{year}/{round_}

Valid URL: https://api-web.nhle.com/v1/draft/picks/2024/all

API ParameterPythonPatternRequiredNullableDescription
yearyearYyear path parameter.
round_round_Yround_ 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
roundInt64Draft round the pick was made in (1 = first round).
pick_in_roundInt64Pick number within the round.
overall_pickInt64Overall pick number in the draft.
team_idInt64Unique team identifier.
team_abbrevStringTeam abbreviation.
team_logo_lightStringURL to the team logo (light variant).
team_logo_darkStringURL to the team logo (dark variant).
team_pick_historyStringHistory of the team's picks at this slot.
position_codeStringPlayer position code.
country_codeStringPlayer country code.
heightInt64Player height in inches.
weightInt64Player weight in pounds.
amateur_leagueStringAmateur league the player played in.
amateur_club_nameStringAmateur club the player played for.
team_name_defaultStringTeam name (default locale).
team_name_frStringTeam name (French locale).
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).
display_abbrev_defaultStringShort display abbreviation for the selected player's nationality or amateur league affiliation shown in the NHL draft picks listing.
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).
team_common_name_frStringTeam common name (French 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_draft_picks(year=2024)

nhl_draft_rankings​

Pull NHL Central Scouting rankings for a draft year.

Endpoint URL: GET https://api-web.nhle.com/v1/draft/rankings/{year}/{category}

Valid URL: https://api-web.nhle.com/v1/draft/rankings/2024/1

API ParameterPythonPatternRequiredNullableDescription
yearyearYyear path parameter.
categorycategoryYcategory 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
draft_yearInt64Draft year the lottery applies to.
category_idInt64Prospect category identifier.
category_keyStringMachine-readable slug identifying the scouting or ranking category (e.g., 'north-american-skater', 'international-skater') that the prospect belongs to in the NHL draft rankings.
last_nameStringPlayer last name.
first_nameStringPlayer first name.
position_codeStringPlayer position code.
shoots_catchesStringHandedness (shoots/catches).
height_in_inchesInt64Height in inches.
weight_in_poundsInt64Weight in pounds.
last_amateur_clubStringProspect's most recent amateur club.
last_amateur_leagueStringProspect's most recent amateur league.
birth_dateStringPlayer birth date.
birth_cityStringBirth city.
birth_state_provinceStringBirth state or province of the player.
birth_countryStringPlayer birth country.
midterm_rankFloat64Prospect's midterm draft ranking.
final_rankFloat64Prospect's final draft ranking.

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_draft_rankings(year=2024)

nhl_draft_picks_now​

Pull the current / most recent draft pick set.

Endpoint URL: GET https://api-web.nhle.com/v1/draft/picks/now

Valid URL: https://api-web.nhle.com/v1/draft/picks/now

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
roundInt64Shootout round number.
pick_in_roundInt64Pick number within the round.
overall_pickInt64Overall pick number in the draft.
team_idInt64Unique team identifier.
team_abbrevStringTeam abbreviation.
team_logo_lightStringURL to the team logo (light variant).
team_logo_darkStringURL to the team logo (dark variant).
team_pick_historyStringHistory of the team's picks at this slot.
position_codeStringPlayer position code.
country_codeStringPlayer country code.
heightInt64Player height in inches.
weightInt64Player weight in pounds.
amateur_leagueStringAmateur league the player played in.
amateur_club_nameStringAmateur club the player played for.
team_name_defaultStringTeam name (default locale).
team_name_frStringTeam name (French locale).
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).
display_abbrev_defaultStringDefault-language display abbreviation for the team that currently holds this draft pick.
first_name_defaultStringPlayer first name (default language).
last_name_defaultStringPlayer last name (default language).

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

nhl_draft_rankings_now​

Pull the current Central Scouting rankings.

Endpoint URL: GET https://api-web.nhle.com/v1/draft/rankings/now

Valid URL: https://api-web.nhle.com/v1/draft/rankings/now

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
draft_yearInt64Draft year the lottery applies to.
category_idInt64Prospect category identifier.
category_keyStringShort identifier string for the scouting category or ranking list under which the prospect is evaluated (e.g., 'NA-SKATER', 'GOALIE').
last_nameStringPlayer last name.
first_nameStringPlayer first name.
position_codeStringPlayer position code.
shoots_catchesStringHandedness (shoots/catches).
height_in_inchesInt64Height in inches.
weight_in_poundsInt64Weight in pounds.
last_amateur_clubStringProspect's most recent amateur club.
last_amateur_leagueStringProspect's most recent amateur league.
birth_dateStringPlayer birth date.
birth_cityStringBirth city.
birth_state_provinceStringBirth state or province of the player.
birth_countryStringPlayer birth country.
midterm_rankFloat64Prospect's midterm draft ranking.
final_rankFloat64Prospect's final draft ranking.

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

nhl_draft_tracker_picks_now​

Pull the live draft-tracker pick list (during the draft itself).

Endpoint URL: GET https://api-web.nhle.com/v1/draft-tracker/picks/now

Valid URL: https://api-web.nhle.com/v1/draft-tracker/picks/now

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
pick_in_roundInt64Pick number within the round.
overall_pickInt64Overall pick number in the draft.
team_idInt64Unique team identifier.
team_abbrevStringTeam abbreviation.
team_logo_lightStringURL to the team logo (light variant).
team_logo_darkStringURL to the team logo (dark variant).
stateStringPick state (e.g., on the clock, complete).
position_codeStringPlayer position code.
team_full_name_defaultStringTeam full name (default language).
team_full_name_frStringTeam full name (French).
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).
last_name_defaultStringPlayer last name (default language).
first_name_defaultStringPlayer first name (default language).

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