Get match odds
Returns pre-match odds for a match, one entry per bookmaker (Bet365, Paddy Power, BetMGM UK, Pinnacle, Betfair Exchange), with the opening and latest price for each selection. Markets include match result (full time and half time), both teams to score, goals, corners and cards lines, Asian and European handicaps, team totals, match and team stat lines (shots, shots on target, throw-ins, goal kicks, tackles and offsides; shots, shots on target, throw-ins and goal kicks also by half; team fouls from Paddy Power), correct score, to qualify and penalty specials. A market appears only when that bookmaker prices it. Works for upcoming and finished matches where odds were captured; check odds_available on the match first. Returns 404 when the match has no odds. Older matches mostly have Bet365 prices only.
Example: GET /football/matches/mt_200199332/odds?bookmaker=bet365,pinnacle
curl --request GET \
--url https://api.thestatsapi.com/api/football/matches/{match_id}/odds \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/matches/{match_id}/odds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/football/matches/{match_id}/odds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys
Path Parameters
Query Parameters
curl --request GET \
--url https://api.thestatsapi.com/api/football/matches/{match_id}/odds \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thestatsapi.com/api/football/matches/{match_id}/odds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thestatsapi.com/api/football/matches/{match_id}/odds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)