Documentation · API reference
GET/api/v1/share/{site}/count

A page's view count, for a site that chose to show it

A page's view count, for a site that chose to show it. Any page may ask from a browser: it is a number, and it is public.

Parameters

sitein the address
neededThe site's name
pathin the address
needed

The answer

Status 200

PageCount

path
stringneeded
text
stringneeded"read 4,730 times".
views
integerneeded

Asking

With your token from Settings
curl https://tidekeeper.eu/api/v1/share/example.org/count \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/share/example.org/count", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());