STAT-API

NHL line_combinations API

line_combinationsnhl.line_combinations
NHL forward and defensive pair groupings — which players skate together as a line (first, second, third, fourth) or defensive pairing for each team.
GET/api/v1/nhl/line_combinations
Requires one of: team_id + season_id — requests satisfying none of these return 400.
Parameters
team_idquerybigintoptional
Filter by team.
season_idquerybigintoptional
Filter to a season. Defaults to the current season.
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/line_combinations?team_id=1&season_id=2026'
Responses
200line_combinations rows matching the declared filter set, wrapped in { line_combinations, 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(11 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player1_id
bigint——
e.g. 1140
player2_id
bigintnullable——
e.g. 571
player3_id
bigintnullable——
e.g. 460
player4_id
bigintnullable——
e.g. 408
player5_id
bigintnullable——
e.g. 233
season_id
bigint—
e.g. 2026
team_id
bigint—
e.g. 2
day
date——
e.g. 2026-11-14
line_number
integer——
e.g. 1
line_type
string——
Values:defense_pairforward_linepower_play
GET/api/v1/nhl/line_combinations/{id}
Parameters
idpathbigintrequired
Primary key (id) of the line_combination 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/line_combinations/{pk_value}'
Responses
200Single line_combination row.application/jsonshow example ▸
404Row not found.
Response Schema(11 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player1_id
bigint——
e.g. 1140
player2_id
bigintnullable——
e.g. 571
player3_id
bigintnullable——
e.g. 460
player4_id
bigintnullable——
e.g. 408
player5_id
bigintnullable——
e.g. 233
season_id
bigint—
e.g. 2026
team_id
bigint—
e.g. 2
day
date——
e.g. 2026-11-14
line_number
integer——
e.g. 1
line_type
string——
Values:defense_pairforward_linepower_play