Documentation / Inside a game
Goalie stats
GET /v1/games/{game_id}/goaliesLive and up
Each goalie's line: ice time, shots against, saves, goals against, save percentage and decision.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/goalieshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/goaliescurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/goalies" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"player": {
"id": "pl_6fqc4gsd",
"name": "Dylan Garand"
},
"side": "home",
"started": true,
"time_on_ice_seconds": 3600,
"shots_against": 21,
"saves": 19,
"goals_against": 2,
"save_pct": 0.905,
"decision": "win"
},
{
"player": {
"id": "pl_e470xqsk",
"name": "Spencer Martin"
},
"side": "home",
"started": false,
"time_on_ice_seconds": 0,
"shots_against": 0,
"saves": 0,
"goals_against": 0,
"save_pct": null,
"decision": null
},
{
"player": {
"id": "pl_pfn285n6",
"name": "Kevin Lankinen"
},
"side": "away",
"started": true,
"time_on_ice_seconds": 3600,
"shots_against": 25,
"saves": 19,
"goals_against": 6,
"save_pct": 0.76,
"decision": "loss"
}
],
"meta": {
"game_id": "gm_seyr9d88",
"count": 4,
"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 |
started | bool |
time_on_ice_seconds | int |
shots_against | int |
saves | int |
goals_against | int |
save_pct | number |
decision | string |