STAT-API

NHL game_team_stats API

game_team_statsnhl.game_team_stats
Each NHL team's stat line for each game — goals scored and allowed, shots on goal, power-play and penalty-kill performance, faceoff percentage, hits, blocks, and time-on-ice splits.
GET/api/v1/nhl/game_team_stats
Requires one of: game_id — requests satisfying none of these return 400.
Parameters
game_idquerybigintoptional
Filter to a single game.
team_idquerybigintoptional
Filter by team.
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_team_stats?game_id=1'
Responses
200game_team_stats rows matching the declared filter set, wrapped in { game_team_stats, 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(30 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 1
team_id
bigint—
e.g. 7
assists
integer——
e.g. 4
blocked_shots
integer——
e.g. 12
faceoff_percentage
decimal——
e.g. 0.0000
faceoffs_lost
integer——
e.g. 0
faceoffs_won
integer——
e.g. 0
giveaways
integer——
e.g. 9
goals
integer——
e.g. 3
goals_against
integer——
e.g. 3
hits
integer——
e.g. 19
losses
integer——
e.g. 0
overtime_losses
integer——
e.g. 0
penalties
integer——
e.g. 0
penalty_kill_goals_against
integer——
e.g. 0
penalty_kill_percentage
decimal——
e.g. 0.0000
penalty_minutes
integer——
e.g. 6
power_play_attempts
integer——
e.g. 0
power_play_goals
integer——
e.g. 0
power_play_percentage
decimal——
e.g. 0.0000
save_percentage
decimal——
e.g. 0.0000
saves
integer——
e.g. 28
shooting_percentage
decimal——
e.g. 0.0000
short_handed_goals
integer——
e.g. 0
shots
integer——
e.g. 28
shots_on_goal
integer——
e.g. 28
takeaways
integer——
e.g. 6
times_shorthanded
integer——
e.g. 0
wins
integer——
e.g. 0
GET/api/v1/nhl/game_team_stats/{id}
Parameters
idpathbigintrequired
Primary key (id) of the game_team_stat 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_team_stats/{pk_value}'
Responses
200Single game_team_stat row.application/jsonshow example ▸
404Row not found.
Response Schema(30 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint—
e.g. 1
team_id
bigint—
e.g. 7
assists
integer——
e.g. 4
blocked_shots
integer——
e.g. 12
faceoff_percentage
decimal——
e.g. 0.0000
faceoffs_lost
integer——
e.g. 0
faceoffs_won
integer——
e.g. 0
giveaways
integer——
e.g. 9
goals
integer——
e.g. 3
goals_against
integer——
e.g. 3
hits
integer——
e.g. 19
losses
integer——
e.g. 0
overtime_losses
integer——
e.g. 0
penalties
integer——
e.g. 0
penalty_kill_goals_against
integer——
e.g. 0
penalty_kill_percentage
decimal——
e.g. 0.0000
penalty_minutes
integer——
e.g. 6
power_play_attempts
integer——
e.g. 0
power_play_goals
integer——
e.g. 0
power_play_percentage
decimal——
e.g. 0.0000
save_percentage
decimal——
e.g. 0.0000
saves
integer——
e.g. 28
shooting_percentage
decimal——
e.g. 0.0000
short_handed_goals
integer——
e.g. 0
shots
integer——
e.g. 28
shots_on_goal
integer——
e.g. 28
takeaways
integer——
e.g. 6
times_shorthanded
integer——
e.g. 0
wins
integer——
e.g. 0