Get NBA team stats

GET/v1/nba/teams/{team_id}/stats

Team season averages, offensive/defensive ratings, pace, lineup combinations, and home/away splits.

Code samples

# Get live scores across every league
curl "https://api.sportapi.io/v1/nba/scores/live" \
  -H "Authorization: Bearer $API_KEY"

# Response
{
  "games": [{
    "game_id": "0022500412",
    "status": "in_progress",
    "period": 3, "clock": "07:42",
    "home": { "team": "BOS", "score": 78 },
    "away": { "team": "LAL", "score": 71 },
    "last_play": "J. Tatum makes 3-pt jumper from 25 ft"
  }]
}

Query parameters

ParameterTypeRequiredDescription
team_idstringYes3-letter team abbreviation, e.g. LAL
seasonstringNoSeason filter, e.g. 2024-25

Response

{
  "team": "LAL",
  "season": "2024-25",
  "record": { "w": 32, "l": 24 },
  "ratings": { "off_rtg": 116.8, "def_rtg": 113.2, "net_rtg": 3.6, "pace": 101.3 },
  "splits": { "home": { "w": 19, "l": 8 }, "away": { "w": 13, "l": 16 } }
}

Error responses

StatusCodeDescription
401unauthorizedMissing or invalid API key
403tier_insufficientYour plan tier doesn't include this resource
429rate_limitedExceeded rate limit; honor Retry-After
500internal_errorServer error; retry with exponential backoff