Run a report for a public page, cacheable at the edge
GET/ v1/ public/ {share}/ query
No sign-in. The body of H10 as JSON in q; the same checks, but no viewer is counted (a page counts its visitor once with F91). The answer of a share without a password, asked for without an Authorization header, comes with Cache-Control: public, max-age=N, s-maxage=N (N up to 60 seconds), so a cache in front of the API may serve it to everyone; other answers are private, and errors no-store.
Path parameters
share
A page's subdomain, id (
shr_…) or active custom domain, or a share token (st_…).Query parameters
q
The query (the body of F1) as JSON, up to 6,000 characters.
Responses
The report.
data
One result row:
time (an ISO time in UTC) when there is a time step, each breakdown dimension by name (text), and each measure by name (a number).compare
One result row:
time (an ISO time in UTC) when there is a time step, each breakdown dimension by name (text), and each measure by name (a number).date_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
compare_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
granularity
The time step used, when there is one.
hourdayweekmonthwarnings
What the numbers leave out. Only present when there is something to say.
Show 4 fieldsHide fields
code
missing_exchange_raterange_clampedmessage
currencies
retention_days
With
range_clamped: the days the plan keeps.Example response
1{2"data": [3{4"key": "string"5}6],7"compare": [8{9"key": "string"10}11],12"date_range": {13"from": "2026-11-21T09:30:00Z",14"to": "2026-11-21T09:30:00Z"15},16"compare_range": {17"from": "2026-11-21T09:30:00Z",18"to": "2026-11-21T09:30:00Z"19},20"granularity": "hour",21"warnings": [22{23"code": "missing_exchange_rate",24"message": "Revenue in AED is left out: there is no exchange rate to INR for it.",25"currencies": [26"AED"27],28"retention_days": 3029}30]31}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
password_required | |
not_shared | |
validation_error | |
bad_request | |
not_found | |
share_expired | |
share_disabled | |
page_over_plan |