---
title: "Get Project Usage"
method: GET
path: "/api/v1/project/usage"
tags: ["project"]
---

# Get Project Usage

`GET /api/v1/project/usage`

Get the usage of a project in the last days

## Query parameters

- `last_days` integer — The number of days to get

## Response `200`

Successful Response

- UsageResponse
  - `data` DailyUsage[], nullable — Response containing the daily usage
    - `date` string, required — The date
    - `total_insert` integer — The total insert
    - `total_success_insert` integer — The total update
    - `total_input_token` integer — The total input token
    - `total_output_token` integer — The total output token
  - `errno` 0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
  - `errmsg` string — Error message, empty when success

## Other responses

- `422` — Validation Error

## Changes

> 31 revisions in range; 1 could not be searched.

- **2025-06-24** `527c3671dad2` — 1 info
  - endpoint added
- **2025-01-15** `a9bfbdf3d53b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/memodb-io/apis/memobase-api/changes/api/v1/project/usage/get.md)

---

[API](https://skmtc.dev/memodb-io/apis/memobase-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/memobase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/memobase-api/revisions/4543f130c8e0/schema)
