curl -X POST "https://api.dune.com/api/v1/usage" \ -H "Content-Type: application/json" \ -H "X-DUNE-API-KEY: YOUR_API_KEY" \ -d '{ "start_date": "2025-01-01", "end_date": "2025-02-01" }'
{ "private_queries": 100, "private_dashboards": 100, "bytes_used": 1000, "bytes_allowed": 10101, "billingPeriods": [ { "start_date": "2025-01-01", "end_date": "2025-02-01", "credits_used": 100.10, "credits_included": 100000 } ] }
Retrieve customer usage data for billing periods
API Key for the service
API Key, alternative to using the HTTP header X-Dune-Api-Key
Request payload with optional start_date and end_date
Optional field in YYYY-MM-DD format
OK
Show child attributes
Float value
YYYY-MM-DD format
Was this page helpful?