Documentation / Inside a game
Three stars
GET /v1/games/{game_id}/starsFree key and up
The three stars of the game, with side.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/starshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/starscurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/stars" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"star": 1,
"player": {
"id": "pl_eb1y2yzq",
"name": "Tye Kartye"
},
"side": "home"
},
{
"star": 2,
"player": {
"id": "pl_k5173zwm",
"name": "Alexis Lafrenière"
},
"side": "home"
},
{
"star": 3,
"player": {
"id": "pl_5t0tyjwh",
"name": "Gabe Perreault"
},
"side": "home"
}
],
"meta": {
"game_id": "gm_seyr9d88",
"count": 3,
"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 |
|---|---|
star | int |
player | object |
player.id | string |
player.name | string |
side | string |