Betting Market Category Documentation
Description
This endpoint returns all the markets that are currently available along with their associated sports and leagues.
REQUIREMENT
You'll need a license key to use OpticOdds' API. You can get one by contacting us at www.opticodds.com.
API Endpoint
https://api.opticodds.com/api/v2/market-categories/
Parameters
key
(required)
Your OpticOdds API license key.
id
The ID of the market you want to receive. (e.g. moneyline
)
label
The label of the market you want to receive. (e.g. Moneyline
)
sport
The sport you want to receive teams for. We support the following:
football
basketball
baseball
mma
boxing
hockey
soccer
tennis
golf
motorsports
esports
wrestling
aussie-rules
rugby
lacrosse
cricket
volleyball
politics
league
The league you want to receive odd changes for (e.g. NCAAB
)
Example Response
{
"data": [
{
"id": "moneyline",
"label": "Moneyline",
"sports": [
{
"id": "baseball",
"label": "Baseball"
},
{
"id": "basketball",
"label": "Basketball"
}
],
"leagues": [
{
"id": "mlb",
"label": "MLB",
"sport": "baseball"
},
{
"id": "nba",
"label": "NBA",
"sport": "basketball"
}
]
}
...
]
}