---
title: "Get Usage Data"
method: POST
path: "/v1/usage"
---

# Get Usage Data

`POST /v1/usage`

Get usage data for the authenticated customer including private queries, dashboards,
bytes used/allowed, and billing periods

## Query parameters

- `api_key` string

## Headers

- `X-Dune-Api-Key` string, required

## Request body

- ModelsGetUsageRequest
  - `end_date` string — Optional field in YYYY-MM-DD format
  - `start_date` string — Optional field in YYYY-MM-DD format

## Response `200`

OK

- ModelsGetUsageResponse
  - `billing_periods` ModelsBillingPeriod[]
    - `credits_included` number — Float value
    - `credits_used` number — Float value
    - `end_date` string — YYYY-MM-DD format
    - `start_date` string — YYYY-MM-DD format
  - `bytes_allowed` integer
  - `bytes_used` integer
  - `private_dashboards` integer
  - `private_queries` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
