NBA team_depth_charts API
team_depth_charts
nba.team_depth_chartsEach NBA team's depth chart by position on each date — the starter, second-unit, and bench order at point guard, shooting guard, small forward, power forward, and center, with injury designations layered in.
GET/api/v1/nba/team_depth_chartsList team_depth_charts for NBA
Requires one of:
team_id + season_id — requests satisfying none of these return 400.Parameters
team_idquerybigintoptionalFilter by team.
season_idquerybigintoptionalFilter to a season. Defaults to the current season.
positionquerystringoptionalFilter by position (PG, SG, SF, PF, C). Values: C, PF, PG, SF, SG.
dayqueryintegeroptionalSnapshot day (YYYYMMDD integer). The table holds one snapshot per day; pass the latest day for the current depth chart. Range syntax: day__gte=, day__lte=, day__between=.
limitqueryintegeroptionaldefault 100Page size. Defaults to 100; 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/team_depth_charts?team_id=1&season_id=2026'Responses
200team_depth_charts rows matching the declared filter set, wrapped in { team_depth_charts, 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(8 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
player_id | bigint | — e.g. 337 | |
season_id | bigint | — e.g. 2025 | |
team_id | bigint | — e.g. 4 | |
day | integer | — | YYYYMMDD snapshot day e.g. 20260214 |
depth_rank | integer | — | 1-based rank within position (1 = starter) e.g. 1 |
injury_status | stringnullable | — | Injury designation (Day-To-Day, Out, etc.) Values:OutDay-To-DaySuspension |
position | string | — | PG, SG, SF, PF, C Values:SFSGPFPGC |
GET/api/v1/nba/team_depth_charts/{id}Get a single team_depth_chart by id
Parameters
idpathbigintrequiredPrimary key (id) of the team_depth_chart 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/team_depth_charts/{pk_value}'Responses
200Single team_depth_chart row.application/jsonshow example ▸
404Row not found.
Response Schema(8 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
player_id | bigint | — e.g. 337 | |
season_id | bigint | — e.g. 2025 | |
team_id | bigint | — e.g. 4 | |
day | integer | — | YYYYMMDD snapshot day e.g. 20260214 |
depth_rank | integer | — | 1-based rank within position (1 = starter) e.g. 1 |
injury_status | stringnullable | — | Injury designation (Day-To-Day, Out, etc.) Values:OutDay-To-DaySuspension |
position | string | — | PG, SG, SF, PF, C Values:SFSGPFPGC |