---
title: "Get All Projects Daily Usage"
method: GET
path: "/v1/usage/projects/daily/"
tags: ["Usage"]
---

# Get All Projects Daily Usage

`GET /v1/usage/projects/daily/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/usage/projects/daily/`
- 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/daily/get.ts> (a function with typed inputs; its response is checked against the schema)

Get daily usage for all projects in the organization (up to 90 days).

Returns daily usage broken down by project. Each row is one `(date, project)` pair.
Read from `token_usage_rollup`. Supports pagination via `limit` and `offset`.

## Query parameters

- `start_date` string, date, required
- `end_date` string, date, required
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- PaginatedProjectsUsageResponseV1
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `total` integer, required
  - `usage` ProjectUsageRowV1[], required
    - `date` string, date, required
    - `project_id` string, uuid, required
    - `project_name` string, 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)
