NHL penalties API
penalties
nhl.penaltiesEvery penalty assessed in every NHL game — the player penalized, the infraction (hooking, tripping, slashing, etc.), the minutes assessed (2-minute minor, 4-minute double minor, 5-minute major, game misconduct, match penalty), and the resulting power play.
⚠️ This endpoint is documented but not yet live. Calls return
503 until data is wired in.GET/api/v1/nhl/penaltiesList penalties for NHL
Requires one of:
game_id — requests satisfying none of these return 400.Parameters
game_idquerybigintoptionalFilter to a single game.
team_idquerybigintoptionalFilter by penalized team.
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/penalties?game_id=1'Responses
200penalties rows matching the declared filter set, wrapped in { penalties, 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/json503Coming soon — handler returns 503 until data is wired in.
Response Schema(12 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
drawn_by_player_id | bigintnullable | — e.g. — (all-null in sample) | |
game_id | bigint | — e.g. — (all-null in sample) | |
penalty_id | integer | — | — e.g. — (all-null in sample) |
player_id | bigintnullable | — e.g. — (all-null in sample) | |
team_id | bigint | — e.g. — (all-null in sample) | |
description | stringnullable | — | — e.g. — (all-null in sample) |
is_bench_penalty | boolean | — | — e.g. — (all-null in sample) |
penalty_minutes | integer | — | — e.g. — (all-null in sample) |
penalty_type | string | — | — e.g. — (all-null in sample) |
period_number | integer | — | — e.g. — (all-null in sample) |
time_remaining | string | — | Time remaining in period (MM:SS) e.g. — (all-null in sample) |
GET/api/v1/nhl/penalties/{id}Get a single penalty by id
Parameters
idpathbigintrequiredPrimary key (id) of the penalty 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/penalties/{pk_value}'Responses
200Single penalty row.application/jsonshow example ▸
404Row not found.
503Coming soon — handler returns 503 until data is wired in.
Response Schema(12 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
drawn_by_player_id | bigintnullable | — e.g. — (all-null in sample) | |
game_id | bigint | — e.g. — (all-null in sample) | |
penalty_id | integer | — | — e.g. — (all-null in sample) |
player_id | bigintnullable | — e.g. — (all-null in sample) | |
team_id | bigint | — e.g. — (all-null in sample) | |
description | stringnullable | — | — e.g. — (all-null in sample) |
is_bench_penalty | boolean | — | — e.g. — (all-null in sample) |
penalty_minutes | integer | — | — e.g. — (all-null in sample) |
penalty_type | string | — | — e.g. — (all-null in sample) |
period_number | integer | — | — e.g. — (all-null in sample) |
time_remaining | string | — | Time remaining in period (MM:SS) e.g. — (all-null in sample) |