xG Data API

Use the Expected goals metrics from Sportmonks to highlight the hottest statistics in Football and leave your competitors behind speechless.

What is xG?

The Expected Goals (xG) statistic measures the chance quality of a team’s/player’s shots and defines the probability that a specific chance will result in a goal. xG per shot/chance is based on a scale from 0 to 1. The closer the xG value is to 0, the less likely a chance will result in a goal. The closer the value is to 1, the more likely the chance will result in a goal. Remember, the total xG of a player or team can be higher than 1. The total xG of a team or player is the total sum of xG for the individual chances (for that specific team or player).

The xG metrics have had a major impact on all aspects of the football industry. xG has changed how coaches, scouts, players, data analysts, and supporters view football. Overall, xG has revolutionised football analysis by providing a more nuanced understanding of the sport, impacting everything from tactical approaches to player evaluation and fan engagement.

The possibilities are endless. We can't wait to see what you will develop with our new xG feature, as there are many use cases. We will explain some of them here shortly.

What can you do with xG?

Evaluate performance

xG can be used to evaluate the performance of teams and individual players. It provides insight into how well a team or player creates and converts scoring opportunities. You can compare the xG of a team with the actual number of goals scored by a team to see if the team is over- or underperforming. The same goes for players; if a specific player has a xG of 18, while scoring 22 in this season, he is considered overperforming. Keep in mind that it is possible that the over- or underperformance is highly likely to revert back to its mean.

Tactical analysis

Coaches and analysts use xG to analyse tactical decisions made during a match. It helps them understand which strategies create the most dangerous scoring opportunities and which defensive tactics minimise high-value chances conceded.

Scouting

xG can aid in player scouting and recruitment. Teams can use it to identify players who consistently generate high-quality scoring opportunities or are adept at finishing such chances.

Match analysis

Analysts use xG to break down individual matches, providing insights into which team deserved to win based on the quality of chances created and conceded.

*Note: Expected goals needs to be applied correctly. A common mistake at fixture level is that a team with a higher xG should have won the game. That is not necessarily true as xG only measures the chance quality and not the expected outcome of that particular fixture. We have another API for the predicted outcome, which is the Prediction API.

Predictive Modeling

xG can be used as a component in predictive models to forecast match outcomes or simulate tournament results. It provides a quantitative basis for assessing team strengths and weaknesses.

Keep track of player development

By analysing xG data, coaches can identify areas for improvement in players’ decision-making, shooting accuracy, positioning, and other skills related to creating and converting scoring opportunities.

Enhance your fan engagement

xG statistics can enhance fan engagement by providing deeper insights into a match’s dynamics beyond just goals scored. Fans can use xG to understand their team’s performance better and engage in discussions and debates about strategy and player effectiveness.

Overall, xG is a valuable tool for understanding the nuances of soccer matches and can be applied in various contexts, from tactical analysis to player development and fan engagement.

What is included in the xG Metrics add-on?

The xG Metrics add-on has three categories: Basic, Standard, and Advanced.

The Basic xG Metrics have xG available 12 hours after a match has ended. The Standard xG Metrics have xG and xG On Target available straight after a match, and the Advanced package has all our xG Metrics Live.

How to gain access to expected goals in three steps

1. Pick your Football plan

Pick your plan and choose the xG Metrics add-on.

2. Implement the xG Metrics

Implement the xG Metrics and amaze your users and fans.

3. Surpass the competition

Surpass your competitors and leave them speechless.

FAQ xG Metrics

How are xG values calculated?
xG values are calculated using historical shot data. The calculations are made based on the shot's location, angle, and distance. Next, the type of shot (for example, header or foot) is considered. The position of the goalkeeper and players is also used in the calculations. This data and additional information are used to create the different xG metrics, providing a comprehensive understanding of goal-scoring probabilities.

Expected goals is usually expressed as a value between 0 and 1, where 0 indicates a very low probability of scoring and 1 indicates a very high probability. For example, a clear one-on-one chance with the goalkeeper might have a high xG value close to 1, while a long-range speculative shot might have a low xG value closer to 0. An xG value above 0.38 for a specific shot is considered a big chance. For example, a penalty has an average xG of 0.79 to be scored.

