---
title: "Usage stats for your key"
method: GET
path: "/api/keys/usage"
tags: ["keys-hooks"]
---

# Usage stats for your key

`GET /api/keys/usage`

## Request

- Base URL: `https://api.anygas.xyz/svc`
- URL: `https://api.anygas.xyz/svc/api/keys/usage`
- Auth: none declared

Hour + day aggregates and recent calls. Pass the key via the x-anygas-key header or ?key=.

## Query parameters

- `key` string

## Headers

- `x-anygas-key` string

## Response `200`

Usage

- KeyUsage
  - `key` object
    - `label` string
    - `created` integer
  - `hour` object
    - `total` integer
    - `errors` integer
    - `topPaths` object[]
  - `day` object
    - `total` integer
    - `errors` integer
    - `topPaths` object[]
  - `recent` object[]

---

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