STAT-API

NHL game_lines API

game_linesnhl.game_lines
NHL game betting lines — moneylines, puck lines (the hockey point spread) and over/under totals, the consensus of the main sportsbooks, captured over time from the opening line to the close before puck drop.
GET/api/v1/nhl/game_lines
Requires one of: game_id or season_id — requests satisfying none of these return 400.
Parameters
game_idquerybigintoptional
Filter to a single game.
season_idquerybigintoptional
Filter by season.
is_openingquerybooleanoptional
Filter to opening lines only.
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/nhl/game_lines?game_id=1'
Responses
200game_lines rows matching the declared filter set, wrapped in { game_lines, limit, next_from_id, has_more }. has_more is true when another row follows this page. To walk every row, start with ?from_id=0 and pass each next_from_id back as from_id until it is null; the filters stay. A first page without from_id comes in the default order and gives next_from_id null.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(19 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 20339
operator_id
bigintSportsbook id: 6 Consensus.
e.g. 6
season_id
bigintDenormalized for efficient season-level queries
e.g. 2026
book_count
integernullable—Number of sportsbooks in the consensus
e.g. 6
captured_at
timestamptz—When this line was captured (always before puck drop)
e.g. 2021-10-15T02:25:00.000Z
implied_away_score
decimalnullable——
e.g. — (all-null in sample)
implied_away_win_pct
decimalnullable——
e.g. 0.5
implied_home_score
decimalnullable——
e.g. — (all-null in sample)
implied_home_win_pct
decimalnullable—From the moneyline, 0-1
e.g. 0.5
is_opening
boolean—True for the first line captured for the game
Values:falsetrue
moneyline_away
integernullable—American odds for an away win
e.g. -110
moneyline_home
integernullable—American odds for a home win
e.g. -110
over_odds
integernullable——
e.g. -120
spread
decimalnullable—Home team puck line (e.g., -1.5 means home favored by 1.5 goals)
e.g. -1.5
spread_away_odds
integernullable—American odds for the away puck line
e.g. 210
spread_home_odds
integernullable—American odds for the home puck line
e.g. 210
total
decimalnullable—Combined goals total line (e.g., 6.5)
e.g. 6.5
under_odds
integernullable——
e.g. 100
GET/api/v1/nhl/game_lines/{id}
Parameters
idpathbigintrequired
Primary key (id) of the game_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/nhl/game_lines/{pk_value}'
Responses
200Single game_line row.application/jsonshow example ▸
404Row not found.
Response Schema(19 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 20339
operator_id
bigintSportsbook id: 6 Consensus.
e.g. 6
season_id
bigintDenormalized for efficient season-level queries
e.g. 2026
book_count
integernullable—Number of sportsbooks in the consensus
e.g. 6
captured_at
timestamptz—When this line was captured (always before puck drop)
e.g. 2021-10-15T02:25:00.000Z
implied_away_score
decimalnullable——
e.g. — (all-null in sample)
implied_away_win_pct
decimalnullable——
e.g. 0.5
implied_home_score
decimalnullable——
e.g. — (all-null in sample)
implied_home_win_pct
decimalnullable—From the moneyline, 0-1
e.g. 0.5
is_opening
boolean—True for the first line captured for the game
Values:falsetrue
moneyline_away
integernullable—American odds for an away win
e.g. -110
moneyline_home
integernullable—American odds for a home win
e.g. -110
over_odds
integernullable——
e.g. -120
spread
decimalnullable—Home team puck line (e.g., -1.5 means home favored by 1.5 goals)
e.g. -1.5
spread_away_odds
integernullable—American odds for the away puck line
e.g. 210
spread_home_odds
integernullable—American odds for the home puck line
e.g. 210
total
decimalnullable—Combined goals total line (e.g., 6.5)
e.g. 6.5
under_odds
integernullable——
e.g. 100