One of the most frequently asked questions is: “How can I get match statistics just like below?”.
Please note that above is just a snippet of the match stats we cover.
There are many possible ways, thanks to the flexibility of our API.
As you've seen in our previous tutorials, every fixture has a unique id. Therefore, you can use one of our fixtures by id endpoints, or you can request them by date. In our fixtures tutorial, we’ve discussed all the different ways to access fixtures.
Now, as you have read in our includes tutorial, you can enrich the API response. If you want statistics, you can add the include stats
.
Stats Field Description
Nothing more, nothing less.
Let’s say you want the statistics of matches that are currently live. As you know you can use our livescores/now endpoint to request all the in-play fixtures:
The only thing you need to do is to add the stats
include:
The stats
include will enrich your response with all the match statistics of all games that are currently live.
If you only want to have stats for certain live fixtures, then you can filter. For instance, if you only want all the live matches from the English Premier League (league id: 8) with stats, you can use this request:
In this tutorial, we will go through every option one by one.
Let’s get started.
You've just learnt how you can request match and team statistics. Now, we’re going to request the statistics of one specific player.
For example, below request return the statistics of Robert Lewandowski for his German Bundesliga 2019/2020 season (season id: 16264)
Player Field Description
Player Stats Field Description
You might notice that the stats include on our fixtures/livescores endpoint will only provide you with statistics of the match. But, where are the player statistics? Great question! The player statistics are available via the lineup
include.
The lineup
include will provide you with the starting eleven of both teams. Next to that, each player will also have an array of stats.
For example, below you can view the in-play stats of Marcus Rashford in the Champions League match PSG – United.
If you also want access to stats from players who were substituted later on, you will need to use thebench
include as well.
For example, the request below will return all the team statistics of Real Madrid, but only for the Spanish La Liga 2019/2020 season (season id: 16326).
Team Field Description
Team Stats Field Description
Welcome to the tutorial about statistics. At we have plenty of statistics to offer you, such as match, team, season, player and in-play player statistics.
We recommend you submit your requests with Postman since we have already prepared the request for you there! Hit the button below to import our Football API collection.
For this example, we’ll go with Robert Lewandowski (player id: 31000). The endpoint you'll need to use is our . Just like with the match and team stats, you'll only need to use the stats
include.
Be aware that, just like with the team statistics, this request will give you all the player statistics of the seasons the player has played or is active in. If you only want the player’s statistics of one particular season, you can on it.
As you can see the lineup
include will return all the statistics of the players in the match. Furthermore, we used the nested include.player
to include some basic player information. More information about nested includes can be found in our
It’s possible to request statistics per team. This could be really interesting if you want to build a showing all the statistics of your favorite team. Requesting team statistics is easy!
Simply, use the and once again use the include stats
. For this example, we’ll request the team statistics of Real Madrid (team id: 3468):
Be aware that this request will give you all the team statistics of the seasons the team has played or is active in. Therefore, it might be useful to add a to only request the team statistics of the season you’re interested in.
Field
Description
team_id
The unique id of the team to which the stats belong
fixture_id
A unique fixture id
shots
Opens an array containing the shots statistics
ongoal
The number of shots on goal in a fixture of one team
blocked
The times the opponent has blocked a shot
offgoal
The number of shots off goal in a fixture of one team
insidebox
The number of shots from inside the box (16-meter area) in a fixture of one team
outsidebox
The number of shots from outside the box (16-meter area) in a fixture of one team
passes
Opens an array containing the pass statistics
total
The number of passes in a fixture of one team
accurate
The total accurate passes in a fixture of one team
percentage
The accurate passes (in percentage %) in a fixture of one team
attacks
Opens an array containing the attacks statistics
attacks
The attacks in a fixture of one team
dangerous_attacks
The dangerous attacks in a fixture of one team. A dangerous attack is calculated when the attack almost resulted in a goal.
fouls
The number of fouls committed of one team
corners
The number of corners of one team
offsides
The number of times one team was flagged offside by the (assistant) referee
possesiontime
The number of times one team has had the ball in percentage
yellowcards
The number of yellow cards for one team
yellowredcards
The total times a second yellow card has resulted in a red card for one team
redcards
The total number of red cards for one team
saves
The total number of saves the goalkeeper of one team has made
substitutions
The total number of substitutions of one team
goal_kicks
The number of goal kicks for one team
goal_attempts
The number of goal attempt of one team
free_kick
The number of free kicks for one team
throw_in
The amount of throw ins for one team
ball_safe
This is the number of times the attacking team plays the ball back to their own half.
For example:
Barcelona is on the attack and are on the half of the opposition, but decide to pass the ball back to their own half.
This is ball safe 1.
goals
The number of goals for one team
penalties
The number of penalties for one team
injuries
The number of injuries for one team
Field | Description |
| The unique id of the main player |
| The unique id of the team the player belongs to |
| The unique id of the country the player is from |
| The unique id of the position the player plays in |
| The common name the player is known for |
| The display name of the player. Often used to show in the lineup formation |
| The full name of the player |
| The first name of the player |
| The last name of the player |
| The nationality of the player |
| The date of birth of the player |
| The country the player was born in |
| The place the player was born in |
| The height of the player |
| The weight of the player |
| The URL of the player image |
Field | Description |
| The unique id of the player |
| The unique id of the team the player plays for |
| The unique id of the league the season belongs to |
| The unique id of the season you've requested the stats for |
| The total number of times the player was captain in the requested season |
| The total number of minutes played in the requested season |
| The total number of appearences in the requested season |
| The total number of times the player was included in the lineup in the requested season |
| The total number of times the player was substituted into the field in the requested season |
| The total number of times the player was substituted off the field in the requested season |
| Number of times the player is in the squad, but starts a match on the bench |
| The total number of goals the player has scored in the requested season |
| The total number of own goals the player has scored in the requested season |
| The total number of assists the player has given in the requested season |
| The total number of saves the player has made. (only available for goalkeepers.) |
| The total number of inside the box (the goalkeeper area) saves the player has made. (only available for goalkeepers) |
| The total number of times the player was dispossesed in the requested season |
| The total number of interceptions the player has made in the requested season |
| The total number of yellow cards the player has received in the requested season |
| The total number of yellow-red cards the player has received in the requested season. In other words: if the player received a second yellow card that resulted in a red card. |
| The total number of red cards the player has received in the requested season |
| The season type |
| The total number of tackles the player has made in the requested season |
| The total number of blocks the player has made in the requested season |
| The total number of times the player has hit the woodwork in the requested season |
| The total number of times the player has maintained a clean sheet in the requested season |
| The average player rating in the requested season |
| Opens an array containing information about the fouls committed and drawn in the requested season |
| Opens an array containing information about the crosses the player has made in the requested season. Divided by total and accurate |
| Opens an array containing information about dribbles the player was involved with in the requested season. Divided by attempts, success and the times an opponent dribbled past him |
| Opens an array containing information about the duels the player was involved with in the requested season. Divided by total and won. |
| Opens an array containing information about the passes the player has made in the requested season. Divided by total, accurate and key passes |
| Opens an array containing information about the penalties the player was involved with in the requested season. Divided by won, scored, missed, committed and saved |
Field | Description |
| The unique id of the team |
| This was for our API version 1.0. It's only of use for old users of our API |
| The name of the team |
| The short code of the team |
| The official twitter page of the team |
| The unique country id the team is from |
| Indicates if the team is a national team |
| The year when the team was founded |
| The logo URL path of the team logo |
| The official venue of the team |
| The unique id of the season the team is active in |
| Added a property on both fixture and team responses called |
Field | Description |
| The unique id of the team |
| The id of the season you've requested the stats for |
| The id of the stage the stats belong to |
| Opens an array containing information about the number of times the team won a match in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team has played a match which ended in a draw in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team lost a match in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team has scored a goal in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team has conceded a goal in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team has maintained a clean sheet in the requested season and stage. Divided by total, home and away |
| Opens an array containing information about the number of times the team has failed to score in a match in the requested season and stage. Divided by total, home and away |
| The total number of times the team has scored divided in minute periods |
| The total number of times the team has conceded a goal divided in minute periods |
| Opens an array containing information about the average goals the team has scored per game. Divided by total, home and away |
| Opens an array containing information about the average goals the team has conceded per game. Divided by total, home and away |
| Opens an array containing information about the average minute the team has scored the first goal per game. Divided by total, home and away |
| Opens an array containing information about the average minute the team has conceded the first goal per game. Divided by total, home and away |
| The total number of attacks in the requested season and stage |
| The total number of dangerous attacks in the requested season and stage |
| The average ball possession, in percentage % in the requested season and stage |
| The total number of fouls in the requested season and stage |
| The total number of fouls per game in the requested season and stage |
| The total number of offsides in the requested season and stage |
| The total number of red cards in the requested season and stage |
| The total number of yellow cards in the requested season and stage |
| The total number of shots blocked by the opponent in the requested season and stage |
| The total number of shots off target in the requested season and stage |
| The average number of shots off target per game in the requested season and stage |
| The total number of shots on target in the requested season and stage |
| The average number shots on target per game in the requested season and stage |
| The average number of corners per game in the requested season and stage |
| The total number of corners in the requested season and stage |
| The number of times both teams scored in percentage in the requested season and stage |
| The average goal line market in the requested season and stage |
| The average player rating in the requested season and stage |
| The average player rating per match in the requested season and stage |
| The total number of tackles in the requested season and stage |
Last but not least: we offer season statistics. We calculate a wide range of stats for you like the number of matches, matches played, goals scored, clean sheets, yellow cards, average goals per minute, etc
To request this, you can use our season by id endpoint with the include stats
. The response below will give you all the season statistics of the Bundesliga 2019/2020 ( id: 16264) season.
Season Field Description
Season Stats Field Description
And that rounds up the tutorial about statistics.
Interested in the detailed team or player level? Please note that you can use the below includes to add this information:
stats.topscorer
, stats.assisttopscorer
, stats.mostcleansheetsteam
, stats.mostcleansheetsgoalkeeper
, stats.mostgoalsteam
, stats.mostgoalspermatchteam
, stats.mostconcededgoalsteam
, stats.mostcornersteam
In our next extra tutorial, we’re going to discuss standings.
Field | Description |
| Opens an array of data you've requested |
| A unique season id |
| The name of the season |
| The unique league id the season belongs to |
| Indicates if the season is the current one. Possible values are "true" or "false" |
| The unique id of the current round |
| The unique id of the current stage |
Field | Description |
| The unique season id the stats belong to |
| The unique league id the stats belongs to |
| The number of clubs in the requested season |
| The number of matches in the requested season |
| The number of matches played in the requested season |
| The number of goals in the requested season |
| The number of times both teams scored in a match in the requested season |
| The number of yellow cards in the requested season |
| The number of yellow-red cards in the requested season |
| The number of red cards in the requested season |
| The average goals per match in the requested season |
| The average yellow cards per match in the requested season |
| The average yellow-red cards per match in the requested season |
| The average red cards per match in the requested season |
| The unique team id of the team that scored the most goals in the requested season |
| The number of goals from the team that scored the most goals in the requested season |
| The unique team id of the team that conceded the most goals in the requested season |
| The number of conceded goals from the team that conceded the most goals in the requested season |
| The unique team id of the team that scored the most goals per match in the requested season |
| The number of goals from the team that scored the most goals per match in the requested season |
| The unique player id of the player that scored the most goals in the requested season |
| The number of goals from the player that scored the most goals in the requested season |
| The unique player id of the player that assisted the most goals in the requested season |
| The number of assists from the player that assisted the most goals in the requested season |
| The unique team id of the team that has the most clean sheets in the requested season |
| The number of clean sheets from the team that has the most clean sheets in the requested season |
| The total amount of goals in the season divided in minute periods |
| The unique player id of the goalkeeper that has the most clean sheets in the requested season |
| The number of clean sheets from the goalkeeper that has the most clean sheets in the requested season |
| How many minutes per goal in the requested season |
| The amount of times both teams scored in percentage in the requested season |
| The average goal line market in the requested season |
| The average amount of corners per game in the requested season |
| The number of corners from the team that has the most corners in the requested season |
| The unique team id of the team that has the most corners in the requested season |
| The average amount of goals conceded in the requested season. Divided in all, home and away |
| The average amount of goals scored in the requested season. Divided in all, home and away |
| The average win percentage in the requested season. Divided in all, home and away |
| The average defeat percentage in the requested season. Divided in all, home and away |
| The average draw percentage in the requested season |
| The average amount of home goals per match in the requested season |
| The average amount of away goals per match in the requested season |
| The average player rating in the requested season |