---
title: "Get Usage"
method: GET
path: "/api/user/usage"
tags: ["Account"]
---

# Get Usage

`GET /api/user/usage`

Get daily usage data for the authenticated user, broken down by AI platform. Returns an array of per-day entries sorted by date ascending.

**SDK Usage:**
```typescript
const usage = await client.getUsage(30);
```

## Query parameters

- `days` integer

## Response `200`

Daily usage data sorted by date ascending

- DailyUsage[]
  - `date` string, date — Date in YYYY-MM-DD format
  - `chatgpt` integer — Number of ChatGPT prompts on this date
  - `claude` integer — Number of Claude prompts on this date
  - `gemini` integer — Number of Gemini prompts on this date

## Other responses

- `401` — Authentication failed or token expired

## Changes

- **2026-08-20** `0e1db3b6bc7c` — 1 breaking, 4 info
  - the `items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - added the optional property `items/chatgpt` to the response with the `200` status
  - added the optional property `items/claude` to the response with the `200` status
  - added the optional property `items/date` to the response with the `200` status
  - …1 more
- **2026-03-07** `f19009a654f5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/privacypal/apis/privacypal-api/changes/api/user/usage/get.md)

---

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