Track your LLM Usage

Learn how

How to Export and Analyze Claude Enterprise Usage Data (CSV and Analytics API)

How to export Claude Enterprise usage data: the spend report CSV, the Claude Analytics API, Claude Code analytics and the Compliance API, step by step.
Worklytics dashboard bar chart of Claude tokens per active user per week by department, split by Claude Code, Claude Cowork and Claude.ai (demo data)

The Claude Analytics API is how Claude Enterprise organizations pull usage data into their own warehouse or BI tool: per-user daily activity across chat, projects, Claude Code and Cowork, plus active-user summaries and cost reports. For a one-off export, Owners and Primary Owners can download a per-user CSV spend report from Settings > Analytics. Audit data, including chat content, sits in a separate Compliance API.

This guide walks through each export path step by step, explains which API key you need (they are not interchangeable), covers Claude Code analytics for Claude Console organizations, and shows how to turn the export into adoption and proficiency measurement.

Worklytics measures this across your organization. See Claude Analytics for adoption, AI fluency and cost by team, across Claude, Claude Code and Cowork.

Key takeaways

  • CSV spend report: Settings > Analytics > Export spend report. One row per person per model, with requests, tokens and spend, up to 90 days back, one-day delay.
  • Claude Enterprise Analytics API: per-user daily activity, active-user summaries, project, skill and connector usage, and cost reports. Only the Primary Owner can create the key, which carries the read:analytics scope.
  • Claude Code Analytics API and Usage and Cost API: for Claude Console organizations, using an Admin API key.
  • Compliance API: audit events, chats and files for security and legal teams, with its own Compliance Access Key.
  • None of these compares Claude with Copilot, Gemini or ChatGPT or links usage to your org chart. That is the layer Worklytics adds, using metadata only.

Where Claude usage data lives, and which key you need

Anthropic splits reporting across several surfaces, and each uses a different key created by a different role (Anthropic):

  • Analytics dashboard (claude.ai): charts for adoption, product use and spend, with a CSV spend report export. No key needed.
  • Claude Enterprise Analytics API: engagement, adoption, cost and usage data for Claude Enterprise organizations. Uses an Analytics API key created by the Primary Owner in claude.ai > Organization settings > API.
  • Claude Code Analytics API and Usage and Cost API: part of the Admin API for Claude Console (Claude Platform) organizations. Uses an Admin API key created by an organization admin in the Claude Console.
  • Compliance API: audit activity, chats, files and projects for security, eDiscovery and legal teams. Uses a Compliance Access Key with scoped permissions (Anthropic).

The key types are not interchangeable. An Admin API key cannot call the Claude Enterprise Analytics API, and an Analytics API key cannot call the Admin API. If every analytics call returns an authentication error, check the key type before you debug your code.

How to export Claude Enterprise usage data as a CSV

The CSV is the fastest way to get per-user data and needs no engineering time. Usage analytics are available to Enterprise Owners, Primary Owners and Admins, although Admins cannot see spend (Anthropic). To export the spend report:

  1. Go to Settings > Analytics (click your initials in the lower left corner, then Analytics).
  2. Scroll down to the How much is Claude costing? section.
  3. Click Export spend report.
  4. Select a time period: MTD, Last Month, Last 90 Days or Custom. Custom ranges go back up to 90 days, and the most recent data is from yesterday.
  5. Click Download.
Claude Enterprise admin analytics screen showing active members against assigned seats over a month, with top groups and members

Each row is one person's usage of one model, summed across the date range. The fields are the user's email and account UUID, product (such as Chat, Claude Code, Cowork or Office Agents, which combines the Claude add-ins for Excel, PowerPoint and Word), model and model family, request count, prompt tokens, completion tokens, net spend and gross spend in USD.

Two plan details prevent misreadings. On usage-based Enterprise plans, the export covers your organization's full usage. On seat-based Enterprise plans, the spend report only appears when usage credits are enabled, and it reflects only spend beyond the seat allotment. If your totals look implausibly low, that scope difference is usually the reason.

The dashboard has two more exports worth knowing: the Claude Code leaderboard (pull requests and lines of code) can export users, and each in-product survey under Analytics > Surveys has its own CSV export.

How to pull the data with the Claude Enterprise Analytics API

When the analysis needs to live in a warehouse, refresh on a schedule or join with HR data, use the Claude Enterprise Analytics API. It is available to Claude Enterprise organizations. Engagement and adoption data covers all Enterprise plans, while the cost and usage endpoints apply to usage-based plans (on seat-based plans they reflect usage credits only).

  1. Sign in to claude.ai as the Primary Owner. Only the Primary Owner can enable API access and create Analytics API keys.
  2. Go to Organization settings > API, enable public API access and create an Analytics API key. Keys carry the read:analytics scope. Copy the secret and store it in your secrets manager.
  3. Call endpoints under api.anthropic.com/v1/organizations/analytics/, passing the key in the x-api-key header and the anthropic-version header on every request. For example, the List User Activity endpoint returns per-user activity for one day:

