Get Claude Code Usage Report
Retrieve daily aggregated usage metrics for Claude Code users. Enables organizations to analyze developer productivity and build custom dashboards.
The Admin API is unavailable for individual accounts. To collaborate with teammates and add members, set up your organization in Console → Settings → Organization.
Headers
Your unique Admin API key for authentication.
This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console.
Query Parameters
UTC date in YYYY-MM-DD format. Returns metrics for this single day only.
Number of records per page (default: 20, max: 1000).
1 <= x <= 1000
Opaque cursor token from previous response's next_page
field.
Response
List of Claude Code usage records for the requested date.
True if there are more records available beyond the current page.
Opaque cursor token for fetching the next page of results, or null if no more pages are available.
"page_MjAyNS0wNS0xNFQwMDowMDowMFo="
null