Keep in mind that the quality of a player is not accounted for. So, for expected goals, it does not matter if Lionel Messi is the one taking a shot or if the data scientist of Sportmonks takes the shot.
How can I get access to xG Data
You can simply get access by going to MySportmonks and adding the Expected Goal add-on to your subscription. Not yet registered to MySportmonks? Create your account and start with Expected Goals by creating your New Subscription.
How does speed impact the availability of xG values?
The availability of xG values is influenced by the speed of data processing. Since xG calculations require match statistics like shots, there may be a delay before xG values become available. Patience is key as relevant match data is processed to generate accurate xG insights.
How does the reliability of xG values depend on the context of the match?
The reliability of xG values is contingent on various factors, including the context of the match. A nuanced understanding of the game's flow, tempo, and dynamics enhances the interpretation of xG values, providing valuable insights into the scoring probabilities.
What are the numeric values associated with xG?
xG statistics generate numeric values that show the chance of scoring based on the quality of chances created or conceded. These values for one specific player usually range between 0 and 1.5 for a specific fixture. For example, Erling Haaland had an xG value of 1.1634 in the Manchester Derby (18842545). In that fixture, he scored 1 goal in total. Pretty accurate, right? For that same fixture, the xG for both teams was as follows: Manchester City: 3.6439 - Manchester United: 0.3841. As you can see, the xG values are pretty accurate to the actual outcome, which was 3-1. However, Marcus Rashford's wonder strike shows that xG doesn't always tell the full story. He had an xG of 0.3553 for that match but did manage to score 1 goal. Remember: This will not always be the case. You may expect Erlin Haaland to finish a 0,89 chance or to score at least once or twice if he has a total of 3,10 xG. However, that doesn't mean the xG metrics are wrong if he doesn't. xG metrics are just parameters to calculate the quality of a chance or multiple chances. Even if a chance has a 99% chance of resulting in a goal, there is a 1% chance it will not.
What can I use xG Corner/Free Kick/Penalty for?
Of course, we offer xG Open Play and xG Set Play. But if you want to dive deeper into xG Set Play, the metrics xG Corner, xG Free Kick, and xG Penalty will come in handy. These statistics have particular use cases. For example, in the 2023/2024 season, Arsenal scored many goals from set pieces. For some people, it might be very interesting to see if the XG Arsenal generates is higher than the XG for other title contenders (like Manchester City and Liverpool). At the moment of writing, they are only 1 point apart and are numbers one to three in the league standings. As you can imagine, the over- and underperformance of these teams from set pieces might have a small or big influence on the rest of the season. It might be interesting to show which of the set pieces generates the most xG for certain teams and to find out if there are any differences. For one team, free kicks might be way more dangerous (maybe because they have a free-kick specialist), while others have a way higher xG from corners (maybe because they have two giants as centre-backs who join the attack when they have a corner). As you can see, these use cases can be really interesting to get a better understanding of the tactics of specific teams and to find out if a late free kick or corner is actually as interesting as it seems when the whole stadium is cheering to support their team with this late chance to score.
What is the pricing for the xG metrics add-on?
At Sportmonks, we use three types of packages: a basic package, a Standard package, and an Advanced package. In the Basic package, xG per fixture will be available 12 hours post-match. In the Standard package, xG per fixture and xG on Target per Fixture will be available straight after a match. The xG advanced package will have all our xG metrics, including xG per Fixture, xG On Target, Non-Penalty xG, xG Open Play, xG Set Play, xG Corners, xG Free kick, xG Penalty, Expected Points, Expected Points Table, Expected Goals Conceded, Expected Goal difference, Over/Underperformance players, Over/Underperformance team, Expected Goals Saved. The Advanced package has all metrics live.
What is the update frequency for xG values?
xG values are continuously calculated and processed throughout the match, with updates occurring every couple of minutes. The maximum time between these updates should not exceed 5 minutes. Stay informed with real-time insights into evolving goal-scoring probabilities.
What leagues have xG available?
We have a list available in our documentation. Please keep in mind this list is not yet complete, as not all leagues that will have xG available is active. Once leagues like the European Championship have played xG will also be available here.

Time to start using xG

Sportmonks aims to make xG available for everyone. Therefore, it is your time to outshine your competitors. Contact Sportmonks or try for free right away.

Try for free