Overview
The Cevoid API supports filtering to help you retrieve specific subsets of data from your requests. Filters allow you to narrow down results based on criteria such as label associations, making it easier to work with targeted datasets.Filter Structure
Filters are passed as a URL-encoded JSON string containing an array of filter objects. Each filter object must include three required fields:type
: The type of filter to applyoperator
: How to combine multiple valuesvalues
: Array of IDs to filter by
Supported Filter Types
label
: Filter posts by their associated labels
Supported Operators
OR
: Returns posts matching any of the provided valuesAND
: Returns posts matching all of the provided values
Basic Filtering
Filter by Single Label
Filter by Multiple Labels (OR)
Returns posts that have at least one of the specified labels:Filter by Multiple Labels (AND)
Returns posts that have all of the specified labels:Common Errors
Invalid JSON Format
Invalid ID Format
Unsupported Filter Type
label
is supported as a filter type.
Unsupported Operator
OR
and AND
operators are supported.
Missing Required Fields
type
, operator
, and values
fields.
Invalid Array Structure
values
field must be an array of IDs.
Filter Best Practices
Getting Label IDs
To use label filters, you’ll need the unique ID for each label:- Log in to your Cevoid account
- Navigate to Settings → Labels
- Find the label you want to filter by
- Copy the label ID (shown as a 24-character string)
You can find your labels at: https://app.cevoid.com/settings/labels
Important Considerations
Always URL-encode your filter parameter when making requests. Invalid JSON format or incorrectly formatted IDs will result in 400 errors.