Documentation / Inside a game
Game context
GET /v1/games/{game_id}/contextLive and up
Everything around the game in one call: the rink with its city and country, the start in UTC and in the rink's own time zone, and for each side the days of rest, back to back, games in the last 7 days and home or road games in a row; for the away side the city it came from; and, where the game has a line-up, the side's regulars who are not dressed. Every game, upcoming ones included. Weather and ice are always null: the game is played indoors and no open source records ice conditions.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/contexthttps://api.icehockeyapi.com/v1/games/gm_pc8qd0e0/contextcurl "https://api.icehockeyapi.com/v1/games/gm_pc8qd0e0/context" \ -H "X-API-Key: YOUR_KEY"
The example answer is being made; press Run for a real one.
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
Each record as in the example answer above.