STAT-API

NHL seasons API

seasonsnhl.seasons
Each NHL season — preseason exhibitions, the 82-game regular season, and the Stanley Cup Playoffs (Wild Card, Divisional, Conference Finals, Stanley Cup Finals).
⚠️ This endpoint is documented but not yet live. Calls return 503 until data is wired in.
GET/api/v1/nhl/seasons
Parameters
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/seasons?limit=3'
Responses
200seasons rows matching the declared filter set, wrapped in { seasons, 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(8 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
league_id
stringnullable—Official NHL season identifier
e.g. — (all-null in sample)
end_date
timestamptznullable——
e.g. — (all-null in sample)
post_season_start_date
timestamptznullable——
e.g. — (all-null in sample)
regular_season_start_date
timestamptznullable——
e.g. — (all-null in sample)
stanley_cup_finals_date
timestamptznullable——
e.g. — (all-null in sample)
start_date
timestamptz——
e.g. — (all-null in sample)
start_year
integer——
e.g. — (all-null in sample)
GET/api/v1/nhl/seasons/{id}
Parameters
idpathbigintrequired
Primary key (id) of the season 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/seasons/{pk_value}'
Responses
200Single season row.application/jsonshow example ▸
404Row not found.
503Coming soon — handler returns 503 until data is wired in.
Response Schema(8 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
league_id
stringnullable—Official NHL season identifier
e.g. — (all-null in sample)
end_date
timestamptznullable——
e.g. — (all-null in sample)
post_season_start_date
timestamptznullable——
e.g. — (all-null in sample)
regular_season_start_date
timestamptznullable——
e.g. — (all-null in sample)
stanley_cup_finals_date
timestamptznullable——
e.g. — (all-null in sample)
start_date
timestamptz——
e.g. — (all-null in sample)
start_year
integer——
e.g. — (all-null in sample)