Documentation · API reference
GET
/api/v1/sites/{site}/changedWhat changed
This page as Markdown, or in an AI chatMore ways to read this page
What moved between a period and the one before it, by page and by source.
# What changed
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-changed
`GET /api/v1/sites/{site}/changed`
What moved between a period and the one before it, by page and by source.
## Parameters
- `site` (in path, needed): A site's id or name
- `period` (in query): The period; the one before it is what it is compared with
- `metrics` (in query): `visitors` (the default) or `views`
## The answer
200, `ChangedResponse`: What changed between a period and the one before it.
- `before` (number or null)
- `caveats` (list of CaveatView, needed)
- `compare` (PeriodView, needed)
- `floor` (integer, needed): A 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 ChangedGroup, needed)
- `metric` (string, needed): `visitors` or `views`.
- `now` (number or null)
- `part` (integer, needed)
- `period` (PeriodView, needed)
- `site` (string, needed)
## Asking
```sh
curl -G https://tidekeeper.eu/api/v1/sites/example.org/changed \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
-d period=7d
```
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
curl -G https://tidekeeper.eu/api/v1/sites/example.org/changed \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \ -d period=7d
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());