Developer homeGuidesAPI ReferenceAll resourcesChangelog

Statistics API · Domain

Domain statistics

POST /api/statistics/domain/{id}

Returns actual tracked clicks within your plan’s retention window. Reports use UTC. Available periods: today, yesterday, last7, last30, last90, last365, all, custom. Custom reports require ISO startDate and endDate. Intervals: hour, day, week, month. Limit: 1–1000. Columns: country, region, city, path, browser, os, device, social, refhost, utm_source, utm_medium, utm_campaign, language, ab_path. POST reports also support include/exclude objects, for example {"country":["IN"]}; dimension filters require an eligible plan.

Path parameters

Query parameters

No query parameters.

JSON request body

Replace sample IDs and values with your own. Optional fields may be omitted; an example is not a complete schema. The server validates the submitted values.

Request fields

Field names detected from the handler; this list may be incomplete and does not indicate requiredness or types.

period, startDate, endDate, interval, column, limit, offset, include, exclude, tz

Recent requests

This page only. Credentials and responses are not saved.

TimeMethodStatus

Response codes

200 / 201
Read the resource or report; bulk requests can contain item errors.
400
Check IDs, JSON, dates and filters.
401
Check key expiry, revocation and membership.
402 / 403
Check plan, role and key scope.
404
Resource not found in the permitted workspace or domain.
429
Wait for Retry-After and reduce request frequency.

Language

Your key is sent only to this installation when you select Try it.

Response

Run a request to see its response.

Run from your terminal →