NBA seasons API
seasons
nba.seasonsEach NBA league year, running from October through June — the 82-game regular season, the play-in tournament, and the four-round playoffs that end with the NBA Finals.
GET/api/v1/nba/seasonsList seasons for NBA
Parameters
limitqueryintegeroptionaldefault 25Page size. Defaults to 25; 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/nba/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/jsonResponse Schema(6 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
end_date | timestamptznullable | — | — e.g. 2017-06-12T04:00:00.000Z |
post_season_start_date | timestamptznullable | — | — e.g. 2017-04-15T04:00:00.000Z |
regular_season_start_date | timestamptznullable | — | — e.g. 2016-10-25T04:00:00.000Z |
start_date | timestamptz | — | — e.g. 2016-10-25T04:00:00.000Z |
start_year | integer | — | — e.g. 2016 |
GET/api/v1/nba/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/nba/seasons/{pk_value}'Responses
200Single season row.application/jsonshow example ▸
404Row not found.
Response Schema(6 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
end_date | timestamptznullable | — | — e.g. 2017-06-12T04:00:00.000Z |
post_season_start_date | timestamptznullable | — | — e.g. 2017-04-15T04:00:00.000Z |
regular_season_start_date | timestamptznullable | — | — e.g. 2016-10-25T04:00:00.000Z |
start_date | timestamptz | — | — e.g. 2016-10-25T04:00:00.000Z |
start_year | integer | — | — e.g. 2016 |