NBA player stats tables
GET https://api.api.sh/nba/v1/stats/players
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 |
|---|---|---|
season | string | Season as 2025-26 or its first year 2025; 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. |
measure_type | string | Table: base (default), advanced, misc, scoring, usage, defense. |
per_mode | string | |
team | string | Team abbreviation (LAL, BOS ...) or nickname. |
opponent | string | Only games against this team (abbreviation). |
start_date | string | From date (YYYY-MM-DD). |
end_date | string | To date (YYYY-MM-DD). |
last_n_games | integer | Only each team's last N games. |
month | integer | Month of the season (1 = October ... 9 = June). |
location | home | road | home or road. |
outcome | W | L | W or L. |
season_segment | pre-all-star | post-all-star | pre-all-star or post-all-star. |
period | integer | Only this quarter (1-4) or overtime (5+). |
game_segment | first-half | second-half | overtime | first-half, second-half or overtime. |
conference | string | East or West. |
division | string | Division name, e.g. Pacific. |
vs_conference | string | Only games against this conference. |
vs_division | string | Only games against this division. |
position | G | F | C | G, F or C. |
starter_bench | starters | bench | starters or bench. |
experience | rookie | sophomore | veteran | rookie, sophomore or veteran. |
college | string | College name. |
country | string | Country name, e.g. France. |
draft_year | integer | Draft year. |
min_games | integer | Minimum games played. |
sort | string | Column to sort by (a snake_case column of the table, e.g. pts, net_rating, plus_minus). |
direction | desc | asc | desc (default) or asc. |
page | integer | Page number, from 1. |
limit | integer | Rows 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/stats/players?season=2025-26&measure_type=advanced" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nba/v1/stats/players",
params={"season": "2025-26", "measure_type": "advanced"},
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/stats/players");
url.searchParams.set("season", "2025-26");
url.searchParams.set("measure_type", "advanced");
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)
{"applied_filters": {"season": "2025-26","season_type": "Regular Season","measure_type": "Advanced","per_mode": "PerGame"},"total": 582,"page": 1,"count": 100,"next_page": 2,"rows": [{"player_id": 1630639,"player_name": "A.J. Lawson","nickname": "A.J.","team_id": 1610612761,"team_abbreviation": "TOR","age": 25,"gp": 24,"w": 12,"l": 12,"w_pct": 0.5,"min": 9.4,"e_off_rating": 109.8,"off_rating": 107.6,"sp_work_off_rating": 107.6,"e_def_rating": 110.6,"def_rating": 110.7,"sp_work_def_rating": 110.7,"e_net_rating": -0.8,"net_rating": -3.1,"sp_work_net_rating": -3.1,"ast_pct": 0.046,"ast_to": 1.17,"ast_ratio": 7.1,"oreb_pct": 0.039,"dreb_pct": 0.156,"reb_pct": 0.096,"tm_tov_pct": 6.1,"e_tov_pct": 6.1,"efg_pct": 0.558,"ts_pct": 0.588,"usg_pct": 0.172,"e_usg_pct": 0.18,"e_pace": 98.51,"pace": 99.45,"pace_per40": 82.88,"sp_work_pace": 99.45,"pie": 0.091,"poss": 471,"fgm": 34,"fga": 78,"…": "39 more fields"},{"player_id": 1631260,"player_name": "AJ Green","nickname": "AJ","team_id": 1610612749,"team_abbreviation": "MIL","age": 26,"gp": 78,"w": 31,"l": 47,"w_pct": 0.397,"min": 29.1,"e_off_rating": 112.1,"off_rating": 113.1,"sp_work_off_rating": 113.1,"e_def_rating": 115.9,"def_rating": 116.7,"sp_work_def_rating": 116.7,"e_net_rating": -3.8,"net_rating": -3.6,"sp_work_net_rating": -3.6,"ast_pct": 0.09,"ast_to": 2.03,"ast_ratio": 17.6,"oreb_pct": 0.013,"dreb_pct": 0.08,"reb_pct": 0.046,"tm_tov_pct": 8.7,"e_tov_pct": 8.6,"efg_pct": 0.612,"ts_pct": 0.627,"usg_pct": 0.135,"e_usg_pct": 0.139,"e_pace": 100.08,"pace": 99.28,"pace_per40": 82.73,"sp_work_pace": 99.28,"pie": 0.058,"poss": 4704,"fgm": 262,"fga": 618,"…": "39 more fields"},"… 98 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.