API Directory › ⚽ Sports › NHL API
No authHTTPS

NHL API

Free, no-key access to NHL stats, schedules and standings.

Category
Auth
No auth needed
HTTPS
Yes
CORS
Unknown
Open NHL API docs ↗

What it does

The NHL’s current public API (api-web.nhle.com) provides schedules and scores, live game centre data (play-by-play, boxscore, shift charts), standings, team and player landing pages, season schedules and franchise data. A companion stats host serves aggregate leaderboards.

Base URL

https://api-web.nhle.com/v1

Authentication

None. Key endpoints: /schedule/{date}, /score/{date}, /standings/now, /club-schedule-season/{team}/{season}, /player/{playerId}/landing, /gamecenter/{gameId}/boxscore. Aggregate stats live at https://api.nhle.com/stats/rest/en/.

Code examples

curl
curl -s "https://api-web.nhle.com/v1/score/2026-01-15"
curl -s "https://api-web.nhle.com/v1/standings/now"
Python
import requests

s = requests.get("https://api-web.nhle.com/v1/score/2025-11-01", timeout=10).json()
for g in s["games"]:
    print(g["awayTeam"]["abbrev"], g["awayTeam"].get("score"),
          "@", g["homeTeam"]["abbrev"], g["homeTeam"].get("score"))

Rate limits & quotas

No key and no published rate limit, but it is an undocumented internal API — endpoints and shapes have changed before (the old statsapi.web.nhl.com was retired). Cache, send a User-Agent, poll live games no faster than every ~15 seconds, and code defensively.

Key response fields

(score/schedule) games[].id / gameState / startTimeUTCGame id and state (FUT, LIVE, OFF)
games[].homeTeam.abbrev / score / sogTeam, score, shots on goal
(standings) standings[].teamName.default / points / gamesPlayed / goalDifferentialStandings rows
(player landing) featuredStats / careerTotalsPlayer stat blocks
(boxscore) playerByGameStatsPer-skater and per-goalie lines

Common errors

404Unknown game id / player id, or a date with no games.
(schema drift)Fields have moved between revisions of this unofficial API — wrap access and monitor.
(two hosts)Game/schedule data is on api-web.nhle.com; historical stat tables are on api.nhle.com/stats/rest — different shapes.

When to use it (and alternatives)

The go-to free source for NHL scores, standings and game data — scoreboards, fantasy tools, team sites. Community wrappers and endpoint lists (search ‘NHL API reference’) fill the documentation gap. MLB’s equivalent is the MLB Stats API.

FAQ

What happened to the old NHL API?

statsapi.web.nhl.com was decommissioned around the 2023–24 season. The replacement is api-web.nhle.com/v1 (game/club data) plus api.nhle.com/stats/rest (aggregate stats), both unofficial.

How do I get a team's full season schedule?

/club-schedule-season/{TEAM_ABBREV}/{SEASON}, e.g. /club-schedule-season/TOR/20252026 (season is the two years concatenated).

Is it safe to build on an undocumented API?

It is widely used, but treat it as unstable: isolate the calls behind your own layer, cache, and have alerting so you notice quickly if a shape changes.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Sports APIs

← Back

More Sports APIs · All 196 APIs