Filtering and sorting results can help speed up responses and data collection by allowing you to request only the data you need.
You can refine the results from list endpoints by using filter and sort query parameters. This allows you to request only the data you need and in the order you want it.
These parameters can be combined with each other and with our Pagination parameters for powerful, precise queries.
Filtering Results
To filter a list, use the filter query parameter with a specific field name in square brackets.
Syntax:?filter[parameter_name]=value
There are two types of filters available, depending on the parameter. Each endpoint's documentation will specify which filters are available and what type they are.
Filter Type
Description
Example Use Case
Exact Match
Returns records where the attribute exactly matches the provided value.
Filtering for a specific status, like active users.
Partial Match
Performs a "wildcard" or "contains" search on a text-based field.
Searching for a user by a piece of their name or email.
Example: Filtering by a partial search term
This request will return all users where the searchable fields (like name or email) contain the string "John".