Directory / plugin
API Stats
v2.0 · by Salar Gholizadeh
View and filter API calls to your website with details about Method, Path, Response time, and Count.
About this plugin
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.