Match statistics
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.
Request
Response
Field Description
1
https://soccer.sportmonks.com/api/v2.0/fixtures/16475287?api_token={API_TOKEN}&include=stats
Copied!
1
"stats": {
2
"data": [
3
{
4
"team_id": 53,
5
"fixture_id": 16475287,
6
"shots": {
7
"total": 28,
8
"ongoal": 15,
9
"blocked": 6,
10
"offgoal": 13,
11
"insidebox": 18,
12
"outsidebox": 7
13
},
14
"passes": {
15
"total": 670,
16
"accurate": 587,
17
"percentage": 87.61
18
},
19
"attacks": {
20
"attacks": 115,
21
"dangerous_attacks": 55
22
},
23
"fouls": 9,
24
"corners": 11,
25
"offsides": 0,
26
"possessiontime": 80,
27
"yellowcards": 1,
28
"redcards": 0,
29
"yellowredcards": 0,
30
"saves": 1,
31
"substitutions": 4,
32
"goal_kick": null,
33
"goal_attempts": 19,
34
"free_kick": null,
35
"throw_in": null,
36
"ball_safe": 91,
37
"goals": 5,
38
"penalties": 0,
39
"injuries": 0
40
},
41
{
42
"team_id": 338,
43
"fixture_id": 16475287,
44
"shots": {
45
"total": 6,
46
"ongoal": 2,
47
"blocked": 1,
48
"offgoal": 4,
49
"insidebox": 4,
50
"outsidebox": 3
51
},
52
"passes": {
53
"total": 157,
54
"accurate": 85,
55
"percentage": 54.14
56
},
57
"attacks": {
58
"attacks": 70,
59
"dangerous_attacks": 41
60
},
61
"fouls": 9,
62
"corners": 8,
63
"offsides": 2,
64
"possessiontime": 20,
65
"yellowcards": 3,
66
"redcards": 0,
67
"yellowredcards": 0,
68
"saves": 9,
69
"substitutions": 3,
70
"goal_kick": null,
71
"goal_attempts": 7,
72
"free_kick": null,
73
"throw_in": null,
74
"ball_safe": 67,
75
"goals": 1,
76
"penalties": 0,
77
"injuries": 1
78
}
79
]
80
}
Copied!
Stats Field Description
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
insidebox
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
Nothing more, nothing less.

Live Match statistics

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:
1
https://soccer.sportmonks.com/api/v2.0/livescores/now?api_token={API_TOKEN}&include=stats
Copied!
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:
1
https://soccer.sportmonks.com/api/v2.0/livescores/now?api_token={API_TOKEN}&include=stats&leagues=8
Copied!
Export as PDF
Copy link