Skip to content
Website API / Analytics

List your pinned periods

GEThttps://<your Reveata origin>/api/v1/websites/{website}/period-pins

The periods you pinned on this website, in the order the period picker shows them: presets (last_7d) and fixed ranges (2026-11-27..2026-11-30). saved is false while you never changed them (the defaults are listed). Pass a pin id or its position as pin to the analytics endpoints to use it. Pins are personal.

Related: Overview totals and Time series in Analytics.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the analytics:read scope.

Response

Your pins.

{
  "status": "string",
  "data": {
    "pins": [
      {
        "id": "string",
        "position": 0,
        "period": "realtime",
        "from": "string",
        "to": "string",
        "label": "string"
      }
    ],
    "saved": true
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.pinsobject[]
data.pins[].idstring
data.pins[].positioninteger
data.pins[].periodstring
data.pins[].fromstring | null | null
data.pins[].tostring | null | null
data.pins[].labelstring
data.savedboolean