Count records matching criteria
Returns the number of records matching the given criteria. Counts the bytes scanned toward your organization's compute limit. Requires 'discovery' scope. Provide exactly one of: filters (flat array), filter_groups (compound AND/OR groups), segment_id (a saved segment), audience_id (a saved audience), or segment_ids + set_logic (combine multiple segments). Sending both filters and filter_groups returns 400 AMBIGUOUS_INPUT; sending none returns 400 NO_INPUT_SPECIFIED. Count, lookup, crosstab, and overlap all preserve full group/combinator structure: each included segment's own AND/OR groups are evaluated intact, and an audience's excluded segments are always subtracted (AND NOT), regardless of set_logic.
Request
- Base URL: https://api.infiniteaudience.ai
- URL: https://api.infiniteaudience.ai/v1/discovery/count
- Auth: HTTP bearer
Request body
Response
Record count result.
Example response
{
"groups": [
{
"group_value": "California",
"count": 1200000
},
{
"group_value": "Texas",
"count": 980000
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.