NHL seasons API
seasons
nhl.seasonsEach NHL season — preseason exhibitions, the 82-game regular season, and the Stanley Cup Playoffs (Wild Card, Divisional, Conference Finals, Stanley Cup Finals).
GET/api/v1/nhl/seasonsList seasons for NHL
Parameters
limitqueryintegeroptionaldefault 50Page size. Defaults to 50; max 5000.
from_idquerybigintoptionalReturn 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, has_more }. has_more is true when another row follows this page. To walk every row, start with ?from_id=0 and pass each next_from_id back as from_id until it is null; the filters stay. A first page without from_id comes in the default order and gives next_from_id null.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.
application/jsonResponse Schema(8 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
league_id | stringnullable | — | Official NHL season identifier e.g. — (all-null in sample) |
end_date | timestamptznullable | — | — e.g. 2020-09-19T04:00:00.000Z |
post_season_start_date | timestamptznullable | — | — e.g. 2020-08-01T04:00:00.000Z |
regular_season_start_date | timestamptznullable | — | — e.g. 2019-10-02T04:00:00.000Z |
stanley_cup_finals_date | timestamptznullable | — | — e.g. 2020-09-19T04:00:00.000Z |
start_date | timestamptz | — | — e.g. 2019-10-02T04:00:00.000Z |
start_year | integer | — | — e.g. 2019 |
GET/api/v1/nhl/seasons/{id}Get a single season by id
Parameters
idpathbigintrequiredPrimary 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.
Response Schema(8 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
league_id | stringnullable | — | Official NHL season identifier e.g. — (all-null in sample) |
end_date | timestamptznullable | — | — e.g. 2020-09-19T04:00:00.000Z |
post_season_start_date | timestamptznullable | — | — e.g. 2020-08-01T04:00:00.000Z |
regular_season_start_date | timestamptznullable | — | — e.g. 2019-10-02T04:00:00.000Z |
stanley_cup_finals_date | timestamptznullable | — | — e.g. 2020-09-19T04:00:00.000Z |
start_date | timestamptz | — | — e.g. 2019-10-02T04:00:00.000Z |
start_year | integer | — | — e.g. 2019 |