Skip to content
Website API / Plausible compatibility

Aggregate (Plausible)

GEThttps://<your Reveata origin>/api/v1/stats/aggregate

Plausible's GET /api/v1/stats/aggregate: totals of the chosen metrics for a period, with change when compare=previous_period. site_id is the website's domain. Unsupported metrics, properties and periods answer 400. See the Switch from Plausible guide.

Related: Timeseries (Plausible) and Breakdown (Plausible) in Plausible compatibility.

Try in playground

Request

Query parameters

site_idstringrequired

1–253 characters

periodstringoptional

Up to 16 characters

datestringoptional

Up to 32 characters

fromstringoptional

Up to 10 characters

tostringoptional

Up to 10 characters

metricsstringoptional

Up to 512 characters

filtersstringoptional

Up to 4096 characters

comparestringoptional

Up to 32 characters

Headers

Authorizationstringrequired

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

Response

`{ results: { <metric>: { value, change? } } }` (no envelope).

{
  "openapi": "3.1.0",
  "info": {},
  "paths": {}
}

Response fields

FieldTypeDescription
resultsobject<string, object>