NBA team roster

GET https://api.api.sh/nba/v1/roster
1 credit / call sports try it in the playground →

A team's roster for a season: each player's id, name, number, position, height, weight, birth date, age, experience, school and how acquired, plus the coaching staff.

Every response includes credits_used: the credits this call cost.

Part of the NBA API: 22 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
teamrequired string Team abbreviation (LAL, BOS, GSW ...), nickname (lakers), team id or an nba.com team link. Example: LAL
season string Season as 2025-26 or its first year 2025; the current season by default.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/nba/v1/roster?team=GSW" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"team": "GSW","team_id": 1610612744,"season": "2026-27","count": 18,"players": [{"team_id": 1610612744,"season": "2026","league_id": "00","player": "Gary Payton II","nickname": "Gary","player_slug": "gary-payton-ii","num": "0","position": "G","height": "6-2","weight": "192","birth_date": "DEC 01, 1992","age": 33,"exp": "10","school": "Oregon State","player_id": 1627780,"how_acquired": "Traded from POR on 02/09/23","supplemental_status": 0},{"team_id": 1610612744,"season": "2026","league_id": "00","player": "Yaxel Lendeborg","nickname": "Yaxel","player_slug": "yaxel-lendeborg","num": "1","position": "F","height": "6-9","weight": "247","birth_date": "SEP 30, 2002","age": 24,"exp": "R","school": "Michigan","player_id": 1642865,"how_acquired": "#11 Pick in 2026 Draft","supplemental_status": 0},"… 16 more"],"coaches": [{"team_id": 1610612744,"season": "2026","coach_id": 204005,"first_name": "Steve","last_name": "Kerr","coach_name": "Steve Kerr","is_assistant": 1,"coach_type": "Head Coach","sort_sequence": null,"sub_sort_sequence": 1},{"team_id": 1610612744,"season": "2026","coach_id": 2345,"first_name": "Frank","last_name": "Vogel","coach_name": "Frank Vogel","is_assistant": 9,"coach_type": "Associate Head Coach","sort_sequence": null,"sub_sort_sequence": 2},"… 9 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.