[WordPress] 外掛分享: API Stats

首頁 › 外掛目錄 › API Stats
80+
安裝啟用
★★★★★
5/5 分(3 則評價)
20 天前
最後更新
—
問題解決
WordPress 5.3+ PHP 7.2+ v2.0 上架:2019-08-13

內容簡介

API Stats 是一款專為使用 WordPress REST API 的網站設計的外掛,能夠記錄每一個 API 請求,並提供詳細的統計資料,幫助開發者了解請求頻率、速度及錯誤情況。

【主要功能】
• 記錄所有 REST 路徑請求
• 請求統計圖表,按 HTTP 方法或狀態分類
• 錯誤率、平均及最大回應時間摘要
• 路徑表格,按路徑模式或精確路徑分組
• 快速日期範圍選擇,支持自訂範圍
• 可配置的資料保留設定

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.
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[\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.

延伸相關外掛

文章
Filter
Mastodon