Documentation / Inside a game
Skater stats
GET /v1/games/{game_id}/skatersLive and up
Each skater's line: goals, assists, points, plus-minus, penalty minutes, shots, hits, blocks, faceoffs and ice time.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/skatershttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/skaterscurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/skaters" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"player": {
"id": "pl_eb1y2yzq",
"name": "Tye Kartye"
},
"side": "home",
"goals": 2,
"assists": 0,
"points": 2,
"plus_minus": 2,
"penalty_minutes": 0,
"shots": 3,
"hits": 1,
"blocked_shots": 0,
"giveaways": 0,
"takeaways": 0,
"faceoff_pct": 0.0,
"power_play_goals": 0,
"time_on_ice_seconds": 939,
"shifts": 21
},
{
"player": {
"id": "pl_tt2g1enk",
"name": "Will Cuylle"
},
"side": "home",
"goals": 2,
"assists": 0,
"points": 2,
"plus_minus": 1,
"penalty_minutes": 0,
"shots": 3,
"hits": 4,
"blocked_shots": 0,
"giveaways": 0,
"takeaways": 0,
"faceoff_pct": 0.0,
"power_play_goals": 0,
"time_on_ice_seconds": 939,
"shifts": 19
},
{
"player": {
"id": "pl_k5173zwm",
"name": "Alexis Lafrenière"
},
"side": "home",
"goals": 1,
"assists": 1,
"points": 2,
"plus_minus": 0,
"penalty_minutes": 0,
"shots": 2,
"hits": 1,
"blocked_shots": 0,
"giveaways": 2,
"takeaways": 0,
"faceoff_pct": 1.0,
"power_play_goals": 1,
"time_on_ice_seconds": 1159,
"shifts": 22
}
],
"meta": {
"game_id": "gm_seyr9d88",
"count": 36,
"detail": true,
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
| Name | In | Type | What it does |
|---|---|---|---|
game_id required | path | id | A game, from /v1/games. |
Returns
| Field | Type |
|---|---|
player | object |
player.id | string |
player.name | string |
side | string |
goals | int |
assists | int |
points | int |
plus_minus | int |
penalty_minutes | int |
shots | int |
hits | int |
blocked_shots | int |
giveaways | int |
takeaways | int |
faceoff_pct | number |
power_play_goals | int |
time_on_ice_seconds | int |
shifts | int |