Execute an analytics query
Analytics
Execute an analytics query
POST
Execute an analytics query
Body
application/json
Minimum array length:
1Required range:
1 <= x <= 10000Required range:
x >= 1Available options:
sessions, pages, goals When set, enables "filtered totals" mode for queries with no dimensions. The query will:
- Group by these dimensions in an inner subquery
- Apply metricFilters via HAVING clause
- Aggregate the filtered results in an outer query
Use this for totals that should respect metricFilters. Example: Get total sessions where bounce_rate > 50%, grouped by landing_path.
Response
200 - application/json
The response is of type object.