# The Stats API v1 is deprecated

Plausible Analytics API deprecated /api/v1/stats/* without giving a shutdown date yet.

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.

## What to use instead

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.

- API: Plausible Analytics API (plausible.io)
- Kind: Version retirement
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/api/v1/stats/*`
- Source: [Announcement](https://plausible.io/docs/stats-api-v1)
- Verified: October 26, 2026, against Plausible Analytics API's own pages
- Page: https://www.okapi.bot/providers/plausible-analytics-api/breaking-changes/the-stats-api-v1-is-deprecated/

## Plausible Analytics API's words

> This is a legacy feature

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
