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

The picker

The picker: a stored copy of a page with everything on it that can be picked, and what the selected thing's selector matches.

Parameters

sitein the address
neededA site's id or name
pathin the address
needed
devicein the address
needed`desktop` or `phone`.
elin the address
neededThe thing on the copy that is selected, by its number.
selectorin the address
neededA selector written by hand, to be counted in place of the selected thing's own.

The answer

Status 200

PickView The picker (AE-06): a stored copy of a page with everything on it that can be picked marked, and the one that is selected.

available
booleanneeded
copy
SnapshotView or null
device
stringneeded
events
list of stringneededThe names of the events the site has sent lately: a click counted as one of them is added to it.
frame
FrameAt or null
pages
list of stringneededThe pages of the site that have a stored copy.
path
stringneeded
picks
list of PickedViewneededWhat is picked on this site already.
reason
stringneeded
selected
PickSelected or null
site
stringneeded

Asking

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