Documentation · API reference
GET
/api/v1/sites/{site}/importsA site's imports
This page as Markdown, or in an AI chatMore ways to read this page
A site's imports, newest first, the tools tidekeeper reads an export of, and where its own counting starts.
# A site's imports
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-imports
`GET /api/v1/sites/{site}/imports`
A site's imports, newest first, the tools tidekeeper reads an export of, and where its own counting starts.
## Parameters
- `site` (in path, needed): The site's id or name
## The answer
200, `ImportsView`
- `counted_from` (string or null)
- `imports` (list of ImportView, needed)
- `now` (integer, needed)
- `site` (string, needed)
- `sources` (list of ImportSource, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sites/example.org/imports \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- sitein the address
- neededThe site's id or name
The answer
Status 200
ImportsView
- counted_from
- string or null
- imports
- list of ImportViewneeded
- now
- integerneeded
- site
- stringneeded
- sources
- list of ImportSourceneeded
Asking
curl https://tidekeeper.eu/api/v1/sites/example.org/imports \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/imports", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());