---
title: "API Key Usage"
method: GET
path: "/keys/usage"
tags: ["System"]
---

# API Key Usage

`GET /keys/usage`

Get usage statistics for the current API key: today/week/month request counts, rate limit info, and top endpoints by usage.

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `plan` string, nullable
    - `rateLimit` number, nullable
    - `credits` object, nullable
      - `used` number, nullable
      - `remaining` number, nullable
      - `limit` number, nullable
      - `reset` string, nullable
    - `usage` object, nullable
      - `today` number, nullable
      - `week` number, nullable
      - `month` number, nullable
    - `topEndpoints` object[], nullable
      - `endpoint` string, nullable
      - `requests` number, nullable
      - `credits` number, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/529d7d36d7d6/schema)
