Something that is often paired together with livescores is a form of betting functionality. By clicking on a specific match, you will be re-directed to a new page with all the game odds. This betting component is often manifested in the form of odds.
This how-to guide will be focused odds & predictions. Having an overview of all the different bookmakers and what their odds are is extremely helpful for clients looking to make bets. Our football API provides you with all the tools needed to build your own odds portal, or something similar. Please refer to our tutorial for basic knowledge before proceeding.
Our API provides you with all the tools needed to build your own odds portal, or something similar. Please refer to our tutorial for basic knowledge before proceeding.
Welcome to the how-to guide about building a betting odds portal.
We define a betting odds portal, as a website that is host to various bookmakers being actively compared to each other per market.
Note, that we will not take live odds into account.
You are going to need the following tools:
Sportmonks API token
Code editor (Visual studio used in examples)
Postman (optional)
You can find a link to another article where we discuss the tools in-depth on our Developer Tools Guide.
Do you want to show every single bookmaker or just a few popular ones? The choice is yours. In this guide, we’ll focus on pre-match odds. If you’re interested in live odds, please refer to our how-to build a match page with odds guide. There are lots of different markets to choose from. You can request all the markets yourself via our all markets endpoint. We've listed a few popular ones below:
3-way results (market id: 1)
Asian Handicap (market id: 28)
Over/Under (market id: 12)
Draw no bet (market id: 28082)
The most important part of the odds portal is to compare the bookmakers. You can request all the bookmakers yourself via our all bookmakers endpoint. We've listed a few popular ones below:
bet365 (bookmaker id: 2)
1xBet (bookmaker id: 25679340)
Betfair (bookmaker id: 15)
Betway (bookmaker id: 271057011)
Unibet (bookmaker id: 97)
We at Sportmonks offer you a large number of markets and bookmakers. If it exists, we offer it!
To see the full list of all the bookmakers and markets we offer, you can simply make API requests with the following endpoints:
In our how-to build a match page with odds guide, we worked with flatOdds
and inplayOdds
as includes. For this how-to guide, we’ll be working with the include called oddComparison
(better for comparison) and the endpoint fixtures by date:
This request will return all the fixtures of a certain date with the odds. It’s also possible to filter on the markets and bookmakers you wish to see.
Ultimately, it’s up to you which bookmakers and markets you want to request. But for now, we’ll go with the following request:
We have included the following bookmakers: bet365, Betfair, and Unibet and the following markets: 3-way result, over/under, and Asian handicap.
Below we can see the odds of a fixture for the market 3-way result. We can see the bookmakers and their respective odds for a 3-way result. The same data is displayed for the over/under market.
Welcome to the how-to guide about building a match page with odds. For example, what are the odds that Real Madrid will win against Bayern Munich in the Champions League? If Real Madrid has a numerical value of 2.5, while Bayern has 2, and a draw would be 1.5, then the match’s most probable outcome would be a draw. This is due to the draw being the lowest numerical odds value. In this how-to guide, we’ll walk you through the steps of creating a match page that displays pre-match and live odds. There is also a continuation guide called . There we will compare different bookmakers with each other.
You will once again be needing:
SportMonks API token
A Code editor (Visual studio used in examples)
Postman (optional)
You can find a link to another article where we discuss the tools in-depth on our
There are thousands of different markets, such as 3-way results, home/away, first card received, and Asian handicap.
Besides choosing an appropriate market, you also have to choose between various bookmakers, such as 10bet, bet365, 188bet, and many more.
For a full overview of all the markets and bookmakers we offer, use these two endpoints:
The most used market is 3-way results. The 3-way result means that there are three possible outcomes: Home team wins (label 1), draw (label X), and visitor team wins (label 2).
SportMonks provides four different odds endpoints:
For this guide, we’ll be requesting the 3-way result market (market id: 1) and bet365 as our bookmaker (bookmaker id: 2).
Let's analyze a Champions League match between Dynamo Kiev vs Barcelona. At the time of writing this match has yet to be played so it's perfect for an example. Its fixture id is 17361241. We’ll show you both live and pre-match odds:
These requests will return the live or pre-match odds, as well as the local and visitor teams. We added the includes localTeam,visitorTeam
, because we want to have more information about the teams.
You can see the betting values per possible outcome. As you know, market has three possible outcomes: Home team wins (label 1), draw (label X), and visitor team wins (label 2). The value represents the odds at the time of requesting.
inplayOdds
will show you the same output format asflatOdds
but will be changed actively throughout the match.
Congratulations! You now have all the tools ready to create your own odds page. Have a look at this fantastic website for some inspiration!
In the next how-to guide, we'll be discussing how you can build an odds portal.
We have discussed how our prediction API works in-depth in our . In this how-to guide, we’ll show you how to implement the predictions of the Champions League group stage. Our prediction API is based on the latest machine learning techniques, which will give you the best predictions possible.
We’ll only be discussing probabilities per match. For the value bet and player contribution models, you can refer to our
First some general information about the Champions League:
League id: 2
Current season id: 17299
Current stage (Group stage) id: 77448760
Current round id: 211704
At the time of writing, the Champions League is in its third round of the group stages. The dates are from 2020-11-03 to 2020-11-04
We use the following URL:
This URL requests all the Champion League matches of the third round of the group stages. Now that you have an overview of all the Champion League fixture ids, we can start implementing our Prediction API.
Remember the two endpoints?
See our again for a refresher, in case you forgot.
You have multiple options. Including the options to either use the or to use thewith probability
as include.
We’ll analyze the following match between Real Madrid and Inter with fixture id #17361029.
Predictions are updated multiple times a day. Take this into account when you start implementing.
Need some inspiration? The website below shows how you can display the various market predictions for one specific match.
d
However, many users prefer to request pre-match odds with the and then include flatOdds
. This request allows the user to filter on the parameters 'bookmakers' and 'markets' at the same time, rather than only being able to choose either bookmaker or market.
For live odds, we only offer all the markets from bet365. Therefore, the bookmaker and market have already been pre-defined with bookmaker id = 2. For live odds, you can use our endpoint, or use the inplayOdds include our So the example URLs will be:
Note that we use flatOdds
here for pre-match odds, but we also have a different include calledodds
andoddComparison
that is used for the . For more information regarding odds, see our
Also, our predictions are included In this match. Barcelona has the highest probability of winning with 73.37%, followed by a draw (20%) and Dynamo Kiev winning (12.5%). More information is available in our and .
BTTS (Both teams to score) = 63.01% Over 2,5 goals scored = 61.67% Under 3,5 goals scored = 60.14% Home team (Real Madrid) over 0,5 goals scored = 82,13% Away team (Inter) over 0,5 goals scored = 76.82% Real Madrid win probability = 43.90% Inter win probability = 32.80% Draw probability = 23.29% A final score of 1-1 has the highest probability = 10.42% If you used the you will have to repeat this step for all the other Champion League matches.
But, if you used the probability
include on one of our or endpoints, you won’t have to.
Our prediction API uses cutting-edge technology developed by Sportmonks’ very own data scientists and development team. If you’re interested in the technology behind our predictions, you can have a look at our