Documentation / Inside a game
Coaches
GET /v1/games/{game_id}/coachesLive and up
The head coach behind each bench, with side.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/coacheshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/coachescurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/coaches" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"name": "Mike Sullivan",
"role": "head_coach",
"side": "home"
},
{
"name": "Manny Malhotra",
"role": "head_coach",
"side": "away"
}
],
"meta": {
"game_id": "gm_seyr9d88",
"count": 2,
"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 |
|---|---|
name | string |
role | string |
side | string |