NHL player game log
A player's games in a season: date, opponent, home or road, goals, assists, points, plus-minus, power-play and short-handed points, shots, shifts, time on ice, penalty minutes (goalies: decision, shots against, saves, save percentage), plus the seasons available.
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 |
|---|---|---|
idrequired | string | Player id like 8478402 from /nhl/v1/players/search, or an nhl.com player link. Example: 8478402 |
season | string | Season as 2025-26, 20252026 or its first year 2025; the current season by default. |
game_type | regular | playoffs | preseason | regular (default), playoffs or preseason. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/nhl/v1/player/game-log?id=8478402&season=2025-26" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nhl/v1/player/game-log",
params={"id": "8478402", "season": "2025-26"},
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/player/game-log");
url.searchParams.set("id", "8478402");
url.searchParams.set("season", "2025-26");
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)
{"player_id": 8478402,"season": "20252026","game_type": 2,"seasons_available": [{"season": 20262027,"game_types": [2]},{"season": 20252026,"game_types": [2,3]},"… 10 more"],"count": 82,"games": [{"game_id": 2025021311,"team_abbrev": "EDM","home_road_flag": "H","game_date": "2026-04-16","goals": 0,"assists": 4,"common_name": "Oilers","opponent_common_name": "Canucks","points": 4,"plus_minus": 2,"power_play_goals": 0,"power_play_points": 2,"game_winning_goals": 0,"ot_goals": 0,"shots": 3,"shifts": 22,"shorthanded_goals": 0,"shorthanded_points": 0,"pim": 2,"toi": "18:16","opponent_abbrev": "VAN"},{"game_id": 2025021289,"team_abbrev": "EDM","home_road_flag": "H","game_date": "2026-04-13","goals": 1,"assists": 0,"common_name": "Oilers","opponent_common_name": "Avalanche","points": 1,"plus_minus": 0,"power_play_goals": 0,"power_play_points": 0,"game_winning_goals": 0,"ot_goals": 0,"shots": 5,"shifts": 28,"shorthanded_goals": 0,"shorthanded_points": 0,"pim": 0,"toi": "27:55","opponent_abbrev": "COL"},"… 80 more"],"cached": false,"credits_used": 1}