Documentation · API reference
GET/api/v1/sites/{site}/stats.csv

Figures for a period, as CSV

The same answer as comma-separated text: any panel as a file (RP-04). Who took what out is written down.

Parameters

sitein the address
neededA site's id or name

The answer

Status 200, with a file

Asking

With your token from Settings
curl -G https://tidekeeper.eu/api/v1/sites/example.org/stats.csv \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -d metrics=visitors,views -d by=page -d period=30d
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/stats.csv?metrics=visitors,views&by=page&period=30d", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.text());