Documentation · API reference
GET
/api/v1/sites/{site}/snapshotsThe stored copies of a site's pages
This page as Markdown, or in an AI chatMore ways to read this page
The stored copies of a site's pages, and whether this tidekeeper can show them.
# The stored copies of a site's pages
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-snapshots
`GET /api/v1/sites/{site}/snapshots`
The stored copies of a site's pages, and whether this tidekeeper can show them.
## Parameters
- `site` (in path, needed): A site's id or name
## The answer
200, `SnapshotsView`: The stored copies of a site's pages (the page overlay and the picker are drawn on them).
- `available` (boolean, needed): This tidekeeper has somewhere to show a copy.
- `copies` (list of SnapshotView, needed)
- `most` (integer, needed): How many pages of a site are kept.
- `reason` (string, needed): Why not, when not.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sites/example.org/snapshots \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- sitein the address
- neededA site's id or name
The answer
Status 200
SnapshotsView The stored copies of a site's pages (the page overlay and the picker are drawn on them).
- available
- booleanneededThis tidekeeper has somewhere to show a copy.
- copies
- list of SnapshotViewneeded
- most
- integerneededHow many pages of a site are kept.
- reason
- stringneededWhy not, when not.
Asking
curl https://tidekeeper.eu/api/v1/sites/example.org/snapshots \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/snapshots", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());