Team statistics
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):
1
https://soccer.sportmonks.com/api/v2.0/teams/3468?api_token={API_TOKEN}&include=stats
Copied!
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).
Request
Response
Field Description
1
https://soccer.sportmonks.com/api/v2.0/teams/3468?api_token={API_TOKEN}&include=stats&seasons=16326
Copied!
1
{
2
"data": {
3
"id": 3468,
4
"legacy_id": 117,
5
"name": "Real Madrid",
6
"short_code": "RMA",
7
"twitter": "@realmadrid",
8
"country_id": 32,
9
"national_team": false,
10
"founded": 1902,
11
"logo_path": "https://cdn.sportmonks.com/images//soccer/teams/12/3468.png",
12
"venue_id": 2020,
13
"current_season_id": 17480,
14
"is_placeholder": false,
15
"stats": {
16
"data": [
17
{
18
"team_id": 3468,
19
"season_id": 16326,
20
"stage_id": 77444988,
21
"win": {
22
"total": 26,
23
"home": 15,
24
"away": 11
25
},
26
"draw": {
27
"total": 9,
28
"home": 4,
29
"away": 5
30
},
31
"lost": {
32
"total": 3,
33
"home": 0,
34
"away": 3
35
},
36
"goals_for": {
37
"total": 70,
38
"home": 40,
39
"away": 30
40
},
41
"goals_against": {
42
"total": 25,
43
"home": 11,
44
"away": 14
45
},
46
"clean_sheet": {
47
"total": 19,
48
"home": 11,
49
"away": 8
50
},
51
"failed_to_score": {
52
"total": 6,
53
"home": 2,
54
"away": 4
55
},
56
"scoring_minutes": [
57
{
58
"period": [
59
{
60
"minute": "0-15",
61
"count": 8,
62
"percentage": 11.4
63
},
64
{
65
"minute": "15-30",
66
"count": 9,
67
"percentage": 12.9
68
},
69
{
70
"minute": "30-45",
71
"count": 13,
72
"percentage": 18.6
73
},
74
{
75
"minute": "45-60",
76
"count": 10,
77
"percentage": 14.3
78
},
79
{
80
"minute": "60-75",
81
"count": 15,
82
"percentage": 21.4
83
},
84
{
85
"minute": "75-90",
86
"count": 15,
87
"percentage": 21.4
88
}
89
]
90
}
91
],
92
"goals_conceded_minutes": [
93
{
94
"period": [
95
{
96
"minute": "0-15",
97
"count": 5,
98
"percentage": 20
99
},
100
{
101
"minute": "15-30",
102
"count": 0,
103
"percentage": 0
104
},
105
{
106
"minute": "30-45",
107
"count": 2,
108
"percentage": 8
109
},
110
{
111
"minute": "45-60",
112
"count": 3,
113
"percentage": 12
114
},
115
{
116
"minute": "60-75",
117
"count": 5,
118
"percentage": 20
119
},
120
{
121
"minute": "75-90",
122
"count": 10,
123
"percentage": 40
124
}
125
]
126
}
127
],
128
"avg_goals_per_game_scored": {
129
"total": 1.84,
130
"home": 2.11,
131
"away": 1.58
132
},
133
"avg_goals_per_game_conceded": {
134
"total": 0.66,
135
"home": 0.58,
136
"away": 0.74
137
},
138
"avg_first_goal_scored": {
139
"total": "42m",
140
"home": "39m",
141
"away": "45m"
142
},
143
"avg_first_goal_conceded": {
144
"total": "52m",
145
"home": "51m",
146
"away": "53m"
147
},
148
"attacks": 4557,
149
"dangerous_attacks": 2466,
150
"avg_ball_possession_percentage": "59.00",
151
"fouls": 476,
152
"avg_fouls_per_game": "12.53",
153
"offsides": 84,
154
"redcards": 4,
155
"yellowcards": 82,
156
"shots_blocked": 19,
157
"shots_off_target": 335,
158
"avg_shots_off_target_per_game": "8.82",
159
"shots_on_target": 229,
160
"avg_shots_on_target_per_game": "6.03",
161
"avg_corners": "5.05",
162
"total_corners": 192,
163
"btts": 44.74,
164
"goal_line": {
165
"over": {
166
"0_5": {
167
"home": 89.47,
168
"away": 89.47
169
},
170
"1_5": {
171
"home": 78.95,
172
"away": 57.89
173
},
174
"2_5": {
175
"home": 47.37,
176
"away": 52.63
177
},
178
"3_5": {
179
"home": 31.58,
180
"away": 26.32
181
},
182
"4_5": {
183
"home": 15.79,
184
"away": 5.26
185
},
186
"5_5": {
187
"home": 5.26,
188
"away": 0
189
}
190
},
191
"under": {
192
"0_5": {
193
"home": 10.53,
194
"away": 10.53
195
},
196
"1_5": {
197
"home": 21.05,
198
"away": 42.11
199
},
200
"2_5": {
201
"home": 52.63,
202
"away": 47.37
203
},
204
"3_5": {
205
"home": 68.42,
206
"away": 73.68
207
},
208
"4_5": {
209
"home": 84.21,
210
"away": 94.74
211
},
212
"5_5": {
213
"home": 94.74,
214
"away": 100
215
}
216
}
217
},
218
"avg_player_rating": 6.81,
219
"avg_player_rating_per_match": 6.82,
220
"tackles": null
221
}
222
]
223
}
224
},
Copied!
Team 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.
Team Stats Field Description
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
A snippet of team stats from the 2020/2021 season of the Spanish La Liga
Export as PDF
Copy link