Includes
The includes
parameter in the Sportmonks Football API allows you to enrich your API responses by including related resources in a single request. By using includes, you can avoid making multiple API calls to gather related data, making your integrations more efficient and performant.
Overview
When querying an endpoint, you can include additional related data by specifying the include
parameter in your request. This allows you to receive related entities, such as team details, player statistics, and more, all within the same response. The available includes depend on the specific endpoint you're accessing.
Parameter | Required | Description |
---|---|---|
| No | Enrich the API response with more data by using includes. |
Example
Let's say you want to retrieve fixture alongside with the associated teams for that fixture. You can do this by adding the include
parameter to your request:
Nested Includes
Some includes allow you to drill down even further into related data by using nested includes.You can read more on that on this page:
Nested includesLast updated