NHL game_period_lines API
game_period_lines
nhl.game_period_linesNHL period betting lines — moneyline, puck line and total for the 1st, 2nd and 3rd period, the consensus of the main sportsbooks, captured before puck drop.
GET/api/v1/nhl/game_period_linesList game_period_lines for NHL
Requires one of:
game_id or season_id — requests satisfying none of these return 400.Parameters
game_idquerybigintoptionalFilter to a single game.
season_idquerybigintoptionalFilter by season.
period_codequerystringoptionalFilter by period: p1, p2 or p3. Values: p1, p2, p3.
limitqueryintegeroptionaldefault 50Page size. Defaults to 50; max 5000.
from_idquerybigintoptionalReturn 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_period_lines?game_id=1'Responses
200game_period_lines rows matching the declared filter set, wrapped in { game_period_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/jsonResponse Schema(19 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 7680 | |
operator_id | bigint | Sportsbook id: 6 Consensus. e.g. 6 | |
season_id | bigint | — e.g. 2023 | |
book_count | integernullable | — | — e.g. 3 |
captured_at | timestamptz | — | — e.g. 2024-01-11T23:55:39.000Z |
draw_odds | integernullable | — | American odds for a tied period (three-way markets only) e.g. — (all-null in sample) |
implied_away_win_pct | decimalnullable | — | — e.g. 0.5 |
implied_home_win_pct | decimalnullable | — | — e.g. 0.5 |
is_opening | boolean | — | — e.g. true |
moneyline_away | integernullable | — | — e.g. 100 |
moneyline_home | integernullable | — | — e.g. -145 |
over_odds | integernullable | — | — e.g. -135 |
period_code | string | — | p1, p2 or p3 Values:p1p2p3 |
spread | decimalnullable | — | — e.g. -0.5 |
spread_away_odds | integernullable | — | — e.g. -190 |
spread_home_odds | integernullable | — | — e.g. 120 |
total | decimalnullable | — | — e.g. 1.5 |
under_odds | integernullable | — | — e.g. 105 |
GET/api/v1/nhl/game_period_lines/{id}Get a single game_period_line by id
Parameters
idpathbigintrequiredPrimary 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/nhl/game_period_lines/{pk_value}'Responses
200Single game_period_line row.application/jsonshow example ▸
404Row not found.
Response Schema(19 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
game_id | bigint | — e.g. 7680 | |
operator_id | bigint | Sportsbook id: 6 Consensus. e.g. 6 | |
season_id | bigint | — e.g. 2023 | |
book_count | integernullable | — | — e.g. 3 |
captured_at | timestamptz | — | — e.g. 2024-01-11T23:55:39.000Z |
draw_odds | integernullable | — | American odds for a tied period (three-way markets only) e.g. — (all-null in sample) |
implied_away_win_pct | decimalnullable | — | — e.g. 0.5 |
implied_home_win_pct | decimalnullable | — | — e.g. 0.5 |
is_opening | boolean | — | — e.g. true |
moneyline_away | integernullable | — | — e.g. 100 |
moneyline_home | integernullable | — | — e.g. -145 |
over_odds | integernullable | — | — e.g. -135 |
period_code | string | — | p1, p2 or p3 Values:p1p2p3 |
spread | decimalnullable | — | — e.g. -0.5 |
spread_away_odds | integernullable | — | — e.g. -190 |
spread_home_odds | integernullable | — | — e.g. 120 |
total | decimalnullable | — | — e.g. 1.5 |
under_odds | integernullable | — | — e.g. 105 |