Documentation · API reference
GET
/api/v1/zonesEvery time zone a site can be in
This page as Markdown, or in an AI chatMore ways to read this page
Every time zone a site can be in, with its offset from UTC now, for the time zone picker (doc/polish.md, C1). Nobody signs in to read it.
# Every time zone a site can be in
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-zones
`GET /api/v1/zones`
Every time zone a site can be in, with its offset from UTC now, for the time zone picker (doc/polish.md, C1). Nobody signs in to read it.
## The answer
200, `A list of ZoneView`: A time zone a site can be in, for the time zone picker (doc/polish.md, C1): its IANA name, the place and the region it is named for, and its offset from UTC now.
- `city` (string, needed): `Copenhagen`.
- `name` (string, needed): `Europe/Copenhagen`.
- `offset` (string, needed): `UTC+2`, `UTC+5:30`, `UTC−3`.
- `region` (string, needed): `Europe`; empty for UTC.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/zones \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
A list of ZoneView A time zone a site can be in, for the time zone picker (doc/polish.md, C1): its IANA name, the place and the region it is named for, and its offset from UTC now.
- city
- stringneeded`Copenhagen`.
- name
- stringneeded`Europe/Copenhagen`.
- offset
- stringneeded`UTC+2`, `UTC+5:30`, `UTC−3`.
- region
- stringneeded`Europe`; empty for UTC.
Asking
curl https://tidekeeper.eu/api/v1/zones \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/zones", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());