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

What changed

What moved between a period and the one before it, by page and by source.

Parameters

sitein the address
neededA site's id or name
periodin the query
The period; the one before it is what it is compared with
metricsin the query
`visitors` (the default) or `views`

The answer

Status 200

ChangedResponse What changed between a period and the one before it.

before
number or null
caveats
list of CaveatViewneeded
compare
PeriodViewneeded
floor
integerneededA row is listed when it moved by at least `floor`, and by at least one part in `part` of what it was.
groups
list of ChangedGroupneeded
metric
stringneeded`visitors` or `views`.
now
number or null
part
integerneeded
period
PeriodViewneeded
site
stringneeded

Asking

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