/api/v1/stats/* → version retirement
Deprecated, no date
Plausible has deprecated the /api/v1/stats/* endpoints without a shutdown date, labeling them a legacy feature. Requests to these paths will eventually fail once the retirement takes effect. This change applies to all callers using the v1 stats endpoints.
Calls it hits
/api/v1/stats/*
What to use instead of these calls
Query stats with the Stats API v2 by sending POST requests to /api/v2/query with a JSON body containing site_id, metrics, date_range, dimensions, and filters.
In Plausible Analytics API's words
This is a legacy feature
Facts
- API
- Plausible Analytics API
plausible.io - Kind
- Version retirement
- Takes effect
- No date given yet
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Plausible Analytics API's own pages
Questions
When does this change take effect?
Plausible Analytics API deprecated /api/v1/stats/* without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: Plausible Analytics API has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.