Discontinued
This API no longer responds. Our last check on 2026-07-31 found no working endpoint — the service appears to have shut down or moved. The documentation, code samples and score below are kept for reference only; do not build against this API. See working Sports & Fitness APIs →
Overview
NHL Records and Stats is a free, open API that provides historical NHL data including player records, season stats, team standings, and game details. No API key is required, so you can start exploring hockey data immediately. It is well-documented on GitLab with community-maintained endpoint references.
Beginner Tip
The NHL API is unofficial and undocumented by the NHL itself, but the community GitLab page lists all known endpoints. Start with /api/v1/teams to get a list of all teams before drilling into specific data.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"match_id": 4521,
"home_team": "Team A",
"away_team": "Team B",
"score": {
"home": 2,
"away": 1
},
"status": "Full Time",
"date": "2025-01-15",
"league": "Premier League"
} Field Reference
teams[].id Unique NHL team identifier teams[].name Full team name, e.g. Toronto Maple Leafs teams[].abbreviation Three-letter team abbreviation, e.g. TOR teams[].division.name Name of the division the team belongs to teams[].venue.name Name of the team home arena Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://statsapi.web.nhl.com/api/v1/teams";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →balldontlie
⭐ Beginner's Pickballdontlie is a completely free, no-auth-required API that provides NBA basketball statistics including player data, team information, game scores, and season averages.
City Bikes
⭐ Beginner's PickCity Bikes API gives you real-time data on bike-sharing stations across hundreds of cities worldwide.
Football (Soccer) Videos
⭐ Beginner's PickFootball (Soccer) Videos API by Scorebat provides embed codes for goals and match highlights from top leagues like the Premier League and Bundesliga.
Football Standings
⭐ Beginner's PickFootball Standings API provides current league standings for popular football competitions like the EPL, La Liga, and Serie A, sourced from ESPN.
Oddsmagnet
Oddsmagnet provides historical betting odds data from multiple UK bookmakers, letting you track how odds have changed over time for various sports events.