---
title: "Per-day request and error counts for a single frontend"
method: GET
path: "/projects/{id}/frontends/{frontendId}/usage"
tags: ["Frontends"]
---

# Per-day request and error counts for a single frontend

`GET /projects/{id}/frontends/{frontendId}/usage`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/frontends/{frontendId}/usage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns a zero-filled daily series of request counts and 5xx
error counts for one frontend, oldest first. Each entry is one
UTC day; missing days (no traffic recorded) come back as
`requests: 0, errors: 0` so the response always has exactly
`days` entries.

Backs the Monitoring section on the frontend detail page in
the Volcano dashboard. `days` defaults to 30 and is capped at 90 to keep
the (frontend_id, day) index scan bounded.

## Path parameters

- `id` string, uuid, required
- `frontendId` string, uuid, required

## Query parameters

- `days` integer

## Response `200`

Successful response

- FrontendUsageHistoryResponse: Zero-filled daily series of request + error counts for a single frontend, oldest first.
  - `frontend_id` string, uuid, required
  - `days` integer, required: Number of daily entries returned (always equal to the `days` query param after clamping).
  - `daily` FrontendUsageDailyEntry[], required
    - `day` string, date, required: UTC date (YYYY-MM-DD) the counts cover.
    - `requests` integer, required: Total requests served on this day.
    - `errors` integer, required: 5xx responses served on this day.
    - `page_views` integer, required: Navigable-document responses served on this day (text/html or Sec-Fetch-Dest=document) — strict subset of `requests`.
  - `total_requests` integer, required
  - `total_errors` integer, required
  - `total_page_views` integer, required

## Other responses

- `400`: Bad request - invalid identifier
- `401`: Unauthorized - invalid or missing token
- `403`: Forbidden - project ownership required
- `404`: Frontend not found
- `500`: Internal server error

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 8 breaking, 16 info
  - added the new path request parameter `frontendId`
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - …20 more
- **2026-08-27** `bb44e98aba2e`: 17 breaking, 7 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `403`
  - …20 more
- **2026-07-27** `bb52784e098a`: 5 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `403` status
  - added the optional property `code` to the response with the `404` status
  - …1 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/frontends/:frontendId/usage/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
