Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Add breakdown property for `timeseries` endpoint

It would be nice to be able to breakdown on a property when querying the timeseries endpoint on the Stats API.

Something like:

curl 'https://plausible.io/api/v1/stats/timeseries?site_id=$SITE_ID&period=6mo&property=site:browser'
  -H "Authorization: Bearer ${TOKEN}"
a year ago

Upvote!

9 months ago

Would totally need this. I’m currently tracking site load speed with props and would like to get the value in a timeseries to show it in a graph.

7 months ago
K

This is now possible with the new v2 stats API: https://plausible.io/docs/stats-api

For breaking down by both month and browser, the following query would work:

{
  "site_id": "your-domain-name.io",
  "metrics": ["visitors", "events"],
  "date_range": "6mo",
  "dimensions": ["time:month", "visit:browser"]
}
4 months ago
K
Changed the status to
Completed
4 months ago