NHL API

All 32 NHL teams, every regular-season, playoff, and All-Star game. Live scores, shift charts, play-by-play with coordinates, advanced analytics (Corsi/Fenwick/xG), team lines, standings, schedule.

Endpoints

MethodPathDescription
GET/v1/nhl/scores/liveLive scores with period, clock, shots, and last event
GET/v1/nhl/games/{id}/shiftsShift-level data for every skater
GET/v1/nhl/games/{id}/play-by-playPlays with X/Y coordinates and strength state
GET/v1/nhl/advancedTeam-level Corsi / Fenwick / xG
GET/v1/nhl/teams/{id}/linesForward lines and defense pairs

Data tiers

Every endpoint is available on real-time, standard, and delayed tiers. See data freshness for details.

ID formats

  • Team IDs: league-standard 3-letter abbreviations (LAL, BOS, GSW)
  • Player IDs: kebab-case slugs (lebron-james, jayson-tatum)
  • Game IDs: league-native format (NBA 0022500412, NFL 2024_09_KC_BUF, MLB 746521)