Documentation / Inside a game
Game team stats
GET /v1/games/{game_id}/team-statsLive and up
Team totals for the game side by side: shots, faceoffs, power play, penalty minutes, hits, blocks, giveaways and takeaways.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/team-statshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/team-statscurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/team-stats" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"stat": "blocked_shots",
"home": "14",
"away": "14"
},
{
"stat": "faceoff_pct",
"home": "0.62",
"away": "0.38"
},
{
"stat": "faceoff_wins",
"home": "31/50",
"away": "19/50"
}
],
"meta": {
"game_id": "gm_seyr9d88",
"count": 10,
"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 |
|---|---|
stat | string |
home | string |
away | string |