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 Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
year | year | Y | year path parameter. | ||
round_ | round_ | Y | round_ 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_name | type | description |
|---|---|---|
round | Int64 | Draft round the pick was made in (1 = first round). |
pick_in_round | Int64 | Pick number within the round. |
overall_pick | Int64 | Overall pick number in the draft. |
team_id | Int64 | Unique team identifier. |
team_abbrev | String | Team abbreviation. |
team_logo_light | String | URL to the team logo (light variant). |
team_logo_dark | String | URL to the team logo (dark variant). |
team_pick_history | String | History of the team's picks at this slot. |
position_code | String | Player position code. |
country_code | String | Player country code. |
height | Int64 | Player height in inches. |
weight | Int64 | Player weight in pounds. |
amateur_league | String | Amateur league the player played in. |
amateur_club_name | String | Amateur club the player played for. |
team_name_default | String | Team name (default locale). |
team_name_fr | String | Team name (French locale). |
team_common_name_default | String | Team common name (default language). |
team_place_name_with_preposition_default | String | Team place name with preposition (default). |
team_place_name_with_preposition_fr | String | Team place name with preposition (French). |
display_abbrev_default | String | Short display abbreviation for the selected player's nationality or amateur league affiliation shown in the NHL draft picks listing. |
first_name_default | String | Player first name (default language). |
last_name_default | String | Player last name (default language). |
team_common_name_fr | String | Team 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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 Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
year | year | Y | year path parameter. | ||
category | category | Y | category 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_name | type | description |
|---|---|---|
draft_year | Int64 | Draft year the lottery applies to. |
category_id | Int64 | Prospect category identifier. |
category_key | String | Machine-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_name | String | Player last name. |
first_name | String | Player first name. |
position_code | String | Player position code. |
shoots_catches | String | Handedness (shoots/catches). |
height_in_inches | Int64 | Height in inches. |
weight_in_pounds | Int64 | Weight in pounds. |
last_amateur_club | String | Prospect's most recent amateur club. |
last_amateur_league | String | Prospect's most recent amateur league. |
birth_date | String | Player birth date. |
birth_city | String | Birth city. |
birth_state_province | String | Birth state or province of the player. |
birth_country | String | Player birth country. |
midterm_rank | Float64 | Prospect's midterm draft ranking. |
final_rank | Float64 | Prospect'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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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 Parameter | Python | Pattern | Required | Nullable | Description |
|---|
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
round | Int64 | Shootout round number. |
pick_in_round | Int64 | Pick number within the round. |
overall_pick | Int64 | Overall pick number in the draft. |
team_id | Int64 | Unique team identifier. |
team_abbrev | String | Team abbreviation. |
team_logo_light | String | URL to the team logo (light variant). |
team_logo_dark | String | URL to the team logo (dark variant). |
team_pick_history | String | History of the team's picks at this slot. |
position_code | String | Player position code. |
country_code | String | Player country code. |
height | Int64 | Player height in inches. |
weight | Int64 | Player weight in pounds. |
amateur_league | String | Amateur league the player played in. |
amateur_club_name | String | Amateur club the player played for. |
team_name_default | String | Team name (default locale). |
team_name_fr | String | Team name (French locale). |
team_common_name_default | String | Team common name (default language). |
team_place_name_with_preposition_default | String | Team place name with preposition (default). |
team_place_name_with_preposition_fr | String | Team place name with preposition (French). |
display_abbrev_default | String | Default-language display abbreviation for the team that currently holds this draft pick. |
first_name_default | String | Player first name (default language). |
last_name_default | String | Player 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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 Parameter | Python | Pattern | Required | Nullable | Description |
|---|
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
draft_year | Int64 | Draft year the lottery applies to. |
category_id | Int64 | Prospect category identifier. |
category_key | String | Short identifier string for the scouting category or ranking list under which the prospect is evaluated (e.g., 'NA-SKATER', 'GOALIE'). |
last_name | String | Player last name. |
first_name | String | Player first name. |
position_code | String | Player position code. |
shoots_catches | String | Handedness (shoots/catches). |
height_in_inches | Int64 | Height in inches. |
weight_in_pounds | Int64 | Weight in pounds. |
last_amateur_club | String | Prospect's most recent amateur club. |
last_amateur_league | String | Prospect's most recent amateur league. |
birth_date | String | Player birth date. |
birth_city | String | Birth city. |
birth_state_province | String | Birth state or province of the player. |
birth_country | String | Player birth country. |
midterm_rank | Float64 | Prospect's midterm draft ranking. |
final_rank | Float64 | Prospect'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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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 Parameter | Python | Pattern | Required | Nullable | Description |
|---|
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
pick_in_round | Int64 | Pick number within the round. |
overall_pick | Int64 | Overall pick number in the draft. |
team_id | Int64 | Unique team identifier. |
team_abbrev | String | Team abbreviation. |
team_logo_light | String | URL to the team logo (light variant). |
team_logo_dark | String | URL to the team logo (dark variant). |
state | String | Pick state (e.g., on the clock, complete). |
position_code | String | Player position code. |
team_full_name_default | String | Team full name (default language). |
team_full_name_fr | String | Team full name (French). |
team_common_name_default | String | Team common name (default language). |
team_place_name_with_preposition_default | String | Team place name with preposition (default). |
team_place_name_with_preposition_fr | String | Team place name with preposition (French). |
last_name_default | String | Player last name (default language). |
first_name_default | String | Player 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
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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()