Home › Blog › How to Export Your Anthropic Usage and Cost Data

How-to

How to Export Your Anthropic Usage and Cost Data

Anthropic's Usage and Cost Admin API gives you token usage and dollar costs by model, key and workspace. Here's what to pull and why.

Quick answer

Use an Admin API key with GET /v1/organizations/usage_report/messages for tokens and GET /v1/organizations/cost_report for dollars.

Before you start

You need an Admin API key (it starts with sk-ant-admin), which is a different key type from a normal API key. These reports read data; they don't use tokens.

Token usage

GET /v1/organizations/usage_report/messages, grouped by model with daily buckets. Results split into uncached input, cache reads, cache writes (5-minute and 1-hour) and output tokens.

Costs

GET /v1/organizations/cost_report returns daily costs in USD, groupable by description, with model and token type, so you can see what caching saves in dollars.

What to look at

Caveats

These reports cover the Claude API. Traffic through Amazon Bedrock or Google Cloud is billed there and isn't in them.

Then try the Bill X-ray, or read how to cut Anthropic API costs.

Frequently asked questions

How do I get Claude API usage data?

With an Admin API key, call the usage report and cost report endpoints of Anthropic's Usage and Cost Admin API.

Does the Anthropic cost report include Bedrock usage?

No. Claude usage through Amazon Bedrock or Google Cloud is billed and reported by those platforms.

Sources: Anthropic's Usage and Cost API docs. Checked October 30, 2026.

Want us to find your 20%?

Book a free 15-minute API cost teardown. Bring last month's provider usage and we'll show you your biggest waste and the first fix we'd ship.

Get a Free 15-Minute API Cost Teardown

Related