# Upgrade to the ETHBEAT API ETHBEAT data now comes from a documented API. Every endpoint is described in an OpenAPI 3.1 schema, with Swagger docs where you can try each request in the browser. It replaces the undocumented JSON endpoints under `https://ethbeat.org/api/scaling/`. - [Open the API docs](https://api.ethbeat.org/docs) - [OpenAPI schema](https://api.ethbeat.org/openapi) ## What you get - **Documented end to end.** Swagger docs list every endpoint, parameter and response field. Try a request without writing code. - **An OpenAPI 3.1 schema.** Generate a typed client, or check your own against it, from `https://api.ethbeat.org/openapi`. - **Named fields.** Chart points are objects with named fields, where the old API returned bare arrays of numbers. - **Real HTTP errors.** `404` for an unknown project and `400` for a bad parameter, each with a message. The old API answered `200` for an unknown project, with the error inside the body. - **More data.** Every project ETHBEAT tracks, not only layer 2s and layer 3s. Also project contracts, the TVS history of a single token, TVS split by asset category, and interop protocols and chains. - **Open to everyone.** No API key and no sign-up. Requests are rate limited: over the limit the answer is `429`. ## You have to migrate - Old API stops: 15 December 2026. 00:00 UTC. After that it answers `410 Gone`. - New API: api.ethbeat.org. One host for every endpoint. - Redirects: None. Old paths do not forward to new ones. The upgrade is not a drop-in replacement. The new API names projects by id where the old one used slugs, and its responses have a different shape, so a client has to be changed by hand. This page lists what to change for each endpoint. Until the sunset, every old response carries three headers: `Deprecation` (when the API was deprecated), `Sunset` (when it stops) and `Link` (this page and the new API). ## Old and new endpoints | Old endpoint | New endpoint | | --- | --- | | `/api/scaling/summary` | `/v1/projects` | | `/api/scaling/tvs` | `/v1/tvs` | | `/api/scaling/tvs/{slug}` | `/v1/tvs/{projectId}` | | `/api/scaling/tvs/{slug}/breakdown` | `/v1/project/{projectId}/tokens` | | `/api/scaling/activity` | `/v1/activity` | | `/api/scaling/activity/{slug}` | `/v1/activity/{projectId}` | ## Scheduled test outages In the week before the sunset the old API is switched off for short windows, twice a day, so that nobody learns about the sunset only when it happens. During a window every old endpoint answers `410 Gone` with a JSON body that says when the window ends. Outside the windows it works as usual. The windows are 15 minutes long on the first three days and an hour long on the last four. They move from day to day, so a job that runs at a fixed hour is not always spared. | Day | Windows (UTC) | | --- | --- | | Tue 8 December | 00:00–00:15 and 12:00–12:15 | | Wed 9 December | 05:00–05:15 and 17:00–17:15 | | Thu 10 December | 10:00–10:15 and 22:00–22:15 | | Fri 11 December | 03:00–04:00 and 15:00–16:00 | | Sat 12 December | 08:00–09:00 and 20:00–21:00 | | Sun 13 December | 01:00–02:00 and 13:00–14:00 | | Mon 14 December | 06:00–07:00 and 18:00–19:00 | ## Project ids replace slugs The old API took a project slug, the last part of a project page URL. The new API takes a project id. For most projects the two are the same, but not for all. To look ids up, call [`https://api.ethbeat.org/v1/projects`](https://api.ethbeat.org/v1/projects). Each entry has both `id` and `slug`. Find the entry by the slug you use today and keep its `id`. An unknown id gets `404`. | Project | Slug | Id | | --- | --- | --- | | Arbitrum One | `arbitrum` | `arbitrum` | | OP Mainnet | `op-mainnet` | `optimism` | | ZKsync Era | `zksync-era` | `zksync2` | ## What changes for every endpoint - **No wrapper.** The old API answered `{ "success": true, "data": ... }`, except for `/summary`, which was never wrapped. The new API returns the data itself: an array or an object. - **Errors use HTTP status codes.** For an unknown project the old API answered `200` with `{ "success": false, "error": "..." }`. The new API answers `404` with `{ "message": "..." }`. The chart endpoints also answer `404` for a project that exists but has no data of the kind asked for, and the message says which; `/v1/project/{projectId}/tokens` answers `[]` instead. A bad parameter is a `400` in both, but its text moved from `error` to `message`. - **Chart points are objects.** The old charts were arrays of numbers, explained by a `types` array beside them. The new charts are arrays of objects with named fields. - **Missing data is left out.** The old charts held a row for every timestamp and filled the ones without data with `null`. The new charts have no point there. Read each point by its `timestamp` and do not assume even spacing. - **An empty chart is `[]`.** The old API answered `"Missing data."` in that case. ## Scaling summary: `/api/scaling/summary` Use `https://api.ethbeat.org/v1/projects`, e.g. [https://api.ethbeat.org/v1/projects](https://api.ethbeat.org/v1/projects). The old `projects` was an object keyed by project id, holding active layer 2s and layer 3s only, sorted by TVS. The new response is an array of every project ETHBEAT tracks, archived ones, bridges and other kinds included, in no guaranteed order. To get the old set, keep the entries that have a `layer` field and `isArchived: false`. Passing `isArchived=false` leaves archived projects out for you. ### Fields of one project | Old | New | Notes | | --- | --- | --- | | `id`, `name`, `shortName`, `slug`, `hostChain`, `purposes`, `stage`, `isArchived`, `isUnderReview` | Unchanged | Same name, same value. | | `type` | `layer` | `"layer2"` or `"layer3"`. | | `category` | `type` | E.g. `"Optimistic Rollup"`. Watch out: the new API also has a `category` field, which means something else (the category of a bridge). | | `providers` | `stacks` | | | `badges` | `badges` | Was an array of objects with `id`, `type`, `name`, `description` and `action`. Now an array of the badge names. | | `risks` | `risks` | The same five risks in the same order, each with `name`, `value`, `sentiment`, `description` and `warning`. The Exit Window risk keeps its `regular` field. | | `tvs.breakdown` | `tvs.breakdown` | `total`, `ether`, `stablecoin`, `associated`: same name, same value. Both leave out restricted RWA tokens. A project with no TVS data had a breakdown of zeros; it now has `tvs: null`: unknown, not zero. | | `tvs.change7d` | `tvs.change7d` | Still a fraction (`0.05` is +5%). The old API gave `0` when it could not compute the change; the new one gives `null`. A fall to zero is now `-1`, where the old API gave `0`. | | `tvs.associatedTokens` | `associatedTokens` | Was objects with `symbol` and `icon`, inside `tvs`. Now a top-level array of symbols. | | New | `tvs.timestamp` | The hour the TVS values come from. | | `chart` | Gone | The 30-day chart. It held 30 days of TVS summed over all layer 2s and layer 3s, and the new API has no chart of that sum. The nearest is [`/v1/tvs?range=30d&excludeRwaRestrictedTokens=true`](https://api.ethbeat.org/v1/tvs?range=30d&excludeRwaRestrictedTokens=true), but it sums every project with TVS data, so its numbers are different. | ## Scaling TVS: `/api/scaling/tvs` Use `https://api.ethbeat.org/v1/tvs`, e.g. [https://api.ethbeat.org/v1/tvs](https://api.ethbeat.org/v1/tvs). ### Fields | Old | New | Notes | | --- | --- | --- | | `[timestamp, native, canonical, external, ethPrice]` | `{ timestamp, totalTvs, bySource: { native, canonical, external }, byCategory: { ... }, ethPrice }` | One chart point. `byCategory` is new: the same total split into `stablecoins`, `eth`, `btc`, `other`, `publicRwa` and `restrictedRwa`. `ethPrice` can be `null` when the price is unknown. | | `usdValue` | Gone | It was `native + canonical + external` of the last point that had data. Read `totalTvs` of the last point. | | `ethValue` | Gone | It was `usdValue` divided by the `ethPrice` of the same point. Divide `totalTvs` by `ethPrice` of the last point. When that `ethPrice` is `null`, the value in ETH is unknown: do not divide. | | `chart.syncedUntil` | Gone | It is the `timestamp` of the last point. | ### Differences in the numbers - **It sums more projects.** The old endpoint summed active layer 2s and layer 3s by default. The new one sums every active project with TVS data, which includes projects ETHBEAT does not list under scaling. The total is higher and there is no parameter to narrow it. - **`type` and `projectIds` are gone.** There is no chart for rollups only, or for a list of projects. For one project use `/v1/tvs/{projectId}`. Adding up the charts of several projects is not the same as the old sum: a sum of many projects counts a token bridged from one of them to another once, and each project chart counts it for its own project. - **Restricted RWA tokens are counted by default.** In the old API `excludeRwaRestrictedTokens` defaulted to `true`. In the new one it defaults to `false`. Pass `excludeRwaRestrictedTokens=true` to leave them out, as the old API did by default. - **Parameters.** `excludeAssociatedTokens` works as before and still defaults to `false`. Both parameters now take `true` or `false`; another word is a `400`. `range` takes the same values (`7d`, `30d`, `90d`, `180d`, `1y`, `max`) and still defaults to `30d`. Points are spaced as before: hourly for `7d`, every six hours for `30d` and `90d`, daily for the rest. - **Timestamps with no data are skipped.** The old chart had a row of `null`s for them, and ran on to the present with `null` rows when the data was behind. The new chart ends at its last point with data. - **The first and last points differ.** The old chart started at midnight UTC, the given number of days before the day it ended. The new chart counts the days back from its end hour and starts at the next point of its grid, so it can have up to a day of points fewer at the start. The old chart could also end with one extra point off the grid, which the new one does not have. Match points by `timestamp` before comparing values. ## Project TVS: `/api/scaling/tvs/{slug}` Use `https://api.ethbeat.org/v1/tvs/{projectId}`, e.g. [https://api.ethbeat.org/v1/tvs/arbitrum](https://api.ethbeat.org/v1/tvs/arbitrum). ### Fields | Old | New | Notes | | --- | --- | --- | | `[timestamp, native, canonical, external, ethPrice]` | `{ timestamp, totalTvs, bySource: { native, canonical, external }, byCategory: { ... }, ethPrice }` | One chart point. `byCategory` is new: the same total split into `stablecoins`, `eth`, `btc`, `other`, `publicRwa` and `restrictedRwa`. `ethPrice` can be `null` when the price is unknown. | | `usdValue` | Gone | It was `native + canonical + external` of the last point that had data. Read `totalTvs` of the last point. | | `ethValue` | Gone | It was `usdValue` divided by the `ethPrice` of the same point. Divide `totalTvs` by `ethPrice` of the last point. When that `ethPrice` is `null`, the value in ETH is unknown: do not divide. | ### Differences in the numbers - **Restricted RWA tokens are counted by default.** In the old API `excludeRwaRestrictedTokens` defaulted to `true`. In the new one it defaults to `false`. Pass `excludeRwaRestrictedTokens=true` to leave them out, as the old API did by default. - **Parameters.** `excludeAssociatedTokens` works as before and still defaults to `false`. Both parameters now take `true` or `false`; another word is a `400`. `range` takes the same values (`7d`, `30d`, `90d`, `180d`, `1y`, `max`) and still defaults to `30d`. Points are spaced as before: hourly for `7d`, every six hours for `30d` and `90d`, daily for the rest. - **Timestamps with no data are skipped.** The old chart had a row of `null`s for them, and ran on to the present with `null` rows when the data was behind. The new chart ends at its last point with data. - **The first and last points differ.** The old chart started at midnight UTC, the given number of days before the day it ended. The new chart counts the days back from its end hour and starts at the next point of its grid, so it can have up to a day of points fewer at the start. The old chart could also end with one extra point off the grid, which the new one does not have. Match points by `timestamp` before comparing values. - **More projects answer.** The old endpoint knew only layer 2s and layer 3s. The new one answers for any project with TVS data. - **Archived projects.** A project archived more than 30 days ago has no points in the default range, so the answer is `[]`. Pass `range=max` to get its history. ## Project TVS breakdown: `/api/scaling/tvs/{slug}/breakdown` Use `https://api.ethbeat.org/v1/project/{projectId}/tokens`, e.g. [https://api.ethbeat.org/v1/project/arbitrum/tokens](https://api.ethbeat.org/v1/project/arbitrum/tokens). The docs mark this endpoint as one that may still change. The answer is still one entry per token with a synced value, sorted by its USD value for the project, largest first. ### Fields of one token | Old | New | Notes | | --- | --- | --- | | `id` | `tokenId` | | | `name`, `symbol`, `amount`, `category`, `isAssociated` | Unchanged | Same name, same value. | | `valueForProject.value` | `valueUsd` | | | `priceUsd.value` | `priceUsd` | A plain number. | | `source` | `source` | The old value `"custom-canonical"` is now reported as `"canonical"`. `"canonical"`, `"external"` and `"native"` are unchanged. | | `isGasToken` | `isGasToken` | Always present now. The old API left it out for some projects. | | `address` | `addresses` | Was one address, or the text `"multiple"`. Now an array of `{ address, chain }`, empty when the amount comes from a native balance or a fixed value. | | `syncStatus` | `timestamp` | Was a sentence, present only when the token was behind. Now the hour the values come from, always present. | | `bridgedUsing` | `bridgedUsing` | `null` when there is none. The old API left the field out. | | `valueForProject.change`, `priceUsd.change`, `value`, `formula`, `iconUrl`, `filterable` | Gone | No replacement. The two `change` fields were seven-day changes; `value` was the value before the project-specific rules that avoid double counting. | ### Differences in the numbers - **A project without TVS data.** A project that exists but has no TVS data answers `[]`. The old API answered `"Project not found."`. ## Scaling activity: `/api/scaling/activity` Use `https://api.ethbeat.org/v1/activity`, e.g. [https://api.ethbeat.org/v1/activity](https://api.ethbeat.org/v1/activity). ### Fields | Old | New | Notes | | --- | --- | --- | | `[timestamp, count, uopsCount]` | `{ timestamp, txCount, uopsCount }` | One chart point. `count` is renamed to `txCount`. | ### Differences in the numbers - **Archived projects are left out.** The old default (`type=all`) summed every layer 2 and layer 3 with activity data, archived ones included. The new endpoint sums only active ones, so past days can be lower. - **`type` and `projectIds` are gone.** There is no chart for rollups only, or for a list of projects. Use `/v1/activity/{projectId}` for each project and add the counts up. - **The chart ends at the last synced day.** The old chart ran to the last full day our activity data as a whole had reached, and gave `null` for days it had no records for. The new chart stops at the last day that is synced for at least one project, and a synced day without records is `0`. A project that lags behind adds nothing to the newest days, or only part of its count for the day it is syncing. - **Parameters.** `range` takes the same values (`30d`, `90d`, `180d`, `1y`, `max`) and still defaults to `30d`. There is one point per day, as before. The first day can differ from the old one: the new chart starts at the first day in the range that has any transactions. ## Project activity: `/api/scaling/activity/{slug}` Use `https://api.ethbeat.org/v1/activity/{projectId}`, e.g. [https://api.ethbeat.org/v1/activity/arbitrum](https://api.ethbeat.org/v1/activity/arbitrum). Ethereum is still available: the old slug `ethereum` is the id `ethereum`, so use [`https://api.ethbeat.org/v1/activity/ethereum`](https://api.ethbeat.org/v1/activity/ethereum). ### Fields | Old | New | Notes | | --- | --- | --- | | `[timestamp, count, uopsCount]` | `{ timestamp, txCount, uopsCount }` | One chart point. `count` is renamed to `txCount`. | ### Differences in the numbers - **The chart ends at the last synced day.** The old chart ran to the last full day our activity data as a whole had reached, and gave `null` for the days after the project was last synced. The new chart leaves those days out. Do not read a missing day as zero. - **A project that was never synced.** It answers `[]`. The old API answered `"Missing data."`. - **Parameters.** `range` takes the same values (`30d`, `90d`, `180d`, `1y`, `max`) and still defaults to `30d`. There is one point per day, as before. The first day can differ from the old one: the new chart starts at the first day in the range that has any transactions.