Events API
Merge History
GET
/v1/event/merge_historyDuplicated events that were merged. Both ids return the same data in Event View.
Parameters
Send every parameter in the query string, including token.
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Required | Your API token. |
| since_time | integer | Optional | Only return merges created at or after this UTC epoch. |
| page | integer | Optional | R-Pager. Maximum page is 100. |
Request
Call https://api.odds-data-api.com/v1/event/merge_history with your token. The examples read it from the ODDS_DATA_API_TOKEN environment variable.
curl "https://api.odds-data-api.com/v1/event/merge_history?since_time=1789171200&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": 100,
"total": 1
},
"results": [
{
"event_id": "8204770",
"merged_to": "8204771",
"created_at": "1789236900"
}
]
}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_INVALID | A param is invalid. Check error_detail. |
Failed call · application/json
{
"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
GET
https://api.odds-data-api.com/v1/event/merge_history?since_time=1789171200&token=YOUR-TOKEN- since_time
- 1789171200
- token
- YOUR-TOKEN (from the dashboard)
Requests run with your own token and count toward your hourly limit.
