STAT-API

NHL draft_picks API

draft_picksnhl.draft_picks
Every NHL Draft selection — round, pick number, drafting team, the league/country the player came from, and the career stats that followed.
⚠️ This endpoint is documented but not yet live. Calls return 503 until data is wired in.
GET/api/v1/nhl/draft_picks
Requires one of: year — requests satisfying none of these return 400.
Parameters
yearqueryintegeroptional
Filter to a single draft year.
team_idquerybigintoptional
Filter by drafting team.
player_idquerybigintoptional
Filter to a single player.
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/nhl/draft_picks?year=1'
Responses
200draft_picks rows matching the declared filter set, wrapped in { draft_picks, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.application/json
503Coming soon — handler returns 503 until data is wired in.
Response Schema(9 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
draft_id
integernullable——
e.g. — (all-null in sample)
original_team_id
integernullableTeam that originally owned the pick
e.g. — (all-null in sample)
player_id
bigintnullable—
e.g. — (all-null in sample)
team_id
bigint—
e.g. — (all-null in sample)
overall_pick
integer——
e.g. — (all-null in sample)
pick_in_round
integer——
e.g. — (all-null in sample)
round
integer——
e.g. — (all-null in sample)
year
integer——
e.g. — (all-null in sample)
GET/api/v1/nhl/draft_picks/{id}
Parameters
idpathbigintrequired
Primary key (id) of the draft_pick row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/nhl/draft_picks/{pk_value}'
Responses
200Single draft_pick row.application/jsonshow example ▸
404Row not found.
503Coming soon — handler returns 503 until data is wired in.
Response Schema(9 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
draft_id
integernullable——
e.g. — (all-null in sample)
original_team_id
integernullableTeam that originally owned the pick
e.g. — (all-null in sample)
player_id
bigintnullable—
e.g. — (all-null in sample)
team_id
bigint—
e.g. — (all-null in sample)
overall_pick
integer——
e.g. — (all-null in sample)
pick_in_round
integer——
e.g. — (all-null in sample)
round
integer——
e.g. — (all-null in sample)
year
integer——
e.g. — (all-null in sample)