Events API
Event Odds Summary
GET
/v2/event/odds/summaryOpening, kickoff and latest odds of the main markets.
Parameters
Send every parameter in the query string, including token.
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Required | Your API token. |
| event_id | string | Required | Event id from the events endpoints. |
Notes
Our only source is Bet365, so every summary has a single Bet365 key.
Request
Call https://api.odds-data-api.com/v2/event/odds/summary with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v2/event/odds/summary?event_id=8204771&token=$ODDS_DATA_API_TOKEN"Response
JSON with success: 1 and results. Values are strings unless shown otherwise. See Response format and R-Pager.
application/json
{
"success": 1,
"results": {
"Bet365": {
"matching_dir": 1,
"odds_update": {
"1_1": 1789241232,
"1_2": 1789241232,
"1_3": 1789241232
},
"odds": {
"start": {
"1_1": {
"id": "28952207",
"home_od": "2.300",
"draw_od": "3.400",
"away_od": "3.100",
"ss": null,
"add_time": "1789063200"
}
},
"kickoff": {
"1_1": {
"id": "29100344",
"home_od": "2.250",
"draw_od": "3.400",
"away_od": "3.200",
"ss": "0-0",
"add_time": "1789237200"
}
},
"end": {
"1_1": {
"id": "29141890",
"home_od": "1.440",
"draw_od": "4.600",
"away_od": "7.500",
"ss": "2-1",
"add_time": "1789241232"
}
}
}
}
}
}Errors
A failed call returns success: 0 with an error code. This endpoint can return:
| error | Meaning |
|---|---|
| NOT_FOUND | 404 Not Found. |
| AUTHORIZE_FAILED | Token is not provided or is incorrect. |
| TOO_MANY_REQUESTS | API rate limit exceeded. See X-RateLimit-Reset. |
| PERMISSION_DENIED | Your plan does not include this call. Contact support if this is wrong. |
| PARAM_REQUIRED | A required param is missing. Check error_detail. |
| PARAM_INVALID | A param is invalid. Check error_detail. |
Failed call · application/json
{
"success": 0,
"error": "PARAM_REQUIRED",
"error_detail": "event_id"
}Like every endpoint, it can also return INTERNAL_SERVER_ERROR, METHOD_NOT_ALLOWED and UNDER_MAINTENANCE. See R-Errors.
Try it
GET
https://api.odds-data-api.com/v2/event/odds/summary?event_id=8204771&token=YOUR-TOKEN- event_id
- 8204771
- token
- YOUR-TOKEN (from the dashboard)
Requests run with your own token and count toward your hourly limit.
