Documentation · API reference
GET/api/v1/sites/{site}/paths

What came before and after a page or an event

What came before and after a page or an event.

Parameters

sitein the address
neededA site's id or name
fromin the query
page:/a/path or event:a name
reachin the query
visit or visitor
stepsin the query
1 to 3
periodin the query
30d when left out

The answer

Status 200

PathsReport

after
list of PathRowneeded
before
list of PathRowneeded
choices
list of stringneededThings paths can start from: the site's busiest pages and events.
coverage
Coverageneeded
from
stringneededWhat the paths start from, in words.
period
PeriodViewneeded
reach
stringneeded`visit` or `visitor`.
routes
list of RouteRowneededThe commonest whole routes to it.
site
stringneeded
steps
integerneeded
visitors
integerneededVisitors who did it in the period.

Asking

With your token from Settings
curl https://tidekeeper.eu/api/v1/sites/example.org/paths \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/paths", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());