---
title: "Get Project Monthly Usage"
method: GET
path: "/v1/usage/projects/{project_id}/monthly/"
tags: ["Usage"]
---

# Get Project Monthly Usage

`GET /v1/usage/projects/{project_id}/monthly/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/usage/projects/{project_id}/monthly/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `organization:payment`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/usage/projects/:project_id/monthly/get.ts> (a function with typed inputs; its response is checked against the schema)

Get monthly usage for a single project since account opening.

Returns monthly usage for the specified project, read from `token_usage_monthly`.

## Path parameters

- `project_id` string, uuid, required

## Query parameters

- `start_date` string, date, required
- `end_date` string, date, required

## Response `200`

Successful Response

- UsageResponseV1
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `total_records_count` integer, required
  - `total_metrics_count` integer, required
  - `total_observations` integer, required
  - `usage` UsageRowV1[], required
    - `date` string, date, required
    - `records_count` integer, required
    - `metrics_count` integer, required
    - `total_observations` integer, required

## Other responses

- `422`: Validation Error
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
