Documentation / Players
Game log
GET /v1/players/{player_id}/gamesLive and upPaged, 50 a page
Every game your plan covers in which the player has a line, newest first, with his goals, assists, shots and ice time.
GET
https://api.icehockeyapi.com/v1/players/{player_id}/gameshttps://api.icehockeyapi.com/v1/players/pl_zgna58ee/games?per_page=3curl "https://api.icehockeyapi.com/v1/players/pl_zgna58ee/games?per_page=3" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"game": {
"id": "gm_0tvcfpmt",
"date": "2026-09-29",
"start_time": "2026-09-30T00:00:00Z",
"league": {
"id": "lg_6t11wec7",
"name": "NHL"
},
"season": {
"id": "ss_0n4zhhna",
"label": "2026-27"
},
"stage": "regular",
"status": "final",
"home_team": {
"id": "tm_7vyb6jrq",
"name": "Boston Bruins",
"short_name": "BOS",
"country": "North America"
},
"away_team": {
"id": "tm_kpzj338v",
"name": "New York Rangers",
"short_name": "NYR",
"country": "North America"
},
"home_goals": 3,
"away_goals": 0,
"ended_in": "regulation",
"venue": {
"id": "vn_2qcvdrkt",
"name": "TD Garden",
"city": null,
"country": null
},
"attendance": 17850
},
"side": "away",
"goals": 0,
"assists": 0,
"points": 0,
"plus_minus": 0,
"penalty_minutes": 0,
"shots": 1,
"time_on_ice_seconds": 589
},
{
"game": {
"id": "gm_8ysp0nqc",
"date": "2026-09-25",
"start_time": "2026-09-25T23:30:00Z",
"league": {
"id": "lg_6t11wec7",
"name": "NHL"
},
"season": {
"id": "ss_0n4zhhna",
"label": "2026-27"
},
"stage": "preseason",
"status": "final",
"home_team": {
"id": "tm_zy5w8596",
"name": "New York Islanders",
"short_name": "NYI",
"country": "North America"
},
"away_team": {
"id": "tm_kpzj338v",
"name": "New York Rangers",
"short_name": "NYR",
"country": "North America"
},
"home_goals": 1,
"away_goals": 6,
"ended_in": "regulation",
"venue": {
"id": "vn_2qwm96dt",
"name": "UBS Arena",
"city": null,
"country": null
},
"attendance": 14034
},
"side": "away",
"goals": 0,
"assists": 1,
"points": 1,
"plus_minus": 1,
"penalty_minutes": 0,
"shots": 0,
"time_on_ice_seconds": 823
},
{
"game": {
"id": "gm_v7m24nbp",
"date": "2026-09-24",
"start_time": "2026-09-24T23:00:00Z",
"league": {
"id": "lg_6t11wec7",
"name": "NHL"
},
"season": {
"id": "ss_0n4zhhna",
"label": "2026-27"
},
"stage": "preseason",
"status": "final",
"home_team": {
"id": "tm_kpzj338v",
"name": "New York Rangers",
"short_name": "NYR",
"country": "North America"
},
"away_team": {
"id": "tm_vxt1q0ha",
"name": "New Jersey Devils",
"short_name": "NJD",
"country": "North America"
},
"home_goals": 4,
"away_goals": 3,
"ended_in": "shootout",
"venue": {
"id": "vn_aymp6wpr",
"name": "Madison Square Garden",
"city": null,
"country": null
},
"attendance": 16078
},
"side": "home",
"goals": 0,
"assists": 1,
"points": 1,
"plus_minus": 0,
"penalty_minutes": 0,
"shots": 1,
"time_on_ice_seconds": 854
}
],
"meta": {
"count": 3,
"next_cursor": "eyJvIjozLCJuIjozfQ",
"page": 1,
"per_page": 3,
"total": 111,
"total_pages": 37,
"next_page": 2,
"prev_page": null,
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
| Name | In | Type | What it does |
|---|---|---|---|
player_id required | path | id | A player, from /v1/players. |
page | query | int | The page, from 1. |
per_page | query | int | Records a page, default 50, at most 200. |
cursor | query | string | meta.next_cursor from the previous answer. |
Returns
| Field | Type |
|---|---|
game | object |
game.id | string |
game.date | string |
game.start_time | string |
game.league | object |
game.season | object |
game.stage | string |
game.status | string |
game.home_team | object |
game.away_team | object |
game.home_goals | int |
game.away_goals | int |
game.ended_in | string |
game.venue | object |
game.attendance | int |
side | string |
goals | int |
assists | int |
points | int |
plus_minus | int |
penalty_minutes | int |
shots | int |
time_on_ice_seconds | int |