Filtering, Sorting & Fields
List endpoints accept query parameters to filter, sort, shape, and expand the data they return.
Filtering and sorting
The filter and sort parameters take a JSON object expressed in MongoDB Query Language (MQL), passed as a URL-encoded string.
Parameter | Type | Description |
|---|---|---|
|
| JSON object of MQL filter criteria, e.g. |
|
| JSON object of MQL sort criteria, e.g. |
Selecting fields
Parameter | Type | Description |
|---|---|---|
|
| Comma-separated list of fields to include. If provided, |
|
| Comma-separated list of fields to exclude. Defaults to all fields. |
|
| JSON object describing related data to include (populate) in the results. |
Not every list endpoint supports every parameter; check the Parameters table on each resource page for what an endpoint accepts.