Statistics types
A brief introduction about types
Hint: you can request all possible types with their unique id via the types endpoint: https://api.sportmonks.com/v3/core/types?api_token=YOUR_TOKEN
Fixture statistics
This 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:
Now you can distinguish between the various match statistics for both teams.
Including .type
is not recommended as an include on any endpoint. Types are used throughout the entire API. We recommend retrieving all types from the types endpoint and storing them in your database or other data structure. Only include the type if no other option is available or when testing the API.
With this in mind, dive into one of our statistics tutorials:
Last updated