+NHL API
NHL scores, schedules, box scores, play-by-play, shift charts, player and team stats as clean JSON.
The API.SH NHL API returns the public data behind NHL.com as structured JSON: scores and schedules, a game's box score with scoring and penalty summary, play-by-play with rink coordinates, shift charts, standings, rosters and prospects, player profiles with every season's totals, game logs, player search, stat leaders, every skater, goalie and team report of NHL.com's stats section with its filters, the draft, Central Scouting rankings and the playoff bracket. Names come back in English and keys in snake_case, so the same code reads every route.
- 20 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/nhl/v1/ players/ search
{"q": "mcdavid","applied_filters": {"active": null},"count": 2,"players": [{"player_id": 8457287,"name": "Brian McDavid","position_code": "D","team_id": null,"team_abbrev": null,"last_team_id": null,"last_team_abbrev": null,"last_season_id": null,"sweater_number": null,"active": false,"height": "6'1\"","height_in_inches": 73,"height_in_centimeters": 185,"weight_in_pounds": 190,"weight_in_kilograms": 86,"birth_city": "Sudbury","birth_state_province": "ON","birth_country": "CAN","url": "https://www.nhl.com/player/8457287"},{"player_id": 8478402,"name": "Connor McDavid","position_code": "C","team_id": "22","team_abbrev": "EDM","last_team_id": "22","last_team_abbrev": "EDM","last_season_id": "20262027","sweater_number": 97,"active": true,"height": "6'2\"","height_in_inches": 74,"height_in_centimeters": 188,"weight_in_pounds": 190,"weight_in_kilograms": 86,"birth_city": "Richmond Hill","birth_state_province": "ON","birth_country": "CAN","url": "https://www.nhl.com/player/8478402"}],"cached": false,"credits_used": 1} What you can build with the NHL API
Scores and schedule widgets
Show a day's scores with every goal, a week of games, or one team's full season schedule with start times and broadcasts.
Hockey analytics and expected goals models
Pull every shot, hit and faceoff with x and y coordinates and situation codes, plus each player's shifts, to build shot maps and on-ice metrics.
Fantasy hockey and betting research
Rank skaters and goalies with the stats reports, filter by team, position, date range or minimum games, and check recent form in game logs.
Team and player pages
Build profiles with a player's bio, draft details, career totals and awards, and team pages with roster, player stats and prospects.
Draft and playoff coverage
Track Central Scouting rankings before the draft, every pick after it, and the Stanley Cup playoff bracket in spring.
NHL data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
NHL API endpoints and prices
Every NHL endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| NHL player search /nhl/ | $1 · $2 PAYG 1 credit |
| NHL game shift chart /nhl/ | $1 · $2 PAYG 1 credit |
| NHL player profile and career stats /nhl/ | $1 · $2 PAYG 1 credit |
| NHL draft picks /nhl/ | $1 · $2 PAYG 1 credit |
| NHL Central Scouting draft rankings /nhl/ | $1 · $2 PAYG 1 credit |
| NHL game box score and summary /nhl/ | $1 · $2 PAYG 1 credit |
| NHL stat leaders /nhl/ | $1 · $2 PAYG 1 credit |
| NHL game play-by-play /nhl/ | $1 · $2 PAYG 1 credit |
| NHL player game log /nhl/ | $1 · $2 PAYG 1 credit |
| NHL playoff bracket /nhl/ | $1 · $2 PAYG 1 credit |
| NHL team roster /nhl/ | $1 · $2 PAYG 1 credit |
| NHL schedule for a week, or a team's season or month /nhl/ | $1 · $2 PAYG 1 credit |
| NHL scores for a day /nhl/ | $1 · $2 PAYG 1 credit |
| NHL standings /nhl/ | $1 · $2 PAYG 1 credit |
| NHL goalie stats reports /nhl/ | $1 · $2 PAYG 1 credit |
| NHL skater stats reports /nhl/ | $1 · $2 PAYG 1 credit |
| NHL team stats reports /nhl/ | $1 · $2 PAYG 1 credit |
| NHL team prospects /nhl/ | $1 · $2 PAYG 1 credit |
| NHL team player stats /nhl/ | $1 · $2 PAYG 1 credit |
| NHL teams /nhl/ | $1 · $2 PAYG 1 credit |
Call the NHL API
NHL player search: GET https://api.api.sh/nhl/
curl "https://api.api.sh/nhl/v1/players/search?q=mcdavid" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nhl/v1/players/search",
params={"q": "mcdavid"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/nhl/v1/players/search");
url.searchParams.set("q", "mcdavid");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/nhl/v1/players/search", "q", "mcdavid")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "NHL" and "NHL player search".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 921 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for NHL data
- Public data only: no NHL login, cookies or account needed
- One key and one response shape for NHL and 920 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- No rate limits: run as many calls in parallel as you need
- Live status for every endpoint
API.SH vs the official NHL API
The NHL has no documented developer API. NHL.com runs on public but undocumented JSON services that community references describe and that have changed before: the older stats API was retired in 2023 and many tools broke. API.SH wraps the current public NHL.com data in documented endpoints with stable names, and licensed official feeds remain available from the league's data partners.
Rather than tracking undocumented endpoint changes in your own scripts or buying a licensed feed, API.SH gives you documented NHL routes with one key that also covers NBA, MLB, NFL, soccer and cricket.
NHL API questions
What NHL data can I get?+
Scores (/nhl/v1/scores), schedules (/nhl/v1/schedule), box scores with game summary (/nhl/v1/game), play-by-play (/nhl/v1/play-by-play), shift charts (/nhl/v1/shifts), standings, teams, rosters, team player stats and prospects, player profiles (/nhl/v1/player), game logs, player search, stat leaders (/nhl/v1/leaders), skater, goalie and team stats reports (/nhl/v1/stats/skaters, /nhl/v1/stats/goalies, /nhl/v1/stats/teams), draft picks, Central Scouting rankings and the playoff bracket.
How much does the NHL API cost?+
Every NHL endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /nhl/v1/draft at 1 credit each.
Does the NHL have a public API?+
NHL.com uses public JSON services, but the league does not document them for developers, and they have changed without notice before. API.SH documents every route and keeps the same response shape.
Is there a free NHL API?+
Each account gets 1,000 free credits every month, enough to try every route. After that you pay per call, and calls that fail on our side are free.
Do I need an NHL.com account or login?+
No. Every route reads public NHL.com data. No login, cookies or NHL account are used.
Is there an NHL score API with goal details?+
Yes. /nhl/v1/scores returns every game of a day with the score, shots, game state and each goal's scorer, assists, strength, period and time, and /nhl/v1/game adds the box score, penalties and three stars.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /nhl/v1/scores for today's games or /nhl/v1/player?id=8478402 for a player. Every parameter is in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.
Does the NHL API have a rate limit?+
No. API.SH puts no rate limit on your key: send as many NHL calls in parallel as you need and pay only for the calls that run. If NHL itself slows down, the call returns 503 with a retry-after header and is not charged.