Documentation · API reference
GET/api/v1/sites/{site}/overlay

The page overlay

The page overlay: a stored copy of a page with the clicks each thing on it got, and how far down readers got.

Parameters

sitein the address
neededA site's id or name
pathin the address
neededThe page: `/install`.
devicein the address
needed`desktop` or `phone`.
periodin the address
needed
showin the address
needed`clicks` or `depth`.
elin the address
neededThe thing on the page that is selected, by its number.

The answer

Status 200

OverlayView The page overlay (AE-07, AE-08, ME-07): a stored copy of a page, the clicks each thing on it got, and how far down readers got.

available
booleanneededThis tidekeeper has somewhere to show a copy.
copy
SnapshotView or null
depth
list of OverlayDepthneededHow many readers reached each quarter of the page's height.
depth_on
booleanneededThe site's pages say how far down they were read.
depth_views
integerneededHow many views said how far down they were read.
device
stringneeded
frame
FrameAt or null
links
list of OverlayLinkneededEverything on the page with a count, most clicked first.
links_on
booleanneededThe site counts clicks on its own links.
path
stringneeded
period
PeriodView or null
reason
stringneeded
selected
integer or null
show
stringneeded
site
stringneeded
views
integerneededViews of the page in the period.

Asking

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