First request changedmanage-claude/usage-cost-api
Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+10added
Lines−10removed
From line
48
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits22to this page, all time
The whole hunk
from line 48, old and new numbered
/
from line 48
4848
4949The APIs you can call, and the key each one takes, depend on which Claude product your organization uses:
5050
51| API | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
52| ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
53| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended) | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) | Analytics API key |
54| Usage and Cost API (legacy), which this page documents | Admin API key or another Admin API credential | Analytics API key |
55| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Not available | Analytics API key |
51| API | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
52| ----- | ----- | ----- |
53| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended) | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) | Analytics API key |
54| Usage and Cost API (legacy), which this page documents | Admin API key or another Admin API credential | Analytics API key |
55| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Not available | Analytics API key |
5656
5757Claude Enterprise parent organizations do not appear in Claude Console and carry no Admin API keys, so for them the Analytics API key is the only path to this data. See [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api) for how to create each key type and which plans the Claude Enterprise cost data applies to.
5858
from line 251
251251
252252### Time granularity limits
253253
254| Granularity | Default limit | Maximum limit | Use case |
255| ----------- | ------------- | ------------- | ---------------------- |
256| `1m` | 60 buckets | 1,440 buckets | Real-time monitoring |
257| `1h` | 24 buckets | 168 buckets | Daily patterns |
258| `1d` | 7 buckets | 31 buckets | Weekly/monthly reports |
254| Granularity | Default limit | Maximum limit | Use case |
255| ----- | ----- | ----- | ----- |
256| `1m` | 60 buckets | 1,440 buckets | Real-time monitoring |
257| `1h` | 24 buckets | 168 buckets | Daily patterns |
258| `1d` | 7 buckets | 31 buckets | Weekly/monthly reports |
259259
260260## Cost API
261261
No line in this hunk matches that.