← All FeaturesFeature
API Analytics
Know which API endpoints get the most traffic, where errors concentrate, and how latency changes over time. BetterMeter's Express middleware gives you endpoint analytics in a single line of code — no Datadog or New Relic required.
One-line Express integration
Express middleware
import { BetterMeter } from "@bettermeter/node";
const bm = new BetterMeter({
siteId: "my-api",
apiKey: "bm_...",
});
app.use(bm.expressMiddleware());What you see in the dashboard
- 01 Top endpoints — Ranked by request volume with HTTP method
- 02 Error rates — Percentage of 4xx/5xx responses per endpoint
- 03 Latency — Average response time per endpoint in milliseconds
- 04 Daily trends — Request volume and unique callers over time
- 05 Overall health — Total requests, success rate, and period-over-period change
Privacy by design
Only endpoint patterns, HTTP methods, status codes, and timing are tracked. Request bodies, response bodies, headers, query parameters, and path parameters are never sent. Use endpoint patterns (/api/users/:id) not actual paths.
Not a replacement for APM
BetterMeter API analytics is designed for product-level visibility — which endpoints matter, how usage grows, where errors concentrate. For distributed tracing, profiling, and infrastructure monitoring, use a dedicated APM tool alongside BetterMeter.