Claude Code Analytics API Integration
minware can integrate with Anthropic's Claude Code Analytics API to track Claude Code adoption, productivity, and cost across your organization. It reports daily Claude Code metrics for Claude Console organizations on both API (pay-as-you-go) and Pro/Team plans.
In minware's integration list this appears as Claude (Admin), named for the Admin API key it authenticates with.
This is a different integration from Claude (Enterprise API), which reports claude.ai activity for Claude Enterprise organizations and uses an Analytics API key rather than an Admin API key. The two cover different populations, and you can connect both.
For the most detailed Claude Code data — including per-request token spend and prompt analysis — we recommend the Claude Code Open Telemetry integration. The Analytics API is a good fit when you want daily metrics without asking developers to configure telemetry on their machines.
Prerequisites
You must have organization admin access to your Claude Console organization to create an Admin API key. The Admin API is not available for individual accounts — you need an organization set up in the Claude Console.
Create an Admin API Key
- Go to Claude Console > Settings > Admin keys
- Create a new Admin API key — it begins with
sk-ant-admin - Copy the key
Note: An Admin API key is different from a standard Claude API key, and a standard key will not work for this integration. You can revoke the key at any time from the same page.
Connect in minware
- In minware, go to Settings > Integrations
- Under AI Usage, click Claude (Admin)
- Paste your Admin API key
- Click Add Claude
minware validates the key before saving the integration.
What Gets Ingested
minware ingests one record per user per day, plus a per-model breakdown of that day's activity:
- Number of sessions
- Lines of code added and removed
- Commits created by Claude Code
- Pull requests created by Claude Code
- Tool suggestions offered and accepted, across the Edit, MultiEdit, Write, and NotebookEdit tools
- Input, output, and cache token counts, broken down by model
- Estimated cost, broken down by model
This data feeds minware's AI adoption and AI impact reports, and is queryable via minQL in any custom report.
Anthropic makes each day's metrics available within about an hour of the underlying activity.
Coverage and Limitations
- The Analytics API covers only Claude Code usage on the Claude API. Claude Code run through Claude in Amazon Bedrock, Claude on Google Cloud, Claude in Microsoft Foundry, or Claude Platform on AWS is not reported.
- Usage of your organization's API keys outside of Claude Code is not included.
- Sessions authenticated with an organization API key are reported per API key rather than per person, so a key shared by several people appears as a single actor. Sessions authenticated through a user's Claude account are reported by email address.
- Because the Analytics API reports daily totals, its metrics are day-grain. If you also run the Claude Code Open Telemetry integration, minware uses the more detailed telemetry for days it covers and falls back to the Analytics API totals for days it does not, so the two integrations do not double-count each other.