Match statistics
Last updated
Was this helpful?
Last updated
Was this helpful?
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 , we’ve discussed all the different ways to access fixtures.
Now, as you have read in our , you can enrich the API response. If you want statistics, you can add the include stats
.
Let’s say you want the statistics of matches that are currently live. As you can use our to request all the in-play fixtures:
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 . For instance, if you only want all the live matches from the (league id: 8) with stats, you can use this request: