analytics

The full metric bundle for a site and window

get/api/stats

Request

  • Base URL: https://app.vitrus.dev/app
  • URL: https://app.vitrus.dev/app/api/stats
  • Auth: one of:
    • API key in cookie vitrus_session
    • HTTP bearer

Query parameters

sitestring required

Site id. Resolved against your access before it reaches any query; a site you cannot read answers 404, byte-identical to one that does not exist.

daysinteger

Window length in days.

Response

Every metric, each with the query behind it.

siteIdstring
windowobject

Example response

{
  "evidence": [
    {
      "id": "e1",
      "metric": "visitors.unique"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.