Anthropic Claude Code Analytics API

Programmatically access your organization's Claude Code usage analytics and productivity metrics with the Claude Code Analytics Admin API. Track sessions, lines of code, commits, pull requests, and tool usage via the /v1/organizations/usage_report/claude_code endpoint. Provides daily aggregated user-level data with model breakdowns and estimated costs. Requires an Admin API key.