STAT-API

MLB game_period_lines API

game_period_linesmlb.game_period_lines
Period-specific MLB betting lines — first-five-innings markets (F5), individual-inning bets, and other partial-game spreads, moneylines, and totals. Each row is a time-series snapshot - only captured when values change.
⚠️ This endpoint is documented but not yet live. Calls return 503 until data is wired in.
GET/api/v1/mlb/game_period_lines
Requires one of: game_id — requests satisfying none of these return 400.
Parameters
game_idquerybigintoptional
Filter to a single game.
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/mlb/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
503Coming soon — handler returns 503 until data is wired in.
Response Schema(17 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
operator_id
bigintData source (consensus, DraftKings, FanDuel, etc.)
season_id
bigintDenormalized for efficient season-level queries
captured_at
timestamptz——
implied_away_win_pct
decimalnullable——
implied_home_win_pct
decimalnullable——
is_opening
boolean——
moneyline_away
integernullable——
moneyline_home
integernullable——
over_odds
integernullable——
period_code
string—Market period code (F5 = first 5 innings, F3, F7)
spread
decimalnullable—Home team run line for this period
spread_away_odds
integernullable——
spread_home_odds
integernullable——
total
decimalnullable—Combined run total line for this period
under_odds
integernullable——
GET/api/v1/mlb/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/mlb/game_period_lines/{pk_value}'
Responses
200Single game_period_line row.application/jsonshow example ▸
404Row not found.
503Coming soon — handler returns 503 until data is wired in.
Response Schema(17 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
operator_id
bigintData source (consensus, DraftKings, FanDuel, etc.)
season_id
bigintDenormalized for efficient season-level queries
captured_at
timestamptz——
implied_away_win_pct
decimalnullable——
implied_home_win_pct
decimalnullable——
is_opening
boolean——
moneyline_away
integernullable——
moneyline_home
integernullable——
over_odds
integernullable——
period_code
string—Market period code (F5 = first 5 innings, F3, F7)
spread
decimalnullable—Home team run line for this period
spread_away_odds
integernullable——
spread_home_odds
integernullable——
total
decimalnullable—Combined run total line for this period
under_odds
integernullable——