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

A site's shared figures

A site's shared figures. Nobody signs in: the site's public dashboard is on, or the request carries a private link's key.

Parameters

sitein the address
neededThe site's name
periodin the address
needed`today`, `7d`, `30d` or `12mo`.
keyin the address
neededA private link's key.
passin the address
neededWhat unlocking a link with a password gave.
filterin the address
neededOne row to look at alone: `page:/install`, `source:github.com`, `country:DK`, `device:phone`.

The answer

Status 200

ShareView Everything a shared view shows, and nothing it does not: the parts its owner ticked, from the figures every visitor is in, with small rows folded. No figure here is about a recognised visitor.

browsers
list of ShareShareneeded
caveats
list of CaveatViewneededHow the visitors were counted, in words.
compare
PeriodView or null
countries
SharePanel or null
credit
booleanneeded
devices
SharePanel or null
figures
list of ShareFigureneeded
filter
string or nullThe row looked at alone, as words.
floor
integerneededRows with fewer visitors than this were folded. 0 when its owner turned that off.
follow_theme
booleanneeded
goals
list of ShareGoal or null
grain
stringneeded
notes
list of AnnotationViewneeded
now
integer or nullPeople on the site now. `null` when not shared, or too few to say.
pages
SharePanel or null
panels
list of stringneededThe parts shown.
period
PeriodViewneeded
points
list of Pointneeded
previous
list of Point or null
site
stringneeded
sources
SharePanel or null
systems
list of ShareShareneeded
too_few
booleanneededThe filter would show fewer visitors than the floor: nothing is shown.

Asking

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