NHL team prospects
A team's prospects (forwards, defensemen, goalies) with id, name, position, shoots/catches, height, weight, birth date and place.
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 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/nhl/v1/team/prospects?team=EDM" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nhl/v1/team/prospects",
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/team/prospects");
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","count": 11,"forwards": [{"id": 8482202,"headshot": "https://assets.nhle.com/mugs/nhl/latest/8482202.png","first_name": "Maksim","last_name": "Berezkin","position_code": "L","shoots_catches": "R","height_in_inches": 74,"weight_in_pounds": 201,"height_in_centimeters": 188,"weight_in_kilograms": 91,"birth_date": "2001-10-12","birth_city": "Chita","birth_country": "RUS"},{"id": 8484491,"headshot": "https://assets.nhle.com/mugs/nhl/latest/8484491.png","first_name": "Matt","last_name": "Copponi","sweater_number": 45,"position_code": "C","shoots_catches": "R","height_in_inches": 71,"weight_in_pounds": 174,"height_in_centimeters": 180,"weight_in_kilograms": 79,"birth_date": "2003-06-04","birth_city": "Mansfield","birth_country": "USA","birth_state_province": "Massachusetts"},"… 5 more"],"defensemen": [{"id": 8484139,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8484139.png","first_name": "Beau","last_name": "Akey","sweater_number": 82,"position_code": "D","shoots_catches": "R","height_in_inches": 72,"weight_in_pounds": 193,"height_in_centimeters": 183,"weight_in_kilograms": 88,"birth_date": "2005-02-11","birth_city": "Waterloo","birth_country": "CAN","birth_state_province": "Ontario"},{"id": 8483734,"headshot": "https://assets.nhle.com/mugs/nhl/latest/8483734.png","first_name": "Nikita","last_name": "Yevseyev","position_code": "D","shoots_catches": "L","height_in_inches": 73,"weight_in_pounds": 187,"height_in_centimeters": 185,"weight_in_kilograms": 85,"birth_date": "2004-05-10","birth_city": "Almetyevsk","birth_country": "RUS"}],"goalies": [{"id": 8484455,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8484455.png","first_name": "Nathaniel","last_name": "Day","sweater_number": 40,"position_code": "G","shoots_catches": "L","height_in_inches": 75,"weight_in_pounds": 217,"height_in_centimeters": 191,"weight_in_kilograms": 98,"birth_date": "2005-02-04","birth_city": "Burlington","birth_country": "CAN","birth_state_province": "Ontario"},{"id": 8483769,"headshot": "https://assets.nhle.com/mugs/nhl/20262027/EDM/8483769.png","first_name": "Samuel","last_name": "Jonsson","sweater_number": 33,"position_code": "G","shoots_catches": "L","height_in_inches": 77,"weight_in_pounds": 219,"height_in_centimeters": 196,"weight_in_kilograms": 99,"birth_date": "2003-12-15","birth_city": "Gävle","birth_country": "SWE"}],"cached": false,"credits_used": 1}