---
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

## Changes

- **2026-08-23** `529d7d36d7d6` — 1 warning, 3 info
  - removed the optional property `data/topEndpoints/items/total` from the response with the `200` status
  - added the optional property `data/credits` to the response with the `200` status
  - added the optional property `data/topEndpoints/items/credits` to the response with the `200` status
  - added the optional property `data/topEndpoints/items/requests` to the response with the `200` status

[Change history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/keys/usage/get.md)

---

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