Bet365 API
Bet365 Upcoming Events
GET
/v1/bet365/upcomingUpcoming bet365 events with their FI, for pre-match odds.
Parameters
Send every parameter in the query string, including token.
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Required | Your API token. |
| sport_id | integer | Required | R-SportID. |
| league_id | string | Optional | Only return this league. |
| day | string | Optional | Format YYYYMMDD, e.g. 20260913. |
| page | integer | Optional | R-Pager. Maximum page is 100. |
Notes
league.id, home.id and away.id are different from Events API ids. our_event_id links to the Events API.
Request
Call https://api.odds-data-api.com/v1/bet365/upcoming with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v1/bet365/upcoming?sport_id=1&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,
"pager": {
"page": 1,
"per_page": 50,
"total": 2695
},
"results": [
{
"id": "158211004",
"sport_id": "1",
"time": "1789243500",
"time_status": "0",
"league": {
"id": "10041282",
"name": "England Premier League"
},
"home": {
"id": "10211",
"name": "Manchester United"
},
"away": {
"id": "10202",
"name": "Chelsea"
},
"ss": null,
"our_event_id": "8211004",
"updated_at": "1789236000"
}
]
}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": "sport_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/v1/bet365/upcoming?sport_id=1&token=YOUR-TOKEN- sport_id
- 1
- token
- YOUR-TOKEN (from the dashboard)
Requests run with your own token and count toward your hourly limit.
