Documentation / Inside a game
Officials
GET /v1/games/{game_id}/officialsLive and up
The referees and linesmen of the game.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/officialshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/officialscurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/officials" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"name": "Justin Kea",
"role": "referee"
},
{
"name": "Thomas John Luxmore",
"role": "referee"
},
{
"name": "Dylan Blujus",
"role": "linesman"
}
],
"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 |
|---|---|
name | string |
role | string |