Get Claude Code Usage Report
GET/v1/organizations/usage_report/claude_code
Retrieve daily aggregated usage metrics for Claude Code users. Enables organizations to analyze developer productivity and build custom dashboards.
Query Parameters
starting_at: string
UTC date in YYYY-MM-DD format. Returns metrics for this single day only.
limit: optional number
Number of records per page (default: 20, max: 1000).
page: optional string
Opaque cursor token from previous response's next_page field.
Returns
Get Claude Code Usage Report
curl https://api.anthropic.com/v1/organizations/usage_report/claude_code \
-H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_ADMIN_API_KEY"