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.
Path parameters
project
The project's id (
prj_…).Body
filters
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 fieldsHide fields
dimension
A dimension's name; keyed ones take a key:
props.plan.operator
isis_notcontainsnot_containsstarts_withregexvalues
or
date_range
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 fieldsHide fields
preset
todayyesterday7d30d90dthis_monthlast_monththis_yearallfrom
to
Responses
The groups with their numbers.
data
Show 10 fieldsHide fields
id
The page group's id (
pgg_…).name
pattern
regex
pageviews
visitors
time_on_page
Seconds.
scroll_depth
Percent, 0 to 100.
bounce_rate
Percent, 0 to 100.
exits
Visits whose last page view was in the group.
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.
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.514}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.
| Status | Code |
|---|---|
validation_error | |
clickhouse_not_configured |