NBA lineup stats
Stats of 2- to 5-man lineups (the players, minutes, points, shooting, rebounds, assists, plus-minus, or advanced ratings), for a team or the league, with the same filters as the player tables. 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, fourfactors, opponent. |
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. |
group_size | integer | Players per lineup, 2-5 (default 5). |
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/lineups?team=LAL&season=2025-26" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nba/v1/stats/lineups",
params={"team": "LAL", "season": "2025-26"},
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/lineups");
url.searchParams.set("team", "LAL");
url.searchParams.set("season", "2025-26");
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": "Base","per_mode": "PerGame","team_id": "1610612747","group_quantity": "5"},"total": 641,"page": 1,"count": 100,"next_page": 2,"rows": [{"group_set": "Lineups","group_id": "-2544-1628379-1629020-1629637-1642355-","group_name": "L. James - L. Kennard - J. Vanderbilt - J. Hayes - B. James","team_id": 1610612747,"team_abbreviation": "LAL","gp": 1,"w": 1,"l": 0,"w_pct": 1,"min": 13.9,"fgm": 13,"fga": 25,"fg_pct": 0.52,"fg3_m": 3,"fg3_a": 8,"fg3_pct": 0.375,"ftm": 6,"fta": 7,"ft_pct": 0.857,"oreb": 5,"dreb": 13,"reb": 18,"ast": 6,"tov": 5,"stl": 2,"blk": 3,"blka": 1,"pf": 4,"pfd": 7,"pts": 35,"plus_minus": 12,"gp_rank": 249,"w_rank": 167,"l_rank": 1,"w_pct_rank": 1,"min_rank": 1,"fgm_rank": 2,"fga_rank": 1,"fg_pct_rank": 239,"fg3_m_rank": 6,"…": "18 more fields"},{"group_set": "Lineups","group_id": "-2544-1628379-1629028-1629060-1631222-","group_name": "L. James - L. Kennard - D. Ayton - R. Hachimura - J. LaRavia","team_id": 1610612747,"team_abbreviation": "LAL","gp": 3,"w": 2,"l": 1,"w_pct": 0.667,"min": 13,"fgm": 13.3,"fga": 21.7,"fg_pct": 0.615,"fg3_m": 3,"fg3_a": 5.7,"fg3_pct": 0.529,"ftm": 5.3,"fta": 7,"ft_pct": 0.762,"oreb": 2,"dreb": 6.3,"reb": 8.3,"ast": 9.7,"tov": 3.7,"stl": 5.3,"blk": 1,"blka": 0.7,"pf": 4.3,"pfd": 4,"pts": 35,"plus_minus": 8,"gp_rank": 83,"w_rank": 84,"l_rank": 283,"w_pct_rank": 317,"min_rank": 2,"fgm_rank": 1,"fga_rank": 4,"fg_pct_rank": 156,"fg3_m_rank": 6,"…": "18 more fields"},"… 98 more"],"cached": false,"credits_used": 1}