Bet365 API
Bet365 PreMatch Odds
/v4/bet365/prematchEvery pre-match market bet365 lists for an event, grouped in sections.
Parameters
Send every parameter in the query string, including token.
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Required | Your API token. |
| FI | string | Required | id from Bet365 Upcoming Events. |
| raw | boolean | Optional | Return the capture before parsing. |
Notes
Prices stop updating once the event goes in play: switch to Bet365 Inplay Event.
Markets that don't fit main, asian_lines, goals or half are listed in others.
Request
Call https://api.odds-data-api.com/v4/bet365/prematch with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v4/bet365/prematch?FI=158211004&token=$ODDS_DATA_API_TOKEN"Response
JSON with success: 1 and results. Values are strings unless shown otherwise. See Response format and R-Pager.
{
"success": 1,
"results": [
{
"FI": "158211004",
"event_id": "8211004",
"main": {
"updated_at": "1789236000",
"key": "main",
"sp": {
"full_time_result": {
"id": "40",
"name": "Full Time Result",
"odds": [
{
"id": "962056610",
"odds": "2.45",
"name": "1"
},
{
"id": "962056617",
"odds": "3.60",
"name": "Draw"
},
{
"id": "962056618",
"odds": "2.80",
"name": "2"
}
]
}
}
},
"asian_lines": {
"updated_at": "1789236000",
"key": "asian_lines",
"sp": {}
},
"goals": {
"updated_at": "1789236000",
"key": "goals",
"sp": {}
},
"half": {
"updated_at": "1789236000",
"key": "half",
"sp": {}
},
"others": []
}
]
}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. |
{
"success": 0,
"error": "PARAM_REQUIRED",
"error_detail": "FI"
}Like every endpoint, it can also return INTERNAL_SERVER_ERROR, METHOD_NOT_ALLOWED and UNDER_MAINTENANCE. See R-Errors.
Try it
https://api.odds-data-api.com/v4/bet365/prematch?FI=158211004&token=YOUR-TOKEN- FI
- 158211004
- token
- YOUR-TOKEN (from the dashboard)
Requests run with your own token and count toward your hourly limit.
