viakite
Dashboard

API/Public pages/Run a report for a public page, cacheable at the edge

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.

No key neededapi.vk.viabio.me

Path parameters

sharestringrequired
A page's subdomain, id (shr_…) or active custom domain, or a share token (st_…).

Query parameters

qstringrequired
The query (the body of F1) as JSON, up to 6,000 characters.

Responses

The report.

dataReportRow[]required
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).
compareReportRow[]
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_rangeobjectrequired
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
compare_rangeobject
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
granularitystring
The time step used, when there is one.
hourdayweekmonth
warningsReportWarning[]
What the numbers leave out. Only present when there is something to say.
Show 4 fields
codestringrequired
missing_exchange_raterange_clamped
messagestringrequired
currenciesstring[]
retention_daysinteger
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": 30
29 }
30 ]
31}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
401password_required
403not_shared
422validation_error
400bad_request
404not_found
410share_expired
410share_disabled
402page_over_plan