Cross-tabulate two dimensions across a population
Returns a pivot table of counts for two categorical dimensions (e.g. state × gender). Requires 'discovery' scope. Provide exactly one of: filters, filter_groups, segment_id, audience_id, or segment_ids + set_logic to define the population (same input shapes as /v1/discovery/count). Sending more than one returns 400 AMBIGUOUS_INPUT; sending none returns 400 NO_INPUT_SPECIFIED. A 400 SAME_FIELD is returned if row_field equals col_field. If you pass a segment, audience, or filter groups, full group/combinator structure is preserved — each segment's own AND/OR groups are evaluated intact, multiple composed segments are combined by set_logic, and an audience's excluded segments are always subtracted (AND NOT), regardless of set_logic. A total population below the 50-record privacy floor returns 422. Individual pivot cells may contain fewer than 50 records when the total population qualifies.
Request
- Base URL: https://api.infiniteaudience.ai
- URL: https://api.infiniteaudience.ai/v1/discovery/crosstab
- Auth: HTTP bearer
Request body
Response
Pivot table result.
Changes
No recorded changes to this operation across all 1 revision of this API.