---
title: "API and MCP usage: requests per key or anonymous, per endpoint or tool, error rate and latency percentiles"
method: GET
path: "/v1/admin/api-metrics"
tags: ["Admin"]
---

# API and MCP usage: requests per key or anonymous, per endpoint or tool, error rate and latency percentiles

`GET /v1/admin/api-metrics`

## Request

- Base URL: `https://api.fairly.gg`
- URL: `https://api.fairly.gg/v1/admin/api-metrics`
- Auth: API key in header `X-Api-Key`

Parameter: `hours` (1-840, default 24). Hourly buckets in Redis (35 days). `subject` is `k{key id}`, `anon`, `ext` (extension) or `unauth`; no IPs are stored. Latency percentiles are the upper bound of the histogram bucket. MCP calls appear as `mcp:tool:{name}`.

## Response `200`

OK

---

[API](https://skmtc.dev/fairly/apis/fairly-api.md) · [All operations](https://skmtc.dev/fairly/apis/fairly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fairly/apis/fairly-api/revisions/9b21c64dffa2?raw)
