Get developer analytics metrics
Deprecated. Sunset 2026-06-01. Use GET /api/v2/metrics instead.
After the sunset date this endpoint will return 410 Gone.
Migration notes:
- Method changes from
POSTtoGET; all body fields become query parameters. startDate/endDate→startTime/endTime(still ISO 8601).dimensions: ['HOURLY' | 'DAILY']→granularity=hour | day(use/api/v2/metrics/geofor geo breakdown, no separate dimension required).tenantClientIds: string[](up to 100) →clientId(single value). Issue multiple requests if you need multiple clients.tenantGroupingIds: string[]→groupingId(single value).- Auth header changes: send your Tenant API Key in the
x-zc-api-keyheader instead ofAuthorization: Bearer <key>. The key value and required scope (developer:data:read) are unchanged. The relatedx-tenant-*headers are likewise renamed tox-zc-*(e.g.x-tenant-grouping-id→x-zc-grouping-id).
Returns aggregated ad performance metrics for your tenant over a time range.
Validation Rules:
startDatemust be before or equal toendDateHOURLYandDAILYdimensions are mutually exclusive- Maximum date range: 31 days for
HOURLY, 365 days forDAILYor no time dimension - Maximum 100 items for
tenantClientIdsandtenantGroupingIdsarrays
Authorizations
Legacy auth for the deprecated v1 endpoint. Tenant API Key with developer:data:read scope, sent as Authorization: Bearer <key>. v2 endpoints use the x-zc-api-key header instead.
Body
Start date in ISO 8601 format (e.g., "2026-01-01T00:00:00Z")
End date in ISO 8601 format (e.g., "2026-01-31T23:59:59Z")
Dimensions to group by. Empty array returns overall aggregates. Can combine entity dimensions (TENANT_CLIENT_ID, TENANT_GROUPING_ID) with one time dimension (HOURLY or DAILY). Time dimensions are mutually exclusive.
TENANT_CLIENT_ID, TENANT_GROUPING_ID, HOURLY, DAILY Optional filter by tenant client IDs (max 100 items)
Optional filter by tenant grouping IDs (max 100 items)
Response
Successful response with aggregated metrics and optional time series breakdown
Developer analytics metrics response
Array of groups, each containing dimension values, time series data, and totals