---
title: "Get usage by site"
method: GET
path: "/api/v1/usage/by-site"
tags: ["Sites"]
---

# Get usage by site

`GET /api/v1/usage/by-site`

## Request

- Base URL: `https://botsee.io`
- URL: `https://botsee.io/api/v1/usage/by-site`
- Auth: HTTP bearer

Returns credit usage grouped by site: per-site totals plus a per-category breakdown.

## Query parameters

- `from` string
- `to` string
- `site_uuid` string

## Response `200`

Successful response.

- object
  - `from` string
  - `sites` object[]
    - `breakdown` object[]
      - `category` string
      - `credits` integer
    - `domain` string
    - `name` string
    - `site_uuid` string
    - `total_credits` integer
  - `to` string

## Other responses

- `401`: Missing, invalid, or revoked API key.
- `403`: Authenticated but lacks permission (e.g. botsee_disabled).
- `404`: The requested resource does not exist or is not accessible.
- `422`: Request body or parameters failed validation.
- `429`: Too many requests. Wait and retry per Retry-After header.

---

[API](https://skmtc.dev/botsee/apis/botsee-api.md) · [All operations](https://skmtc.dev/botsee/apis/botsee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/botsee/apis/botsee-api/revisions/f815b844e73b?raw)
