It’s possible to request statistics per team. This could be really interesting if you want to build a football application showing all the statistics of your favorite team. Requesting team statistics is easy!
Simply, use the team by id endpoint 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 filter to only request the team statistics of the season you’re interested in.
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
Field
Description
id
The unique id of the team
legacy_id
This was for our API version 1.0. It's only of use for old users of our API
name
The name of the team
short_code
The short code of the team
twitter
The official twitter page of the team
country_id
The unique country id the team is from
national_team
Indicates if the team is a national team
founded
The year when the team was founded
logo_path
The logo URL path of the team logo
venue_id
The official venue of the team
current_season_id
The unique id of the season the team is active in
is_placeholder
Added a property on both fixture and team responses called is_placeholder
. This property indicates if the resource is used to display dummy data. The false of this property will always be a boolean
value.
Field
Description
team_id
The unique id of the team
season_id
The id of the season you've requested the stats for
stage_id
The id of the stage the stats belong to
win
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
draw
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
lost
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
goals_for
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
goals_against
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
clean_sheet
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
failed_to_score
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
scoring_minutes
The total number of times the team has scored divided in minute periods
goals_conceded_minutes
The total number of times the team has conceded a goal divided in minute periods
avg_goals_per_game_scored
Opens an array containing information about the average goals the team has scored per game. Divided by total, home and away
avg_goals_per_game_conceded
Opens an array containing information about the average goals the team has conceded per game. Divided by total, home and away
avg_first_goal_scored
Opens an array containing information about the average minute the team has scored the first goal per game. Divided by total, home and away
avg_first_goal_conceded
Opens an array containing information about the average minute the team has conceded the first goal per game. Divided by total, home and away
attacks
The total number of attacks in the requested season and stage
dangerous_attacks
The total number of dangerous attacks in the requested season and stage
avg_ball_possession_percentage
The average ball possession, in percentage % in the requested season and stage
fouls
The total number of fouls in the requested season and stage
avg_fouls_per_game
The total number of fouls per game in the requested season and stage
offsides
The total number of offsides in the requested season and stage
redcards
The total number of red cards in the requested season and stage
yellowcards
The total number of yellow cards in the requested season and stage
shots_blocked
The total number of shots blocked by the opponent in the requested season and stage
shots_off_target
The total number of shots off target in the requested season and stage
avg_shots_off_target_per_game
The average number of shots off target per game in the requested season and stage
shots_on_target
The total number of shots on target in the requested season and stage
avg_shots_on_target_per_game
The average number shots on target per game in the requested season and stage
avg_corners
The average number of corners per game in the requested season and stage
total_corners
The total number of corners in the requested season and stage
btts
The number of times both teams scored in percentage in the requested season and stage
goal_line
The average goal line market in the requested season and stage
avg_player_rating
The average player rating in the requested season and stage
avg_player_rating_per_match
The average player rating per match in the requested season and stage
tackles
The total number of tackles in the requested season and stage