NHL team roster
A team's roster for a season: forwards, defensemen and goalies with id, name, number, position, shoots/catches, height, weight, birth date and place, and headshot.
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
| name | type | description |
|---|---|---|
teamrequired | string | Team abbreviation (EDM, TOR, NYR ...), team id or an nhl.com team link. Example: EDM |
season | string | Season as 2025-26, 20252026 or its first year 2025; the current season by default. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/nhl/v1/roster?team=EDM" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nhl/v1/roster",
params={"team": "EDM"},
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/roster");
url.searchParams.set("team", "EDM");
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(); 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)
{"team": "EDM","season": "20262027","count": 30,"forwards": [{"id": 8482703,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8482703.png","first_name": "Colton","last_name": "Dach","sweater_number": 34,"position_code": "C","shoots_catches": "L","height_in_inches": 75,"weight_in_pounds": 215,"height_in_centimeters": 191,"weight_in_kilograms": 98,"birth_date": "2003-01-04","birth_city": "Fort Saskatchewan","birth_country": "CAN","birth_state_province": "AB"},{"id": 8477450,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8477450.png","first_name": "Jason","last_name": "Dickinson","sweater_number": 16,"position_code": "C","shoots_catches": "L","height_in_inches": 74,"weight_in_pounds": 204,"height_in_centimeters": 188,"weight_in_kilograms": 93,"birth_date": "1995-07-04","birth_city": "Georgetown","birth_country": "CAN","birth_state_province": "ON"},"… 15 more"],"defensemen": [{"id": 8480803,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8480803.png","first_name": "Evan","last_name": "Bouchard","sweater_number": 2,"position_code": "D","shoots_catches": "R","height_in_inches": 74,"weight_in_pounds": 196,"height_in_centimeters": 188,"weight_in_kilograms": 89,"birth_date": "1999-10-20","birth_city": "Oakville","birth_country": "CAN","birth_state_province": "ON"},{"id": 8475218,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8475218.png","first_name": "Mattias","last_name": "Ekholm","sweater_number": 14,"position_code": "D","shoots_catches": "L","height_in_inches": 76,"weight_in_pounds": 211,"height_in_centimeters": 193,"weight_in_kilograms": 96,"birth_date": "1990-05-24","birth_city": "Borlange","birth_country": "SWE"},"… 6 more"],"goalies": [{"id": 8475883,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8475883.png","first_name": "Frederik","last_name": "Andersen","sweater_number": 30,"position_code": "G","shoots_catches": "L","height_in_inches": 76,"weight_in_pounds": 229,"height_in_centimeters": 193,"weight_in_kilograms": 104,"birth_date": "1989-10-02","birth_city": "Herning","birth_country": "DNK"},{"id": 8486540,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8486540.png","first_name": "Brett","last_name": "Epp","position_code": "G","shoots_catches": "L","height_in_inches": 73,"weight_in_pounds": 183,"height_in_centimeters": 185,"weight_in_kilograms": 83,"birth_date": "1997-10-29","birth_city": "EDMONTON","birth_country": "CAN","birth_state_province": "AB"},"… 3 more"],"cached": false,"credits_used": 1}