Query analytics data
Execute an analytics query with specified metrics, dimensions, filters, and time range. Management key required.
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Request
This endpoint expects an object.
metrics
dimensions
filters
granularity
Time granularity
group_limit
Maximum rows per distinct combination of dimensions (ClickHouse LIMIT n BY). When omitted on time-series queries (granularity + dimensions), auto-computed to avoid truncating time windows. Explicit values override the default and may truncate time buckets if set lower than the number of buckets in the range. Ignored when no dimensions are specified.
limit
Maximum total rows returned. Defaults to 1000. On time-series queries with dimensions and no explicit group_limit, the server may raise this to accommodate the expected number of unique time-bucket/dimension combinations.
order_by
time_range
Response
Analytics query results
data
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
408
Request Timeout Error
500
Internal Server Error