STAT-API

NBA teams API

teamsnba.teams
The 30 NBA franchises, organized into the Eastern and Western Conferences with three divisions in each.
GET/api/v1/nba/teams
Parameters
activequerybooleanoptional
Filter by active status (defaults to true to show only currently-active rows; pass active=false to include inactive).
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/nba/teams?limit=3'
Responses
200teams rows matching the declared filter set, wrapped in { teams, 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
Response Schema(10 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
league_team_id
integernullable—Official NBA team ID (issued by the league)
e.g. 1610612738
stadium_id
bigintnullable—
e.g. — (all-null in sample)
abbreviation
string——
e.g. BOS
active
boolean——
e.g. true
city
string——
e.g. Los Angeles
conference
string——
Values:EasternWestern
division
string——
Values:AtlanticCentralSoutheastNorthwestPacificSouthwest
full_name
string——
e.g. Boston Celtics
name
string——
e.g. Celtics
GET/api/v1/nba/teams/{id}
Parameters
idpathbigintrequired
Primary key (id) of the team 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/teams/{pk_value}'
Responses
200Single team row.application/jsonshow example ▸
404Row not found.
Response Schema(10 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
league_team_id
integernullable—Official NBA team ID (issued by the league)
e.g. 1610612738
stadium_id
bigintnullable—
e.g. — (all-null in sample)
abbreviation
string——
e.g. BOS
active
boolean——
e.g. true
city
string——
e.g. Los Angeles
conference
string——
Values:EasternWestern
division
string——
Values:AtlanticCentralSoutheastNorthwestPacificSouthwest
full_name
string——
e.g. Boston Celtics
name
string——
e.g. Celtics