STAT-API

NBA game_team_lineup_stints API

game_team_lineup_stintsnba.game_team_lineup_stints
Each continuous stretch an NBA team had the same five players on the floor (regular season, play-in, IST, and playoffs — no preseason) — the five-man unit, when it started and ended, and the team's net production while it was in.
GET/api/v1/nba/game_team_lineup_stints
Requires one of: game_id — requests satisfying none of these return 400.
Parameters
game_idquerybigintoptional
Filter to a single game.
team_idquerybigintoptional
Filter by team.
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/nba/game_team_lineup_stints?game_id=1'
Responses
200game_team_lineup_stints rows matching the declared filter set, wrapped in { game_team_lineup_stints, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.application/json
Response Schema(25 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 127
player1_id
bigint—
e.g. 53
player2_id
bigint—
e.g. 197
player3_id
bigint—
e.g. 187
player4_id
bigint—
e.g. 178
player5_id
bigint—
e.g. 258
team_id
bigint—
e.g. 12
assist_pct
decimal——
e.g. 0.0000
defensive_rating
decimal——
e.g. 0.0000
defensive_rebound_pct
decimal——
e.g. 1.0000
end_clock
integer——
e.g. 0
end_event_seq
integer——
e.g. 7200
net_rating
decimal——
e.g. 0.0000
offensive_rating
decimal——
e.g. 0.0000
offensive_rebound_pct
decimal——
e.g. 0.0000
pace
decimal——
e.g. 0.0000
period
integer——
e.g. 2
player_stats
jsonb—Array of individual player box scores and metrics recorded during this lineup stint.
e.g. [{"ast":0,"astShare":0,"blk":0,"corner3Rate":0,"dreb":0,"fg…
↳playerId
player_stats.playerId
integernullable—NBA Player ID
↳pts
player_stats.pts
integernullable—Points scored during stint
↳ast
player_stats.ast
integernullable—Assists recorded
↳dreb
player_stats.dreb
integernullable—Defensive rebounds
↳oreb
player_stats.oreb
integernullable—Offensive rebounds
↳stl
player_stats.stl
integernullable—Steals
↳blk
player_stats.blk
integernullable—Blocks
↳tov
player_stats.tov
integernullable—Turnovers
↳pf
player_stats.pf
integernullable—Personal fouls
↳fga
player_stats.fga
integernullable—Field goal attempts
↳fgm
player_stats.fgm
integernullable—Field goals made
↳fta
player_stats.fta
integernullable—Free throw attempts
↳ftm
player_stats.ftm
integernullable—Free throws made
↳astShare
player_stats.astShare
decimalnullable—Share of team assists
↳rebShare
player_stats.rebShare
decimalnullable—Share of team rebounds
↳usagePct
player_stats.usagePct
decimalnullable—Usage percentage during stint
↳teammateTs
player_stats.teammateTs
decimalnullable—Teammate true shooting percentage
↳corner3Rate
player_stats.corner3Rate
decimalnullable—Corner 3 attempt rate
↳oppFoulRate
player_stats.oppFoulRate
decimalnullable—Opponent foul rate
↳teammateAstPct
player_stats.teammateAstPct
decimalnullable—Teammate assist percentage
possessions
integer——
e.g. 2
pts_allowed
integer——
e.g. 0
pts_scored
integer——
e.g. 0
start_clock
integer——
e.g. 720
start_event_seq
integer——
e.g. 100
turnover_pct
decimal——
e.g. 0.0000
GET/api/v1/nba/game_team_lineup_stints/{id}
Parameters
idpathbigintrequired
Primary key (id) of the game_team_lineup_stint row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/nba/game_team_lineup_stints/{pk_value}'
Responses
200Single game_team_lineup_stint row.application/jsonshow example ▸
404Row not found.
Response Schema(25 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 127
player1_id
bigint—
e.g. 53
player2_id
bigint—
e.g. 197
player3_id
bigint—
e.g. 187
player4_id
bigint—
e.g. 178
player5_id
bigint—
e.g. 258
team_id
bigint—
e.g. 12
assist_pct
decimal——
e.g. 0.0000
defensive_rating
decimal——
e.g. 0.0000
defensive_rebound_pct
decimal——
e.g. 1.0000
end_clock
integer——
e.g. 0
end_event_seq
integer——
e.g. 7200
net_rating
decimal——
e.g. 0.0000
offensive_rating
decimal——
e.g. 0.0000
offensive_rebound_pct
decimal——
e.g. 0.0000
pace
decimal——
e.g. 0.0000
period
integer——
e.g. 2
player_stats
jsonb—Array of individual player box scores and metrics recorded during this lineup stint.
e.g. [{"ast":0,"astShare":0,"blk":0,"corner3Rate":0,"dreb":0,"fg…
↳playerId
player_stats.playerId
integernullable—NBA Player ID
↳pts
player_stats.pts
integernullable—Points scored during stint
↳ast
player_stats.ast
integernullable—Assists recorded
↳dreb
player_stats.dreb
integernullable—Defensive rebounds
↳oreb
player_stats.oreb
integernullable—Offensive rebounds
↳stl
player_stats.stl
integernullable—Steals
↳blk
player_stats.blk
integernullable—Blocks
↳tov
player_stats.tov
integernullable—Turnovers
↳pf
player_stats.pf
integernullable—Personal fouls
↳fga
player_stats.fga
integernullable—Field goal attempts
↳fgm
player_stats.fgm
integernullable—Field goals made
↳fta
player_stats.fta
integernullable—Free throw attempts
↳ftm
player_stats.ftm
integernullable—Free throws made
↳astShare
player_stats.astShare
decimalnullable—Share of team assists
↳rebShare
player_stats.rebShare
decimalnullable—Share of team rebounds
↳usagePct
player_stats.usagePct
decimalnullable—Usage percentage during stint
↳teammateTs
player_stats.teammateTs
decimalnullable—Teammate true shooting percentage
↳corner3Rate
player_stats.corner3Rate
decimalnullable—Corner 3 attempt rate
↳oppFoulRate
player_stats.oppFoulRate
decimalnullable—Opponent foul rate
↳teammateAstPct
player_stats.teammateAstPct
decimalnullable—Teammate assist percentage
possessions
integer——
e.g. 2
pts_allowed
integer——
e.g. 0
pts_scored
integer——
e.g. 0
start_clock
integer——
e.g. 720
start_event_seq
integer——
e.g. 100
turnover_pct
decimal——
e.g. 0.0000