NBA player index

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

The players of a season (or, with historical=true, every player who matches the filters): id, name, team, number, position, height, weight, college, country, draft year, round and number, first and last year, and points, rebounds and assists. Filter by team, position, country, college, draft year. Pass next_page back as page; null on the last page.

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
season string Season as 2025-26 or its first year 2025; the current season by default.
team string Team abbreviation (LAL, BOS ...) or nickname.
position string G, F, C, or a combination like G-F.
country string Country, e.g. France.
college string College name or part of it.
draft_year string Draft year, or undrafted.
historical boolean true to include past players (needs team, country, college or draft_year).
page integer Page number, from 1.
limit integer Players per page (1-500, default 100).

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

Example

curl "https://api.api.sh/nba/v1/players?season=2025-26&team=LAL" \
  -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)

{"season": "2025-26","applied_filters": {"team": "LAL","position": null,"country": null,"college": null,"draft_year": null,"historical": false},"total": 17,"page": 1,"count": 17,"next_page": null,"players": [{"person_id": 1629028,"player_last_name": "Ayton","player_first_name": "Deandre","player_slug": "deandre-ayton","team_slug": "lakers","team_id": 1610612747,"team_city": "Los Angeles","team_name": "Lakers","team_abbreviation": "LAL","jersey_number": "5","position": "C","height": "7-0","weight": "252","college": "Arizona","country": "Bahamas","draft_year": 2018,"draft_round": 1,"draft_number": 1,"roster_status": 1,"from_year": "2018","to_year": "2026","pts": 12.5,"reb": 8,"ast": 0.8,"stats_timeframe": "Season","supplemental_status": 0,"url": "https://www.nba.com/player/1629028/deandre-ayton"},{"person_id": 1629029,"player_last_name": "Dončić","player_first_name": "Luka","player_slug": "luka-dončić","team_slug": "lakers","team_id": 1610612747,"team_city": "Los Angeles","team_name": "Lakers","team_abbreviation": "LAL","jersey_number": "77","position": "F-G","height": "6-8","weight": "230","college": "Real Madrid","country": "Slovenia","draft_year": 2018,"draft_round": 1,"draft_number": 3,"roster_status": 1,"from_year": "2018","to_year": "2026","pts": 33.5,"reb": 7.7,"ast": 8.3,"stats_timeframe": "Season","supplemental_status": 0,"url": "https://www.nba.com/player/1629029/luka-dončić"},"… 15 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.