Documentation · API reference
GET
/api/v1/share/{site}/countA page's view count, for a site that chose to show it
This page as Markdown, or in an AI chatMore ways to read this page
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.
# A page's view count, for a site that chose to show it
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-share-site-count
`GET /api/v1/share/{site}/count`
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
- `site` (in path, needed): The site's name
- `path` (in path, needed)
## The answer
200, `PageCount`
- `path` (string, needed)
- `text` (string, needed): "read 4,730 times".
- `views` (integer, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/share/example.org/count \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
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
curl https://tidekeeper.eu/api/v1/share/example.org/count \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/share/example.org/count", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());