Documentation / Odds
Game odds
GET /v1/games/{game_id}/oddsLive and upMCP tool: game_odds
Odds for one game: three-way, moneyline, puck line and totals, opening, closing or average prices.
GET
https://api.icehockeyapi.com/v1/games/{game_id}/oddshttps://api.icehockeyapi.com/v1/games/gm_seyr9d88/oddscurl "https://api.icehockeyapi.com/v1/games/gm_seyr9d88/odds" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": {
"game_id": "gm_seyr9d88",
"odds": [
{
"market": "three_way",
"price": "average",
"format": "decimal",
"home": 1.6,
"draw": 4.68,
"away": 4.47
}
]
},
"meta": {
"count": 1,
"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 |
|---|---|
game_id | string |
odds | list |