NHL game play-by-play

GET https://api.api.sh/nhl/v1/play-by-play
1 credit / call sports try it in the playground →

Every event of a game (faceoffs, shots, hits, goals, penalties, stoppages ...) with period, time, rink coordinates, zone, situation code and the players involved, plus the game info and both rosters. Filter by event type.

Every response includes credits_used: the credits this call cost.

Part of the NHL API: 20 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
idrequired string Game id like 2025020100 from /nhl/v1/scores or /nhl/v1/schedule, or an nhl.com gamecenter link. Example: 2025020100
type string Comma-separated event types, e.g. goal, shot-on-goal, missed-shot, blocked-shot, hit, penalty, faceoff, giveaway, takeaway.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/nhl/v1/play-by-play?id=2025020100" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"id": 2025020100,"season": 20252026,"game_type": 2,"limited_scoring": false,"game_date": "2025-10-21","venue": "UBS Arena","venue_location": "Elmont","start_time_utc": "2025-10-21T23:00:00Z","eastern_utc_offset": "-04:00","venue_utc_offset": "-04:00","tv_broadcasts": [{"id": 314,"market": "A","country_code": "US","network": "NBCSCA","sequence_number": 393},{"id": 409,"market": "H","country_code": "US","network": "MSGSN","sequence_number": 411}],"game_state": "OFF","game_schedule_state": "OK","period_descriptor": {"number": 3,"period_type": "REG","max_regulation_periods": 3},"away_team": {"id": 28,"common_name": "Sharks","abbrev": "SJS","score": 3,"sog": 36,"logo": "https://assets.nhle.com/logos/nhl/svg/SJS_light.svg","dark_logo": "https://assets.nhle.com/logos/nhl/svg/SJS_dark.svg","place_name": "San Jose","place_name_with_preposition": "San Jose"},"home_team": {"id": 2,"common_name": "Islanders","abbrev": "NYI","score": 4,"sog": 27,"logo": "https://assets.nhle.com/logos/nhl/svg/NYI_light.svg","dark_logo": "https://assets.nhle.com/logos/nhl/svg/NYI_dark.svg","place_name": "New York","place_name_with_preposition": "New York"},"shootout_in_use": true,"ot_in_use": true,"clock": {"time_remaining": "00:00","seconds_remaining": 0,"running": false,"in_intermission": false},"display_period": 1,"max_periods": 5,"game_outcome": {"last_period_type": "REG"},"roster_spots": [{"team_id": 28,"player_id": 8471817,"first_name": "Ryan","last_name": "Reaves","sweater_number": 75,"position_code": "R","headshot": "https://assets.nhle.com/mugs/nhl/20252026/SJS/8471817.png"},{"team_id": 2,"player_id": 8475151,"first_name": "Kyle","last_name": "Palmieri","sweater_number": 21,"position_code": "C","headshot": "https://assets.nhle.com/mugs/nhl/20252026/NYI/8475151.png"},"… 38 more"],"reg_periods": 3,"summary": {},"url": "https://www.nhl.com/gamecenter/2025020100/playbyplay","applied_filters": {"type": null},"count": 350,"plays": [{"event_id": 52,"period_descriptor": {"number": 1,"period_type": "REG","max_regulation_periods": 3},"time_in_period": "00:00","time_remaining": "20:00","situation_code": "1551","home_team_defending_side": "left","type_code": 520,"type_desc_key": "period-start","sort_order": 8},{"event_id": 51,"period_descriptor": {"number": 1,"period_type": "REG","max_regulation_periods": 3},"time_in_period": "00:00","time_remaining": "20:00","situation_code": "1551","home_team_defending_side": "left","type_code": 502,"type_desc_key": "faceoff","sort_order": 11,"details": {"event_owner_team_id": 2,"losing_player_id": 8484801,"winning_player_id": 8477500,"x_coord": 0,"y_coord": 0,"zone_code": "N"}},"… 348 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.