Skip to main content

API Usage

API usage in the Developer Portal header shows developers how their own applications use your APIs, without access to the management console or request logs.

Pick 24h, 7d, 30d or 90d to see, for the signed-in developer's client:

  • Requests in the period.
  • Success rate (2xx responses).
  • Errors, split into client errors (4xx: bad requests, expired credentials, rate limits) and server errors (5xx).
  • Latency (p95), with p50 and p99. Percentiles need MongoDB 7.0 or later.
  • Requests over time, per hour for 24h and per day otherwise (UTC).
  • Endpoints: the ten busiest endpoints with requests, success rate and p95 latency. Endpoints are routes such as /shop/orders/{id}, so calls with different IDs count together; requests that matched no endpoint are listed by path.

The figures come from the gateway request logs, so they cover every request the client's profiles sent, and follow the request log retention. A developer only ever sees their own client's traffic; the API (GET /api/v1/developer-portal/api-usage?days=7) takes the client from the portal session, not from a parameter.