Bet365 API
Bet365 InPlay Filter
/v1/bet365/inplay_filterIn-play events with their FI, filtered by sport or league.
Parameters
Send every parameter in the query string, including token.
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Required | Your API token. |
| sport_id | integer | Optional | R-SportID. |
| league_id | string | Optional | Only return this league. |
| skip_esports | boolean | Optional | Skip Esoccer, Ebasketball etc. in the result. |
Notes
There is no pager in this API call. We just return all events.
league.id, home.id and away.id might be different from Events API ids. our_event_id links to the Events API.
Request
Call https://api.odds-data-api.com/v1/bet365/inplay_filter with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v1/bet365/inplay_filter?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.
{
"success": 1,
"pager": {
"page": 1,
"per_page": 1000,
"total": 1
},
"results": [
{
"id": "158204771",
"sport_id": "1",
"time": "1789237200",
"time_status": "1",
"league": {
"id": "10041282",
"name": "England Premier League"
},
"home": {
"id": "10204",
"name": "Brentford"
},
"away": {
"id": "10218",
"name": "Everton"
},
"ss": "2-1",
"our_event_id": "8204771",
"r_id": null,
"updated_at": "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_INVALID | A param is invalid. Check error_detail. |
{
"success": 0,
"error": "AUTHORIZE_FAILED"
}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/v1/bet365/inplay_filter?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.
