Events API
Events Search
GET
/v1/events/searchFind an event by its teams and date.
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. |
| home | string | Required | Home team id or name. |
| away | string | Required | Away team id or name. |
| time | string | Required | UTC epoch within the last 365 days, or YYYYMMDD. |
Request
Call https://api.odds-data-api.com/v1/events/search with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v1/events/search?sport_id=1&home=Arsenal&away=Liverpool&time=20260911&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": [
{
"id": "8198402",
"sport_id": "1",
"time": "1789066800",
"time_status": "3",
"league": {
"id": "10041282",
"name": "England Premier League",
"cc": "gb"
},
"home": {
"id": "10200",
"name": "Arsenal",
"image_id": null,
"cc": "gb"
},
"away": {
"id": "10209",
"name": "Liverpool",
"image_id": null,
"cc": "gb"
},
"ss": "1-1"
}
]
}Errors
A failed call returns success: 0 with an error code. This endpoint can return:
| error | Meaning |
|---|---|
| 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/events/search?sport_id=1&home=Arsenal&away=Liverpool&time=20260911&token=YOUR-TOKEN- sport_id
- 1
- home
- Arsenal
- away
- Liverpool
- time
- 20260911
- token
- YOUR-TOKEN (from the dashboard)
Requests run with your own token and count toward your hourly limit.
