viakite
Dashboard

API/Reports/Every page group with its numbers

Every page group with its numbers

POST/v1/projects/{project}/analytics/page-groups

Each saved page group of the project with the views, visitors, time on page, scroll depth, bounce rate and exits of the pages that match its pattern, for the range and filters. A page that matches several groups counts for the first one saved. Most viewed first; groups with no views in the range come last, at zero. regex is the pattern as a regular expression on the page, for a page filter with the regex operator that lists the group's pages.

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Body

filtersFilter[]
A dimension matching any of up to 20 values, or or, a list of such filters (not nested). Filters in a list are ANDed; up to 20 in all. goal matches the names of the project's saved goals an event reaches (is_not: none of them); page_group matches the name of the first of the project's saved page groups whose pattern the event's path matches (empty when none does); new_returning is New or Returning.
Show 4 fields
dimensionstring
A dimension's name; keyed ones take a key: props.plan.
operatorstring
isis_notcontainsnot_containsstarts_withregex
valuesstring[]1–20 items
orFilter[]
date_rangeobject
A preset, or from and to as dates (2026-11-01, whole days in the project's time zone, to included) or RFC 3339 times (to excluded). Empty means the last 30 days. A range starting before the first day the plan keeps (retention_days of F47: the last N days, today included, in the project's time zone) starts on that day instead: the answer's date_range shows where it starts, and F1, F2 and the public queries add a range_clamped warning. A range wholly before it is empty.
Show 3 fields
presetstring
todayyesterday7d30d90dthis_monthlast_monththis_yearall
fromstring
tostring

Responses

The groups with their numbers.

dataPageGroupRow[]required
Show 10 fields
idstringrequired
The page group's id (pgg_…).
namestringrequired
patternstringrequired
regexstringrequired
pageviewsnumberrequired
visitorsnumberrequired
time_on_pagenumberrequired
Seconds.
scroll_depthnumberrequired
Percent, 0 to 100.
bounce_ratenumberrequired
Percent, 0 to 100.
exitsnumberrequired
Visits whose last page view was in the group.
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.
Example response
1{
2 "data": [
3 {
4 "id": "id_01JD8Q2M4W9XK3T7B5",
5 "name": "Production",
6 "pattern": "/blog/*",
7 "regex": "^/blog/.*$",
8 "pageviews": 1.5,
9 "visitors": 1.5,
10 "time_on_page": 1.5,
11 "scroll_depth": 1.5,
12 "bounce_rate": 1.5,
13 "exits": 1.5
14 }
15 ],
16 "date_range": {
17 "from": "2026-11-21T09:30:00Z",
18 "to": "2026-11-21T09:30:00Z"
19 }
20}

Errors

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

StatusCode
422validation_error
503clickhouse_not_configured