Statistics types
A brief introduction about types
We introduced states and types to ensure data quality and consistency for specific fields. Something has a type when there are multiple variants of a particular variant. Sounds difficult? Let's explain with an example:
Fixture statistics
As you’ve learned in our includes tutorial, you can quickly enrich your request by using includes. You can obtain the statistics for your favourite fixture by adding the &include=statistics to your request. So, for example, the Celtic vs. Rangers fixture:
https://api.sportmonks.com/v3/football/fixtures/18535517?api_tokenYOUR_TOKEN&include=statisticsThis request returns all the match statistics of both teams for the requested fixture. As you might have noticed, you receive a lot of values belonging to different type ids. What does this mean exactly?
Just add the nested &include=statistics.type to receive a textual representation:
https://api.sportmonks.com/v3/football/fixtures/18535517?api_token=YOUR_TOKEN&include=statistics.typeNow you can distinguish between the various match statistics for both teams.
Interested in an overview of all statistics types? Check our statistics types overview page.
See also
Related tutorials
Fixture Statistics - Learn how to retrieve match statistics
Player Statistics - Access individual player stats
Season Statistics - Get league-wide statistics
Team Statistics - Retrieve team performance data
Reference
Statistics Types List - Complete reference of all statistic type IDs and descriptions
Includes Tutorial - Learn how to use nested includes for type data
Best practices
Filter and Select Fields - Filter statistics by specific type IDs
Last updated
Was this helpful?