The top 10 pages before and after a page
POST/ v1/ projects/ {project}/ analytics/ journeys
Path parameters
project
The project's id (
prj_…).Body
page
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
compare
previous_period, previous_year, or from and to.Show 3 fieldsHide fields
preset
previous_periodprevious_yearfrom
to
compare_filters
A second segment: the comparison (
compare_before, compare_after) runs these filters instead of filters, over the same range, or over compare's range when both are given. An empty list is every visitor.Show 4 fieldsHide fields
dimension
A dimension's name; keyed ones take a key:
props.plan.operator
isis_notcontainsnot_containsstarts_withregexvalues
or
Responses
The pages before and after.
page
before
Show 2 fieldsHide fields
page
views
after
Show 2 fieldsHide fields
page
views
compare_before
The pages before over the comparison; only when the request has
compare or compare_filters.Show 2 fieldsHide fields
page
views
compare_after
The pages after over the comparison; only with a comparison.
Show 2 fieldsHide fields
page
views
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.
Example response
1{2"page": "/pricing",3"before": [4{5"page": "/pricing",6"views": 1.57}8],9"after": [10{11"page": "/pricing",12"views": 1.513}14],15"compare_before": [16{17"page": "/pricing",18"views": 1.519}20],21"compare_after": [22{23"page": "/pricing",24"views": 1.525}26],27"compare_range": {28"from": "2026-11-21T09:30:00Z",29"to": "2026-11-21T09:30:00Z"30}31}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error |