Documentation · API reference
GET
/api/v1/sites/{site}/iconA site's icon
This page as Markdown, or in an AI chatMore ways to read this page
A site's icon: its own, as its pages name it, or its first letter on a tile. Always a picture, so a list never has a hole in it.
# A site's icon
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-icon
`GET /api/v1/sites/{site}/icon`
A site's icon: its own, as its pages name it, or its first letter on a tile. Always a picture, so a list never has a hole in it.
## Parameters
- `site` (in path, needed): A site's id or name
## The answer
200, a file
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sites/example.org/icon \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- sitein the address
- neededA site's id or name
The answer
Status 200, with a file
Asking
curl https://tidekeeper.eu/api/v1/sites/example.org/icon \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/icon", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.text());