# Filtering

Some requests (mostly requests that return [collections ](/getting-started/interpreting-the-response/collections.md)and/or take [pagination ](/getting-started/interpreting-the-response/pagination.md)requests) may also accept a filter argument. The structure of this filter will be an object with the key’s being what needs to be filtered, and the value will be the content of the filter.

There are a number of options that may modify the filter behaviour. These are appended to the end of the key to filter. The accepted modifiers are:

* **\_\_CONTAINS**: Return the results that contain the value.
* **\_\_NOTCONTAINS**: Return the results that do not contain the value.
* **\_\_BEGINS**: Return the results that start with the value.
* **\_\_ENDS**: Return the results that end with the value.
* **\_\_LESSTHAN**: Return the results that are less than or equal to the value.
* **\_\_GREATERTHAN**: Return the results that are greater than or equal to the value.
* **\_\_NOT**: Return the results that are not equal to the value.
* **\_\_EMPTY**: Returns results that are empty

If you want to search for ‘Null’ values, you can use the special value ‘**ISNULL**’ for the filter value.

**Example: Filter all the results where the firstName = Bob**

`{"filter":{"firstName":"Bob"}}`

**Example: Filter all results where the firstName starts with ‘M’**

`{"filter":{"firstName__BEGINS":"M"}}`

**Example: Filter all results where the birthDay has not been set**

`{"filter":{"firstName":"__ISNULL__"}}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.ivvy.com/getting-started/interpreting-the-response/filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
