Syntax and filters
Syntax
The syntax for filtering and including works differently from API V2. The syntax is used across all endpoints: the documentation for each endpoint describes the exceptions regarding exclusions of some fields/relations. Find out everything about the new syntax.
Filters
The filter system changed compared to the previous version. You can now select specific fields on the base entity or includes and itβs possible to filter your request. Below is a fixture shown with events.
As you can see in the response, you will receive all match events. But what if youβre only interested in a specific event like goals, cards or substitutions? You can filter on the specific data you're interested in. The URL now includes a &filters
query parameter that shows the entity you want to filter on and the ID's you want to see in your results.
More information and a more detailed explanation is covered on our request options page.
Select the fields you need
You can request only the fields you need by using the new syntax. Filters can filter the data based on the fields you would like to display in your application.
:
can be used for filtering the fields you want to see in the response. For example, you only want the name of a certain team. In this case you need to use participants:name
.
A more detailed explanation is covered on our request options page
Last updated