Documentation · API reference
GET
/api/v1/sites/{site}/stretchesThe stretches of a site left out of comparisons
This page as Markdown, or in an AI chatMore ways to read this page
The stretches of a site left out of comparisons, newest first, the undone among them.
# The stretches of a site left out of comparisons
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-stretches
`GET /api/v1/sites/{site}/stretches`
The stretches of a site left out of comparisons, newest first, the undone among them.
## Parameters
- `site` (in path, needed): A site's id or name
## The answer
200, `A list of StretchView`: A stretch left out of comparisons (the Dialogs board). Its views stay counted and on the chart; what is usual is worked out without them.
- `by` (string, needed): Who vouched for it.
- `from` (integer, needed): Unix seconds.
- `id` (string, needed)
- `made` (integer, needed)
- `says` (string, needed): From when to when, in words, in the site's own time.
- `undone` (integer or null): When it was undone, if it was. It counts again from then.
- `undone_by` (string, needed)
- `until` (integer, needed)
- `why` (string, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sites/example.org/stretches \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- sitein the address
- neededA site's id or name
The answer
Status 200
A list of StretchView A stretch left out of comparisons (the Dialogs board). Its views stay counted and on the chart; what is usual is worked out without them.
- by
- stringneededWho vouched for it.
- from
- integerneededUnix seconds.
- id
- stringneeded
- made
- integerneeded
- says
- stringneededFrom when to when, in words, in the site's own time.
- undone
- integer or nullWhen it was undone, if it was. It counts again from then.
- undone_by
- stringneeded
- until
- integerneeded
- why
- stringneeded
Asking
curl https://tidekeeper.eu/api/v1/sites/example.org/stretches \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/stretches", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());