API Stats
Do you use the WordPress REST API to serve apps, headless front ends or integrations? API Stats records every REST API request to your site and shows you what is being called, how often, how fast, and what fails.
Solid choice
API Stats is a solid plugin choice in 2026, with a few things worth checking first. It runs on 80+ sites, is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (80+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where API Stats stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| api | #39 |
| monitoring | >100 |
| performance | >100 |
| rest-api | #54 |
| statistics | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 3 reviews
About API Stats
From the official readme · v2.0Description
Do you use the WordPress REST API to serve apps, headless front ends or integrations?
API Stats records every REST API request to your site and shows you what is being called, how often, how fast, and what fails.
Features
- Records every REST route: WordPress core, WooCommerce and any other plugin or custom endpoint
- Requests-over-time chart, broken down by HTTP method or by status (2xx / 3xx / 4xx / 5xx)
- Summary of requests, error rate, average and maximum response time
- Routes table grouped by route pattern (e.g.
/wp/v2/posts/(?P<id>[\d]+)) or by exact path, with error counts and timings - Quick date ranges (today, yesterday, 7 and 30 days) or any custom range, with minute / hour / day / week resolution
- Filter everything by route (contains or exact), HTTP method and status (e.g. only errors); click a route to drill down
- Configurable data retention, and a button to delete all recorded data
- Developer hooks to skip requests or attach a readable label to them
Stats are under Tools → API Stats. Data is stored in your own database; nothing is sent anywhere.
You can view this project on GitHub.
Changelog
2.0
- New: redesigned stats page with summary cards, quick date ranges and a sortable routes table
- New: filter the whole page (cards, chart and table) by route, method and status, e.g. “errors only”; active filters are shown as removable chips and kept in the URL
- New: click a route in the table to drill down into it
- New: chart breakdown by status class (2xx/3xx/4xx/5xx) in addition to HTTP method
- New: routes grouped by registered route pattern, so /posts/1, /posts/2, … count as one route (switchable to exact paths)
- New: error counts and maximum duration per route
- New: configurable data retention (0 = keep forever) and a “Delete all data” button; lowering retention asks for confirmation and shows how many events will be deleted
- New: developer filters sg_api_stats_should_record, sg_api_stats_label and sg_api_stats_retention_days
- Fix: event IDs could overflow after about 8.4 million recorded requests, which stopped recording
- Performance: index on the event time column; old events are deleted in batches
- Database schema is upgraded automatically on update
- Chart.js updated from 2.8 to 4.5
1.5
- Security: escape recorded routes and methods on the stats page (fixes stored XSS via crafted REST URLs)
- Security: strictly validate date and point filters; all SQL queries now use prepared statements
- Faster stats page: chart data comes from a single grouped query instead of one query per point
- Fix: date filters now use the site timezone consistently for both the chart and the routes table
- Filters use the URL (GET), so filtered views can be bookmarked and reloaded
- Routes table limited to the top 200 routes
- Uninstalling the plugin now removes its database table, option and scheduled event
- Text domain changed to wp-api-stats to match the plugin slug (enables wordpress.org translations)
- Requires WordPress 5.3+ and PHP 7.2+
- Tested with WordPress 7.1
1.4
- Update plugin description
- Fix Input sanitization
- Add Feature to display size of data stored in database for API events
- Test with WP 6.4.1
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best API Stats alternatives
All api plugins →FAQ
API Stats: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is API Stats free?
Yes. API Stats is free to download and use from the official WordPress.org plugin directory.
Is API Stats safe to use in 2026?
API Stats is a solid plugin choice in 2026, with a few things worth checking first. It runs on 80+ sites, is rated 5/5 and was last updated 2 months ago, and scores 71/100 on our health check.
How many websites use API Stats?
API Stats is active on 80+ WordPress websites and has been downloaded 3,705 times since it launched in August 2019. It was downloaded 246 times in the last 30 days.
Does API Stats work with WordPress 7.1?
Yes. The developer has tested API Stats up to WordPress 7.1.5, the latest release. It requires WordPress 5.3 or newer.
What PHP version does API Stats need?
API Stats requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was API Stats last updated?
The latest version, 2.0, was released on October 11, 2026 (2 months ago).
Who makes API Stats?
API Stats is developed and maintained by Salar Gholizadeh.
What are the best alternatives to API Stats?
The most popular alternatives to API Stats are WP Consent API (300K+ installs), Disable REST API (80K+ installs) and Mailgun for WordPress (70K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



