NBA league leaders
League leaders in a stat for a season (or season=all-time): rank, player, team, games, minutes and every box score average or total. 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
| name | type | description |
|---|---|---|
stat | string | PTS (default), REB, AST, STL, BLK, TOV, EFF, MIN, FGM, FGA, FG_PCT, FG3M, FG3A, FG3_PCT, FTM, FTA, FT_PCT, OREB, DREB, AST_TOV, STL_TOV, PF. |
season | string | Season as 2025-26 or all-time; the current season by default. |
season_type | regular | playoffs | preseason | play-in | cup | all-star | regular (default), playoffs, preseason, play-in, cup (NBA Cup) or all-star. |
per_mode | per_game | totals | per_48 | per_game (default), totals or per_48. Percentage and ratio stats (FG_PCT, FG3_PCT, FT_PCT, AST_TOV, STL_TOV) and PF always use season totals. |
scope | s | rs | rookies | s all players (default), rs qualified players, rookies. |
page | integer | Page number, from 1. |
limit | integer | Players per page (1-500, default 50). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/nba/v1/leaders?stat=PTS" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nba/v1/leaders",
params={"stat": "PTS"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/nba/v1/leaders");
url.searchParams.set("stat", "PTS");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"stat": "PTS","season": "2026-27","season_type": "Regular Season","per_mode": "PerGame","scope": "s","total": 290,"page": 1,"count": 50,"next_page": 2,"leaders": [{"player_id": 1629029,"rank": 1,"player": "Luka Dončić","team_id": 1610612747,"team": "LAL","gp": 8,"min": 35.6,"fgm": 11.6,"fga": 23.5,"fg_pct": 0.495,"fg3_m": 5.9,"fg3_a": 13.6,"fg3_pct": 0.431,"ftm": 9.4,"fta": 10.5,"ft_pct": 0.893,"oreb": 0.3,"dreb": 7.9,"reb": 8.1,"ast": 8,"stl": 1.8,"blk": 0.8,"tov": 5.1,"pts": 38.5,"eff": 39},{"player_id": 1628983,"rank": 2,"player": "Shai Gilgeous-Alexander","team_id": 1610612760,"team": "OKC","gp": 8,"min": 33.8,"fgm": 10.6,"fga": 23.8,"fg_pct": 0.447,"fg3_m": 2.6,"fg3_a": 7.4,"fg3_pct": 0.356,"ftm": 6.3,"fta": 7.4,"ft_pct": 0.847,"oreb": 0.8,"dreb": 3.5,"reb": 4.3,"ast": 4.5,"stl": 1.1,"blk": 1.1,"tov": 2,"pts": 30.1,"eff": 24.9},"… 48 more"],"cached": false,"credits_used": 1}