Bet365 API

Bet365 PreMatch Odds

GET/v4/bet365/prematch

Every pre-match market bet365 lists for an event, grouped in sections.

Parameters

Send every parameter in the query string, including token.

Query parameters
NameTypeRequiredDescription
tokenstringRequiredYour API token.
FIstringRequiredid from Bet365 Upcoming Events.
rawbooleanOptionalReturn 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.

application/json
{
  "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 codes
errorMeaning
NOT_FOUND404 Not Found.
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_REQUIREDA required param is missing. Check error_detail.
PARAM_INVALIDA param is invalid. Check error_detail.
Failed call · application/json
{
  "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

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