Mixed martial arts odds API
Mixed martial arts leagues, markets and prices through one REST API.
Mixed martial arts has the sport key mma. Its events are between two competitors, competitor_1 and competitor_2, in the order the official fixture lists them.
Leagues
| League | Key | Bookmakers delivering |
|---|---|---|
| UFC | ufc | 1 |
Request the leagues
curl -sS "https://api.sockodds.com/v1/leagues?sport=mma" \
-H "Authorization: Bearer $SOCKODDS_API_KEY"const response = await fetch("https://api.sockodds.com/v1/leagues?sport=mma", {
headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));import json, os, urllib.request
request = urllib.request.Request(
"https://api.sockodds.com/v1/leagues?sport=mma",
headers={"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]},
)
with urllib.request.urlopen(request) as response:
print(json.dumps(json.load(response), indent=2))Response from a local copy of the API with invented test prices
{
"data": [
{
"key": "ufc",
"name": "UFC",
"sport": "mma",
"region": "us",
"periods": [
"full",
"round_1",
"round_2",
"round_3",
"round_4",
"round_5"
]
}
],
"meta": {
"count": 1,
"cursor": null
},
"links": {
"next": null
}
}Markets
12 market types are defined for mixed martial arts: winner, winner_draw_dead_heat, total_rounds, player_significant_strikes_landed_over_under, player_strikes_landed_over_under, player_takedowns_over_under, finish_on_points_dq_void, player_win_by_points_dq_void_yes_no, finish_by_ko_tko_dq_void, player_win_by_ko_tko_dq_void_yes_no, finish_by_submission_dq_void and player_win_by_submission_dq_void_yes_no. Each league page lists the markets and periods that apply to it, and Markets lists them all.