curl "https://api.anthropic.com/v1/organizations/analytics/users?date=2026-10-15" --header "x-api-key: $ANALYTICS_API_KEY" --header "anthropic-version: 2023-06-01"

To get one row per user for a whole period instead of one day, pass starting_date and ending_date (up to 366 days apart) in place of date (Anthropic).

What you get (Anthropic):

  • User activity: per-user daily metrics for chat (conversations, messages, projects, files, artifacts), Claude Code (sessions, commits, pull requests, lines of code, tool actions), Cowork and other Claude products.
  • Activity summaries: daily, weekly and monthly active users, seat counts and pending invites.
  • Project, skill and connector usage.
  • Cost and usage reports: per-user and organization-level tokens and cost over time.

Plan your pulls around freshness. Data starts on January 1, 2026. Engagement and adoption data for a day is typically ready around 13:00 to 13:30 UTC the next day. Cost and usage data usually lands within four hours but can take up to 24, and values can change until about 7 days after the end of the month, so use closed months for invoice-grade totals. The rate limit is 60 requests per minute per organization. Field-level schemas are in the Analytics API reference.

One gap is explicit: if your organization runs Claude Code through Amazon Bedrock, that activity does not appear in the Claude Enterprise Analytics API.

Claude Console organizations: Claude Code Analytics API and Usage and Cost API

If your teams use Claude through the Claude Console (Claude Platform) rather than claude.ai, use the Admin API instead. An organization admin creates an Admin API key on the Admin keys page in the Console.

  • Claude Code Analytics API (/v1/organizations/usage_report/claude_code): one record per user per day with sessions, lines of code added and removed, commits, pull requests, accepted and rejected tool actions, and tokens and estimated cost by model. Data typically appears within an hour (Anthropic).
  • Usage and Cost API (/v1/organizations/usage_report/messages and /v1/organizations/cost_report): token usage by model, workspace and API key, and costs in USD, typically within about 5 minutes (Anthropic).

Claude Code used with a Claude subscription plan (Team or Enterprise) is attributed to the claude.ai organization, so the Admin API does not return it. For Enterprise, use the Claude Enterprise Analytics API above. For a deeper guide to developer metrics, see how to track Claude Code usage.

A Framework for Analyzing the Export: Adoption, Proficiency, Leverage

Raw rows do not answer executive questions; a measurement framework does. Worklytics structures AI adoption measurement in three stages, and the Claude export maps cleanly onto the first two.

Worklytics framework for measuring AI impact in three steps: adoption (uptake), proficiency (impact) and leverage (productivity gains)

The Worklytics three-stage model for measuring AI impact: adoption, proficiency, and leverage.

Adoption asks what share of the team uses AI daily, weekly, or monthly. From the CSV or the activity summaries endpoint, count distinct users with at least one request in the window and divide by assigned seats. This immediately produces the list every admin needs before renewal: seats with zero requests in 90 days. Proficiency asks how deeply active users work with the tool. Requests per active day, token consumption per user, and product mix carry the signal here, because a user logging 40 short Chat requests represents a different maturity level than one whose Claude Code sessions produce commits and pull requests. Leverage asks whether the organization is getting more done with AI than without it, and this is where the export stops. Anthropic reports what happened inside Claude and nothing about output. Answering the leverage question requires joining usage records to calendar, collaboration, and delivery signals, which is the analysis layer Worklytics automates through its productivity measurement capabilities.

What to compare your Claude export against

An adoption rate means little on its own. Three comparisons make it useful:

  • Other AI tools in the same teams. Many employees use more than one AI assistant. A team that looks quiet in Claude may be doing the same work in ChatGPT, Copilot or Gemini, so read a single-vendor export as part of the picture, not all of it.
  • Your own trend. Weekly active users and active days per week matter more as a direction over 8 to 12 weeks than as a single number.
  • Peer organizations. Worklytics peer benchmarking, which places your AI adoption against similar organizations, is available in beta through Worklytics Benchmark.
Table of weekly active users by AI tool, with share of workforce, days per week, uses per active day and 14-week change for tools such as ChatGPT, Gemini, Copilot and Claude

Example: weekly active users by AI tool in a Worklytics sample report. Demo data.

Benchmark chart comparing an organization's AI adoption, weekly usage, unique agents, AI use in meetings and AI use in sales against peer percentiles

Example: AI adoption against peer percentiles in Worklytics Benchmark. Demo data.

Where CSV exports and the Analytics API stop

The native exports are accurate for what they cover, and their limits are structural rather than fixable with better queries.

Worklytics KPI cards: 1.8 AI tools per active user, 3.4 uses per active day, 12% new tool adopters and 54% single-tool users (demo data)

