Events API

Merge History

GET/v1/event/merge_history

Duplicated events that were merged. Both ids return the same data in Event View.

Parameters

Send every parameter in the query string, including token.

Query parameters
NameTypeRequiredDescription
tokenstringRequiredYour API token.
since_timeintegerOptionalOnly return merges created at or after this UTC epoch.
pageintegerOptionalR-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 codes
errorMeaning
AUTHORIZE_FAILEDToken is not provided or is incorrect.
TOO_MANY_REQUESTSAPI rate limit exceeded. See X-RateLimit-Reset.
PERMISSION_DENIEDYour plan does not include this call. Contact support if this is wrong.
PARAM_INVALIDA 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

GEThttps://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.