Documentation menuAPI: Journeys

API

Journeys endpoint

This endpoint returns the most common paths visitors take, as lists of pages. Scope: analytics:read. Public sites and private links can call it.

Last updated . This guide belongs to User journeys.

GET /sites/:siteId/journeys

ParameterMeaningDefaultRange
stepsPages in each path32 to 10
limitPaths to return1001 to 500
stepFiltersA JSON object that pins steps to pages

It also takes the shared time parameters, filters and segment_id.

In stepFilters, the key is the step number, starting at 0. The value is a path. * matches one segment and ** matches several.

{ "0": "/", "2": "/blog/**" }

What does the response look like?

{ "journeys": [ { "path": ["/", "/pricing", "/signup"], "count": 57, "percentage": 3.0927 } ] }

count is sessions. The same page twice in a row counts as one stop. Only sessions with at least two different pages are included.