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.
Choix solide
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.
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (80+ installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where API Stats stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| api | #39 |
| monitoring | >100 |
| performance | >100 |
| API REST | #54 |
| statistiques | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 3 avis
About API Stats
À partir du Lisez-moi officiel · 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.
Traits
- 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.
Journal de modifications
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+
- Testé avec 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
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best API Stats alternatives
Tous les plugins API →FAQ
API Stats: quick answers
Réponses directes, extraites des données en direct WordPress.org.
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).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit



