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}"
Upvote!
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.
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"]
}