← Back to marketplace

Betfair Exchange

Fast JSON API for the Betfair Exchange - back and lay prices with the amounts available for every market, money matched, live scores and incidents, football statistics, outrights, the most traded markets, and horse and greyhound racing with race cards and expert analysis.

other
by Mark820 endpoints100% uptime91ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/competition/events
$0.0010/req

Returns every upcoming event of a competition with its start time, country, TV channels and whether it is in play.

Request schema

competition_idstringrequired

Competition id as returned by the sport competitions (e.g. 10932509 for the English Premier League)

languagestring

Language of the names: en, es, it, de, fr, pt, sv, da, no, fi, ru, el, ro

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "event_id": {
        "type": "integer"
      },
      "name": {
        "type": "string"
      },
      "sport_id": {
        "type": "integer"
      },
      "competition_id": {
        "type": "integer"
      },
      "country_code": {
        "type": "string"
      },
      "start_time": {
        "type": "string"
      },
      "in_play": {
        "type": "boolean"
      },
      "can_turn_in_play": {
        "type": "boolean"
      },
      "video_available": {
        "type": "boolean"
      },
      "tv_channels": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  }
}
GET/v1/competition/outrights
$0.0010/req

Returns the outright markets of a competition (e.g. winner, top goalscorer, relegation, top four finish) with every runner's best three back and lay prices, the amounts available, last traded price, implied probability and the money matched.

Request schema

competition_idstringrequired

Competition id as returned by the sport competitions (e.g. 10932509 for the English Premier League)

languagestring

Language of the names: en, es, it, de, fr, pt, sv, da, no, fi, ru, el, ro

currencystring

Currency of the matched and available amounts: GBP, EUR, USD, AUD, CAD, NZD, HKD, SGD, DKK, NOK, SEK, BRL, MXN

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "market_id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "market_type": {
        "type": "string"
      },
      "betting_type": {
        "type": "string"
      },
      "start_time": {
        "type": "string"
      },
      "suspend_time": {
        "type": "string"
      },
      "status": {
        "type": "string"
      },
      "in_play": {
        "type": "boolean"
      },
      "turn_in_play_enabled": {
        "type": "boolean"
      },
      "total_matched": {
        "type": "number"
      },
      "total_available": {
        "type": "number"
      },
      "last_match_time": {
        "type": "string"
      },
      "number_of_winners": {
        "type": "integer"
      },
      "number_of_runners": {
        "type": "integer"
      },
      "number_of_active_runners": {
        "type": "integer"
      },
      "bet_delay": {
        "type": "integer"
      },
      "starting_price_market": {
        "type": "boolean"
      },
      "each_way_divisor": {
        "type": "null"
      },
      "race_number": {
        "type": "null"
      },
      "race_type": {
        "type": "null"
      },
      "commission_rate": {
        "type": "integer"
      },
      "line": {
        "type": "null"
      },
      "event": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "sport_id": {
            "type": "integer"
          },
          "country_code": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "venue": {
            "type": "null"
          },
          "start_time": {
            "type": "string"
          }
        }
      },
      "runners": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "selection_id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "handicap": {
              "type": "integer"
            },
            "status": {
              "type": "string"
            },
            "sort_priority": {
              "type": "integer"
            },
            "last_price_traded": {
              "type": [
                "number",
                "null"
              ]
            },
            "best_back_price": {
              "type": "null"
            },
            "best_lay_price": {
              "type": "null"
            },
            "implied_probability": {
              "type": "null"
            },
            "back": {
              "type": "array"
            },
            "lay": {
              "type": "array"
            },
            "removal_date": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/betfair/v1/competition/events" \
  -d '{"competition_id":"10932509","language":"en"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/betfair/v1/competition/events \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Betfair Exchange.

GET /v1/competition/events$0.0010/req
-
GET /v1/competition/outrights$0.0010/req
-
GET /v1/event/by-date$0.0010/req
-
GET /v1/event/details$0.0010/req
-
GET /v1/event/live$0.0010/req
-
GET /v1/event/markets$0.0010/req
-
GET /v1/event/score$0.0010/req
-
GET /v1/event/statistics$0.0010/req
-
GET /v1/event/timeline$0.0010/req
-
GET /v1/event/upcoming$0.0010/req
-
GET /v1/general/search$0.0010/req
-
GET /v1/general/sport/competitions$0.0010/req
-
GET /v1/general/sport/market-types$0.0010/req
-
GET /v1/general/sports$0.0010/req
-
GET /v1/market/details$0.0010/req
-
GET /v1/market/popular$0.0010/req
-
GET /v1/market/prices$0.0010/req
-
GET /v1/racing/meetings$0.0010/req
-
GET /v1/racing/next-races$0.0010/req
-
GET /v1/racing/race-info$0.0010/req
-