Per endpoint the rest of the URL requires additional information. We will explain this per endpoint.
Requesting live odds
GET All Inplay Odds
The first option is to request all the inplay odds available in our APIs. With this information, you can determine if the odds youโre interested in are available.
The URL to get all inplay odds is the same as the base URL for inplay odds. All you have to do is authorize the request with your API token. Check our authentication section for more info.
Letโs take a look together at the key values the API returns:
id: the unique id of the odd
fixture_id: the unique fixture id the odd is available for
external_id: the unique id of the odd from the bookmaker
market_id: the unique id of the market the odd belongs to
bookmaker_id: the unique id of the bookmaker who offers the odd
label: the label name of the odd
value: the odd value
name: the name of the odd
sort_order: n/a
market_description: the description of the market the odd belongs to
Now youโve gathered an overview of the available inplay odds. You can also retrieve the odds for only a specific fixture.
GET Inplay Odds by Fixture ID
A lot of our customers are not interested in all odds, but only in odds of a specific fixture. This endpoint is perfectly suited for this. The only thing youโve to do is parse the fixture_id you want the odds for:
You can also opt for the option to request the live odds for one fixture from one specific bookmaker.
Itโs good to note that at the moment we only have live odds from bet365. This might change in the future. Therefore weโve implemented this endpoint already.
To achieve this, the only thing youโve to do is parse the fixture_id and bookmaker_id you want the odds for:
You can also request all the inplay odds from a specific market and a specific fixture. The only thing youโve to do is parse the fixture_id and market_id you want the odds for:
For example, if youโre interested in the inplay odds from the alternative match goals market (id: 5) available for Celtic vs Rangers (fixture id: 18535517)
As youโve learnt in the includes tutorial, you can enrich your request with includes. This section will discuss some of the most common requests used on the odds endpoints.
First of all, you can find a list of all available includes on the endpoint pages. For the odds, there are only 3 includes available:
market: includes the market information the oddd belongs to.
bookmaker: includes the bookmaker information of the bookmaker that offers the odd.
fixture: includes the fixture information the odds is available for.
For example, if youโre interested in the inplay odds available for Celtic vs Rangers (fixture id: 18535517) with the name of the bookmakers, markets and fixture info.
In our filtering tutorial youโve learnt how to select specific fields or filter only on the data youโre interested in. Our API returns a set of data related to the odd by default. We can imagine youโre not interested in all the odds data the API returns. Letโs say youโre only interested in the market description and value.
You can add the &select= parameter followed by the fields you want. In our case: market_description,value. This results in the below request and response: