STAT-API

NBA game_period_lines API

game_period_linesnba.game_period_lines
Period-specific NBA betting lines — first-half, second-half, and individual-quarter spreads, moneylines, and totals offered alongside the full-game markets.
GET/api/v1/nba/game_period_lines
Requires one of: game_id — requests satisfying none of these return 400.
Parameters
game_idquerybigintoptional
Filter to a single game.
season_idquerybigintoptional
Filter by season.
operator_idquerybigintoptional
Filter by sportsbook.
period_codequerystringoptional
Filter by period (1H, 2H, Q1, Q2, Q3, Q4).
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_period_lines?game_id=1'
Responses
200game_period_lines rows matching the declared filter set, wrapped in { game_period_lines, 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(17 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 769
operator_id
bigintData source (consensus, DraftKings, FanDuel, etc.)
e.g. 6
season_id
bigintDenormalized for efficient season-level queries
e.g. 2025
captured_at
timestamptz—When this snapshot was captured
e.g. 2024-01-05T05:00:00.000Z
implied_away_win_pct
decimalnullable——
e.g. 0.5121951219512195
implied_home_win_pct
decimalnullable—From moneyline, 0-1
e.g. 0.5121951219512195
is_opening
boolean—True if this is the first captured line for this period
e.g. false
moneyline_away
integernullable—American odds for away team win in this period
e.g. -105
moneyline_home
integernullable—American odds for home team win in this period
e.g. -105
over_odds
integernullable—American odds for over
e.g. -110
period_code
string—Market period code (1H, 2H, Q1, Q2, Q3, Q4)
Values:1HQ1Q3Q4Q22H
spread
decimalnullable—Home team spread for this period
e.g. -0.5
spread_away_odds
integernullable—American odds for away spread
e.g. -110
spread_home_odds
integernullable—American odds for home spread (e.g., -110)
e.g. -110
total
decimalnullable—Combined score total line for this period
e.g. 57.5
under_odds
integernullable—American odds for under
e.g. -110
GET/api/v1/nba/game_period_lines/{id}
Parameters
idpathbigintrequired
Primary key (id) of the game_period_line 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_period_lines/{pk_value}'
Responses
200Single game_period_line row.application/jsonshow example ▸
404Row not found.
Response Schema(17 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 769
operator_id
bigintData source (consensus, DraftKings, FanDuel, etc.)
e.g. 6
season_id
bigintDenormalized for efficient season-level queries
e.g. 2025
captured_at
timestamptz—When this snapshot was captured
e.g. 2024-01-05T05:00:00.000Z
implied_away_win_pct
decimalnullable——
e.g. 0.5121951219512195
implied_home_win_pct
decimalnullable—From moneyline, 0-1
e.g. 0.5121951219512195
is_opening
boolean—True if this is the first captured line for this period
e.g. false
moneyline_away
integernullable—American odds for away team win in this period
e.g. -105
moneyline_home
integernullable—American odds for home team win in this period
e.g. -105
over_odds
integernullable—American odds for over
e.g. -110
period_code
string—Market period code (1H, 2H, Q1, Q2, Q3, Q4)
Values:1HQ1Q3Q4Q22H
spread
decimalnullable—Home team spread for this period
e.g. -0.5
spread_away_odds
integernullable—American odds for away spread
e.g. -110
spread_home_odds
integernullable—American odds for home spread (e.g., -110)
e.g. -110
total
decimalnullable—Combined score total line for this period
e.g. 57.5
under_odds
integernullable—American odds for under
e.g. -110