Example: multi-tool AI use in a Worklytics sample report. Demo data.

  1. Vendor-isolated. The data describes Claude and nothing else, while most organizations also pay for Copilot, Gemini or ChatGPT.
  2. Short history in the dashboard. The spend report reaches back 90 days, and API data starts on January 1, 2026. Long-term trends need you to store pulls yourself.
  3. No task classification. The data counts requests, tokens, sessions, skills and connectors, but it does not say whether Claude drafted emails, analyzed data or wrote code outside Claude Code's own metrics.
  4. No organizational hierarchy. Users appear by email, so every department or manager cut depends on a join against your HRIS that you build and maintain.
  5. No outcome linkage. Nothing in the export connects usage to delivery speed, meeting load or collaboration patterns, which is what executives mean when they ask whether Claude is working.

Turning Claude Exports Into Organization-Wide AI Measurement With Worklytics

Worklytics connects to Claude through the Compliance API and the Claude Enterprise Analytics API, and to Claude Code through Anthropic's Admin API usage reporting. It brings that usage together with Copilot, Gemini, ChatGPT Enterprise and coding assistants, resolves every user against your organizational hierarchy, and handles the joins the raw export leaves to you. Three capabilities map onto the gaps above.

Adoption tracking by team and role. The AI adoption dashboard aggregates active use across every connected AI tool and surfaces adoption gaps at the department level rather than as a flat list of email addresses, so enablement budgets target the specific functions where uptake has stalled instead of spreading evenly across the company.

Bar chart of heavy and light AI usage by department, highlighting that sales, marketing and HR have the lowest AI penetration

Worklytics sample report: Sales, HR, and Marketing show the lowest AI penetration, surfacing adoption gaps by department across connected tools.

Work classification. Worklytics automatically classifies AI activity into work categories such as coding, research, analysis, summarization, drafting, and email creation. This converts the export’s token counts into the language leadership actually uses: which workflows AI is accelerating, and where usage remains shallow.

Stacked bar chart of AI task mix by tool, from email and content work in ChatGPT and Copilot to code generation in Cursor and GitHub Copilot

Worklytics insight view: AI usage classified into work categories, showing what each tool is actually used for.

Impact measurement. Pairing classified usage with delivery, collaboration, and calendar signals shows which tools are moving real work forward, which is the evidence a renewal conversation about Claude seats actually needs. Worklytics pairs this with the AI ROI calculator for teams that want to model expected returns before expanding licenses.

Worklytics chart comparing monthly cost with estimated monthly value for each AI tool, including Google Workspace AI, ChatGPT, Microsoft 365 Copilot and Claude (demo data)

Worklytics impact view: monthly cost versus estimated value generated per tool, including Claude.

All of this runs on usage metadata only. Worklytics never stores prompt or completion content, pseudonymizes personal identifiers (hashed with SHA-256) before analysis, and shows results only for groups above a minimum size (typically 5 to 8 people). That keeps the program positioned as measurement rather than surveillance. Engineering leaders who need depth on the coding side can follow the guide to tracking Claude Code usage, and admins comparing the dashboard and Compliance API in more detail should read the full guide to tracking Claude Enterprise usage.

To see these metrics for your own teams, visit Claude Analytics or book a demo.

Frequently asked questions

What is the Claude Analytics API?

The Claude Enterprise Analytics API gives Claude Enterprise organizations programmatic access to per-user daily activity, active-user summaries, project, skill and connector usage, and cost reports. Endpoints live under api.anthropic.com/v1/organizations/analytics/ and use an Analytics API key with the read:analytics scope. Claude Console organizations use the separate Claude Code Analytics API and Usage and Cost API with an Admin API key.

Who can export Claude Enterprise usage data?

Owners and Primary Owners can export the CSV spend report from Settings > Analytics, and Enterprise Admins can view analytics except spend. Only the Primary Owner can enable API access and create an Analytics API key.

How far back does Claude usage data go?

The dashboard spend report reaches back up to 90 days, with the latest data from yesterday. The Claude Enterprise Analytics API has data from January 1, 2026 onward. For longer trends, store the data in your own warehouse or use a platform that keeps the history for you.

Does the Claude export include conversation content?

No. The CSV and the Analytics API return usage metadata such as users, products, models, requests, tokens and cost. Chats, files and audit events are only available through the Compliance API, using a Compliance Access Key created by the Primary Owner or an organization owner.

Can I export Claude Code usage separately?

Yes. The CSV spend report lists Claude Code as its own product, and the Claude Enterprise Analytics API returns Claude Code sessions, commits, pull requests and lines of code per user per day. Claude Console organizations can use the Claude Code Analytics API. Claude Code run through Amazon Bedrock does not appear in the Claude Enterprise Analytics API.

Measure What the Export Cannot

Exporting Claude Enterprise data answers who used Claude and how much. Deciding whether the investment is working requires seeing Claude next to every other AI tool your teams use, by team, benchmarked against peers and connected to productivity outcomes. See how Worklytics measures AI adoption, book a demo to see your Claude data in that context, or request a sample AI adoption report before connecting anything. Not ready for a call? Take the interactive product tour.

Request a demo

Schedule a demo with our team to learn how Worklytics can help your organization.

Book a Demoor take the product tour →