Skip to main content
Filter the results the API returns using its query language.
To check whether a specific endpoint accepts filters, see the API Reference documentation.

Supported filter operators

The API query language supports comparison, logical, and grouping operators. For example, rather than requesting a list of every user in your company, you can use a comparison operator to request only users with a particular name. The following tables show the different types of operators you can use to filter results.

Comparison operators

Logical operators

Grouping operators

Filter query formatting

Depending on the data type you are filtering by, you may need to wrap your query in quotation marks. The following table outlines when quotation marks are required.

Example API calls

The following examples show how to add filter operators to API calls. Filters contain spaces and quotation marks, so they must be URL-encoded. The -G and --data-urlencode options tell cURL to encode the filter and append it to the URL as a query parameter. This example returns all SIMs with a line rental fee of 1,000:
This example returns all SIMs with a line rental fee greater than 1,000:
This example returns all SIMs on the My Operator Global rate plan, or the My Operator Europe rate plan: