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.
Includes 100 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
Returns every upcoming event of a competition with its start time, country, TV channels and whether it is in play.
Request schema
Competition id as returned by the sport competitions (e.g. 10932509 for the English Premier League)
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"
}
}
}
}
}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 id as returned by the sport competitions (e.g. 10932509 for the English Premier League)
Language of the names: en, es, it, de, fr, pt, sv, da, no, fi, ru, el, ro
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"
}
}
}
}
}
}
}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)Estimate your monthly cost for Betfair Exchange.