Claude Usage and Cost Analytics API: What Changes for You Anthropic launched the Usage and Cost Analytics API in beta on October 29, 2026, under the analytics-usage-cost-2026-08-24 beta header, replacing six legacy endpoints with two: GET /v1/organizations/analytics/usage and GET /v1/organizations/analytics/cost. The older Usage and Cost API and the Claude Enterprise Analytics API's usage_report, cost_report, user_usage_report and user_cost_report endpoints are now labeled legacy but remain supported, with no removal date published. The new API serves both Claude Console and Claude Enterprise organizations from one integration, but data freshness moves from roughly five minutes to a typical four-hour refresh (up to 24 hours), date ranges are capped at 31 days per request and 365 days back from January 1, 2026, and responses return rows ranked by a metric rather than time buckets, so existing dashboards will not port by renaming a path. Anthropic's platform release notes for October 29, 2026 record two things. The Usage and Cost Analytics API launched in beta, with two endpoints that report token usage and cost for Claude Console and Claude Enterprise organisations, filterable and groupable by model, workspace, API key and the user or service account behind each request. And the older Usage and Cost API, together with the Enterprise Analytics API's usage and cost report endpoints, became legacy. The notes add that all of them remain supported, and no removal date is given. For most readers the practical question is whether anything breaks. Today, nothing does. The reason to act is that the new API is where Anthropic is building, it is the only one that serves Console and Enterprise organisations from the same integration, and its response shape, date limits and freshness guarantee are different enough that a dashboard written against the legacy report will not port by renaming a path. This post works through those differences from the documentation pages as retrieved on November 5, 2026, and ends with a plan. How Claude spend fits with the other vendors' controls is covered in our comparison of AI spend controls and usage caps https://www.digitalapplied.com/blog/ai-spend-controls-compared-usage-caps-2026 . 1. 01Two endpoints replace six legacy endpoints, for both organisation types.GET /v1/organizations/analytics/usage reports token and request counts; GET /v1/organizations/analytics/cost reports cost in USD. Both serve Claude Console organisations with an Admin API key and Claude Enterprise organisations with an Analytics API key. 2. 02The legacy APIs are legacy, not deprecated.Anthropic's release note says the Usage and Cost API and the Enterprise usage report, cost report, user usage report and user cost report endpoints remain supported. No sunset date is published; the word Anthropic uses is legacy. 3. 03Freshness moved from about five minutes to four hours.Anthropic's migration table states the legacy API typically showed data within five minutes; the new API typically refreshes within four hours and can take up to 24, with revisions until about seven days after month end. 4. 04The response is rows ranked by a metric, not time buckets.Each row carries its own period, a group object with the dimensions and a usage or cost object with the metrics. Empty buckets produce no rows, and a time series needs time bucket width plus order by=time. 5. 05Date ranges are capped at 31 days and 365 days back.starting at must be on or after January 1, 2026 and within the last 365 days; a request spans at most 31 days; minute buckets span at most 24 hours. Longer histories are several requests. 01 — The ChangeWhat launched on October 29 , in Anthropic's words. The release notes entry is two bullet points. The first announces the launch: "We've launched the Usage and Cost Analytics API in beta with the analytics-usage-cost-2026-08-24 beta header", naming the two endpoint paths and the dimensions you can filter and group by. The second reclassifies the old surface: the Usage and Cost API is now a legacy API, and so are the four report endpoints of the Claude Enterprise Analytics API, and "All of them remain supported." The notes link to two migration sections, one for each legacy API, which are the basis of sections 06 and 07 below. The documentation page for the new API describes what it is for in four verbs: attribute spend across workspace, key, model, service tier or identity; find top consumers by ranking on tokens, requests or cost; build time series in daily, hourly or per-minute buckets; and integrate once, because the same endpoints, parameters and response fields serve Console and Enterprise organisations. The last of those is the structural change. Previously a company that used both the Claude Platform and Claude Enterprise needed two integrations with two key types and two response formats. Now it needs one integration with two keys. One naming trap is worth clearing at the start. The beta header carries the date 2026-08-24, which is the version of the beta contract, not the launch date; the API launched on October 29. And the word in the release note is legacy, not deprecated. Anthropic uses deprecated for things with a removal date, as it did the next day for fast mode on Opus 4.8, which we cover in a separate post https://www.digitalapplied.com/blog/claude-opus-4-8-fast-mode-ends-november-30 . A legacy API has no such date, and nothing in these pages implies one. Usage and Cost Analytics API Token and request counts, cost in USD, grouped by up to five dimensions and filtered in bracket notation. Serves Claude Console and Claude Enterprise organisations. Usage and Cost API The Console organisation's previous reports. Time-bucketed, oldest first, with empty buckets. Admin API key. No removal date. Enterprise usage and cost reports Four endpoints of the Claude Enterprise Analytics API. Top 100 groups per bucket. Analytics API key. The other Enterprise analytics endpoints are not legacy. 02 — EndpointsWhat the two endpoints return . The usage endpoint returns token counts by type and request counts. Its ranking metric, set with order by, is total tokens by default and can be output tokens, uncached input tokens, requests or time. The cost endpoint accepts the same filters, dimensions and time buckets and returns a cost object per row holding amount, the cost after discounts and before any credits are applied; list amount, the cost at list prices; currency, which is always USD; and requests. Amounts are decimal strings in cents with six decimal places, so the documentation's example of "41280.000000" is $412.80. Two dimensions exist only on the cost endpoint and do not count toward the five-dimension limit: cost type and token type, which split each row by the kind of charge and the kind of token. The quick-start request in Anthropic's documentation is the shape every integration starts from: a date range, a bucket width, a group by and a page size, with the beta header and the version header on every call. The SDK and the ant command-line tool add both headers and fetch the remaining pages as you read, so limit only sets the page size there. curl --globoff "https://api.anthropic.com/v1/organizations/analytics/usage?\ starting at=2026-09-01T00:00:00Z&\ ending at=2026-09-08T00:00:00Z&\ time bucket width=1d&\ group by =model&\ limit=10" \ -H "anthropic-version: 2026-10-21" \ -H "anthropic-beta: analytics-usage-cost-2026-08-24" \ -H "x-api-key: $ANTHROPIC API KEY" That request, copied from Anthropic's quick start, returns one row per model per day for the first week of September. Replace the path with /analytics/cost and add group by =cost type and group by =token type to see the same week as a bill. The failure case to design against is the one the documentation flags for the cost endpoint: because cost type and token type do not count toward limit, a page can hold more rows than limit, so a client that allocates by page size will be surprised. 03 — AccessWho can call it, with which key . Authentication depends on the organisation type, and the key types are not interchangeable. A Claude Console organisation uses an Admin API key or another Admin API credential such as an OAuth token with the org:admin scope, sent as a bearer token rather than in the x-api-key header. A Claude Enterprise organisation uses an Analytics API key with the read:analytics scope, created in claude.ai by the primary owner after the Analytics API has been enabled for the organisation. Anthropic's analytics overview page states the general rule that an Admin API key cannot call the Enterprise Analytics API and an Analytics API key cannot call the Admin API, and names this new API as the one exception: Enterprise organisations call it with their Analytics API key. Two further access notes matter for larger deployments. The Admin API is unavailable for individual accounts, so a solo developer on a personal account cannot use this API at all until an organisation exists. And organisations that reach Claude through a cloud platform have their own paths: on the Claude Platform on AWS, the endpoints are authorised through IAM actions and each request covers only the workspaces in the region of the endpoint called; on Claude Models on Google Cloud under Anthropic management, the usage endpoint needs the usageAnalytics.list permission and the cost endpoint needs costAnalytics.list. The documentation also recommends that a service collecting this data get its own Admin key with an expiry, or better a Workload Identity Federation rule, so there is no long-lived secret to leak. | Source: Anthropic's Usage and Cost Analytics API and Analytics APIs documentation pages, retrieved November 5, 2026. | | | | |---|---|---|---| | Organisation | Credential | Where it is created | Notes from the docs | |---|---|---|---| | Claude Console | Admin API key, or an OAuth token with org:admin scope | Admin keys page in the Claude Console | Unavailable for individual accounts; set an expiry or use Workload Identity Federation | | Claude Enterprise | Analytics API key with read:analytics scope | claude.ai organisation settings, by the primary owner | Rate limit of 60 requests per minute per organisation by default | | Claude Platform on AWS | AWS IAM: ListAccountUsage, ListAccountCost | AWS | One region per request; several identity dimensions are null | | Google Cloud, Anthropic managed | usageAnalytics.list and costAnalytics.list permissions | Google Cloud | Organisation-level base URL | 04 — Response ShapeHow a response is shaped , and why dashboards need rewriting. This is where a port stops being a path rename. In the legacy API, data was a list of time buckets, oldest first and including empty ones, each holding a results list in which dimensions and metrics sat side by side. In the new API every row has three parts: starting at and ending at give the period the row covers, group holds every dimension, and usage or cost holds the metrics. A dimension is null unless you listed it in group by, and group by takes up to five dimensions. Every combination of grouped dimensions that has usage or cost appears exactly once across the pages of a query, and combinations with nothing produce no row. Ordering changed too. Rows come back ranked by the order by metric across the whole range, largest first by default. A time series is opt-in: set time bucket width to 1m, 1h or 1d and order by to time, and rows arrive one bucket after another, newest bucket first unless you pass order=asc, with the largest rows first within each bucket. Buckets with no usage produce no rows, so Anthropic's own instruction is to fill empty buckets with zeros on the client. Filters work alongside grouping: most dimensions have a matching list filter in bracket notation, repeated values within a filter combine with OR, different filters combine with AND, and you can filter by a dimension without grouping by it. The dimension that most changes attribution is actor. It is who a request is attributed to: a user, a service account, a federated cloud identity, or, when none of those is behind the request, the API key itself. Personal and service-account keys act as the identity they are linked to, so their requests show that identity as the actor and the key in api key id; legacy workspace keys appear as both. Requests made without a key, from the Console or with a federated token, have a null api key id. The two filters answer different questions: api key ids matches every request a key authenticated, whoever it is attributed to; actor ids with a key ID matches only requests attributed to the key itself. A finance dashboard that previously summed by key will double-count or under-count if it conflates the two. 05 — FreshnessFreshness: minutes became hours . The one change that can break an operational use rather than a reporting one is freshness. Anthropic's migration table puts the two side by side: on the legacy API, data typically appeared within five minutes; on the new API, data typically refreshes within four hours and can take up to 24 hours. Values can then be revised as late events arrive and reconciliation runs, until about seven days after the end of the calendar month. The documentation's example is that values for October 1 can change until about November 7, and its advice for invoicing-grade totals is to query only months that ended at least seven days ago. Every response carries a data refreshed at timestamp, and usage after that time is missing or partial. For stable results across repeated calls, set ending at at or before a data refreshed at you have already seen; every page of a paginated query reads the same snapshot, so the timestamp is identical across pages. The failure case is a spend-cap job that polled the legacy report every ten minutes and cut off keys on a threshold. On the new API that job is reading data up to a day old and will fire late; a cap that must act within minutes belongs in a gateway or proxy in front of the API, not in a reporting endpoint. Our comparison of subscriptions and usage credits https://www.digitalapplied.com/blog/ai-subscriptions-vs-usage-credits-openai-anthropic-2026 covers where the vendor-side limits sit. | Source: the "Migrate from the Usage and Cost API" table and the "Date ranges and time buckets" and "Data freshness" sections of Anthropic's documentation, retrieved November 5, 2026. | | | |---|---|---| | Limit | Usage and Cost Analytics API | Legacy Usage and Cost API | |---|---|---| | Typical data freshness | Within 4 hours; up to 24 hours | Within about 5 minutes | | Revisions | Until about 7 days after the calendar month ends | Not stated in the migration table | | Earliest starting at | January 1, 2026, and within the last 365 days | Any date range | | Maximum span per request | 31 days; 24 hours with 1m buckets; ending at required with a bucket width | Paged forward by bucket | | Page size | limit counts rows, 1 to 1,000, default 20 | limit counts time buckets | | Unknown key or workspace ID | Matches nothing, including a misspelled model | Returns an error | 06 — Console MigrationMigrating from the Usage and Cost API: what carries over and what does not. Anthropic's migration section for Console organisations lists what carries over: the Admin API key, the anthropic-version header, starting at and ending at, the bucket width values, bracket notation, the pagination field names, and the token and cost field names. Then it tabulates what changes. The beta header is new on every request. bucket width becomes time bucket width and has no default, so an integration that relied on daily rows must now pass 1d explicitly and will get whole-range totals if it does not. limit counts rows instead of buckets. The account and service-account filters become actor ids with the same tagged IDs, and group by moves to actor or actor type. context window becomes context windows. Several silent changes are the ones to test for. The cost report's free-text description grouping is gone, replaced by structured dimensions: model, cost type, token type, context window, service tier, inference geo and speed, all of which fit in one request. The default workspace, previously null, now has its own real workspace ID. Usage with no inference geography or service tier is now null in both fields rather than the strings not available and standard, though the not available filter value still matches those rows. Cost service tier now reports the actual tier rather than only standard or batch, and amounts gain six decimal places and a list amount companion. Code execution, previously absent from the usage report, now appears as usage rows with a null model, and request counts exist on both endpoints. To reproduce the legacy daily report, the documentation's recipe is to request time bucket width=1d with the same group by, page through with limit=1000, group rows by starting at, fill missing days with zeros, and add order by=time and order=asc to get the days in order. That is a client-side change, and it is the whole of the port for a team that only needs the old daily table back. 07 — Enterprise MigrationMigrating the Enterprise reports: the top-100 limit goes away. For Claude Enterprise organisations the legacy surface is the four report endpoints under /v1/organizations/analytics: usage report, cost report, user usage report and user cost report. Anthropic's migration section says these remain supported, and then gives four reasons to move: every group in every time bucket rather than the top 100 groups per bucket; grouping by actor or actor type together with other dimensions on both usage and cost; rows ranked by a metric of your choice or ordered by time bucket; and one integration that also serves Console organisations. The top-100 ceiling is the one most likely to have been silently truncating a large organisation's per-user report. What carries over is longer than for Console: the key, the earliest date, the 365-day lookback and 31-day span, the filter and dimension names and values with two exceptions, the user actor fields, the metric and amount fields, data refreshed at, the cursor rules, and the organisation-level rate limit of 60 requests per minute. The only new header is the beta header. The changes are mostly renames: bucket width becomes time bucket width, ending at becomes required with a bucket width, minute buckets shrink from 31 days to 24 hours per request, user ids becomes actor ids with the same tagged user IDs, and the Claude Tag product value changes from claude-tag with a hyphen to claude tag with an underscore, with the filter accepting either spelling. The per-user reports have the one behavioural change to test. Where user usage report and user cost report returned one row per user, the replacement is group by =actor with actor types =user actor. Without that filter the result also includes rows for non-user identities and a row with a null actor for unattributed usage. And exclude deleted users now requires group by =actor, returns a 400 without it, and drops only rows whose actor is a user marked deleted; rows for other identities and the null-actor row stay. A report that compared the old per-user total with a sum of the new rows will not match unless the filter is applied. 08 — SequenceA migration plan that fits in one sprint . Because nothing is being removed, the migration can be run side by side: keep the legacy job, add the new one, compare for a month that has closed, and then retire the old job. The routing below sorts the common situations by what they actually need from the API. Two housekeeping steps close the sprint. Give the collector its own credential with an expiry or a federation rule, as the documentation recommends, rather than reusing a human's Admin key. And because the API is in beta and its schema may change, pin the SDK version and read the release notes before each upgrade. If you want help building the attribution model itself, so that every Claude request lands on a team and a product, it is part of what our AI transformation engagements https://www.digitalapplied.com/services/ai-transformation cover. 09 — ConclusionLegacy means time to move, not time to panic. Run the new endpoints beside the old reports for one closed month, fix the three shape changes, move any real-time cap out of the API, then retire the legacy job. Anthropic launched the Usage and Cost Analytics API in beta on October 29, 2026 and reclassified the Usage and Cost API and the four Enterprise usage and cost reports as legacy, all of which remain supported with no removal date. The new API's two endpoints serve Claude Console organisations with an Admin API key and Claude Enterprise organisations with an Analytics API key, from one integration. The port is not a path rename. Rows replace time buckets, the actor dimension replaces account and user groupings, the default workspace gains a real ID, several string sentinels become null, and freshness moves from about five minutes to four hours with revisions for a week after month end. Date ranges are capped at 31 days per request and 365 days back. The right order is side by side: add the new job, compare a closed month, move anything that needs minute-level data into a gateway, and only then switch off the legacy report. A beta header and a pinned SDK are the price of being early; a single integration across both organisation types is what it buys.