# Etherscan API V2: key, chainid, free limits and errors

URL: https://fincodelabs.com/en/blog/etherscan-api · Publisher: Fincode (Fincode Yazılım ve Teknoloji A.Ş.), Istanbul, Turkey · Category: Exchange APIs · Published: 2026-11-27 · Updated: 2026-11-27

Etherscan API V2 as read 26 Nov 2026: one key and a chainid for 55 chains, free tier 3 calls/s and 100,000/day, paid-only chains, errors, tested Python.

**Short answer:** The **Etherscan API** is now a single V2 endpoint, `https://api.etherscan.io/v2/api`, where one Etherscan key and a `chainid` parameter select any of 55 supported chains. As read on 26 November 2026, the free tier allows 3 calls per second and up to 100,000 calls a day on 45 of those chains; Base, BNB Smart Chain, OP Mainnet, Avalanche C-Chain and six other chains need a paid plan. Old V1 URLs, including api.basescan.org, now return a deprecation error.

Most broken Etherscan integrations fail because they call a V1 URL, use another explorer's key, or query a chain the free tier no longer covers. Every figure below comes from docs.etherscan.io and the pricing page, read on 26 November 2026, and every error string marked live was returned by the API that day.

This is a technical guide to a block explorer's data API. It is not a recommendation of any service, token or strategy. Etherscan is not an exchange, and nothing here involves trading.

## Etherscan API V2: one endpoint, one key, a chainid

Every V2 request goes to the same base URL and names its chain with `chainid`; the rest of the query (`module`, `action` and their parameters) is unchanged from V1.

- **Base URL:** `https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&address=...&tag=latest&apikey=...`, as on the Make Your First Call page.
- **One chain per call.** The error page says you can send only one `chainid` at a time; a list such as `420, 10` fails.
- **Chain list without a key.** `GET https://api.etherscan.io/v2/chainlist` returned `"totalcount": 55` on 26 November 2026, with a `comment` of "Free-tier available" for 45 chains and "Paid Plan required" for 10.
- **Response shape.** `status` is `"1"` and `message` is `OK` on success; on error `status` is `"0"`, `message` is `NOTOK` and `result` holds the cause. Amounts come back as strings in the smallest unit (wei for ETH).

Two dated changes were pending on 26 November 2026: Abstract Mainnet (2741) loses API support on 30 November 2026, and HyperEVM Mainnet (999) moves to Lite and above on 1 December 2026, except its source code and ABI endpoints.

## Etherscan API V2 migration: V1 and Basescan keys

V1 is gone: Etherscan announced on 30 July 2025 that API V1 would be fully deprecated by 15 August 2025, and old URLs now return an error instead of data.

On 26 November 2026 both `https://api.etherscan.io/api?module=account&action=balance...` and `https://api.basescan.org/api?...` answered with HTTP 200 and the result `You are using a deprecated V1 endpoint, switch to Etherscan API V2 using https://docs.etherscan.io/v2-migration`. The migration link in that message now redirects (HTTP 308) to the documentation's introduction page. The change itself is small:

**Moving a V1 call to V2 (docs and live responses, 26 November 2026)**

| V1 | V2 |
| --- | --- |
| `https://api.etherscan.io/api` | `https://api.etherscan.io/v2/api?chainid=1` |
| `https://api.basescan.org/api` | `https://api.etherscan.io/v2/api?chainid=8453` (paid plan) |
| `https://api.polygonscan.com/api` | `https://api.etherscan.io/v2/api?chainid=137` |
| Basescan, Polygonscan or Arbiscan key | An Etherscan key; the error page says keys from other explorers are not valid for V2 |

That last row answers most basescan api key searches: there is no separate Basescan key for V2. Base Mainnet (8453) and Base Sepolia (84532) are reachable through the Etherscan endpoint, but both are marked paid-only, so a free key gets the free-tier refusal shown below.

## Etherscan API rate limit and free plan, November 2026

Each plan has a per-second limit and a daily cap, and since 3 November 2026 requests are blocked once the daily cap is reached unless a paid plan has turned on overage.

**Etherscan API plans, from the rate limits page and etherscan.io/api/pricing, read 26 November 2026 (monthly billing)**

| Plan | Calls per second | Calls per day | Price per month | Use stated on pricing page |
| --- | ---: | ---: | ---: | --- |
| Free | 3 | 100,000 | $0 | Personal and research; selected chains; community endpoints only |
| Lite | 5 | 100,000 | $49 | Personal and research; all chains |
| Standard | 10 | 200,000 | $199 | Personal and research; Pro endpoints |
| Advanced | 20 | 500,000 | $299 | Commercial application |
| Professional | 30 | 1,000,000 | $399 | Commercial application |
| Pro Plus | 30 | 1,500,000 | $899 | Commercial application; address metadata |

First, the pricing page labels Free, Lite and Standard as personal and research use; commercial use starts at Advanced, so read the terms before putting a free key behind a product. Second, overage on paid plans costs $0.00003 per call ($3 per 100,000), is off by default and needs a monthly spend cap; the free tier has no overage. Third, free access on Arbitrum, Celo, Katana and Linea now comes from a shared pool for all free users of that chain, so a free call can fail with `Community Free API limit reached` even when your own key is far below its cap.

The changelog also cut free-tier results per request from 10,000 to 1,000 records from 1 July 2026 for `txlist`, `tokentx`, `getLogs` and seven other list endpoints, so pagination code written for the old size silently misses rows.

> **Hypothetical example.** A job pulls history for 2,000 Ethereum addresses, one `txlist` page of 1,000 rows each, and 15% of them need a second page. That is 2,000 + 300 = 2,300 calls. At 3 calls per second it takes about 767 seconds (2,300 / 3), roughly 13 minutes, and uses 2.3% of the 100,000 daily calls.

## Etherscan API modules: transactions, tokens, contracts, logs, gas

Most integrations need five endpoint families, and all of them use the same `module` and `action` pattern.

**Common endpoints from the Etherscan API reference, read 26 November 2026**

| Need | module / action | Notes from the docs |
| --- | --- | --- |
| Native balance | account / balance | Result in wei; `balancemulti` takes several addresses |
| Transaction history | account / txlist, txlistinternal | Use `startblock`, `endblock`, `page`, `offset`, `sort` |
| ERC-20 transfers | account / tokentx | Each row has `statusRep`: token reputation 0 unknown, 1 neutral, 2 unsafe; it says nothing about transaction success |
| Contract ABI and source | contract / getabi, getsourcecode | Free on every chain and plan |
| Event logs | logs / getLogs | Filter by address, topics and block range |
| Gas | gastracker / gasoracle | Safe, proposed and fast gas price |

Two changelog items matter for existing code. Since 2 September 2026, `getsourcecode` returns `Proxy` = 2 for minimal proxy contracts, so a check for `Proxy == "1"` misses them. And the best-practices page suggests narrowing `startblock` and `endblock` and asking only for the rows you need, which also avoids the `Query Timeout occured` error on large ranges. For reading what a token contract can do before touching it, see the guide on [how to check a token contract](https://fincodelabs.com/en/blog/how-to-check-token-contract).

## Etherscan API key not working: the error strings

Etherscan returns errors with HTTP 200 and `status` "0", so a client that only checks the HTTP code treats every failure as success.

**Errors seen live on 26 November 2026 or listed on the Common Error Messages page**

| result text (abridged) | Cause | Fix |
| --- | --- | --- |
| Missing/Invalid API Key | No key, a wrong key, or a key from another explorer (live) | Use an Etherscan key; new keys take a few minutes to activate |
| Too many invalid api key attempts | More than 5 invalid keys within 30 seconds from one IP | Wait at least 30 seconds, retry with a valid key |
| Missing chainid parameter (required for v2 api) | V2 call without `chainid` (live) | Add one chain ID |
| Free API access is not supported for this chain | Free key on a paid-only chain such as Base (live) | Paid plan, or another data source for that chain |
| Max rate limit reached | Above your plan's calls per second | Throttle client-side, then back off |
| Community Free API limit reached. Resets ... | Shared free pool for the chain is used up | Wait for the reset time in the message |
| You are using a deprecated V1 endpoint | Old URL (live) | Move to `/v2/api` with `chainid` |

One more live finding: without a key, `gastracker/gasoracle` still answered on 26 November 2026, with `message` set to `OK-Missing/Invalid API Key, rate limit of 1/5sec applied`. The other endpoints tried (`getabi`, `tokentx`, `balance`) refused keyless calls, even though the docs say ABI endpoints are free on every plan; free means a free key, not no key. Keys are credentials: keep them in environment variables and out of client-side code, as the docs advise, and see [API key storage and permissions](https://fincodelabs.com/en/blog/api-key-security-trading-bots) for the general practice.

## Etherscan API in Python: a tested client

A small client should throttle to your plan, treat `status` "0" as an error, retry only rate-limit and timeout errors, and stop on key or chain errors.

```python
import os, time, json, datetime, requests

BASE = "https://api.etherscan.io/v2/api"
KEY = os.environ.get("ETHERSCAN_API_KEY", "")      # never hard-code a key
MIN_GAP = 1 / 3                                     # free tier: 3 calls per second

class EtherscanError(Exception):
    pass

_last = 0.0
def call(chainid, **params):
    global _last
    for attempt in range(4):
        wait = MIN_GAP - (time.monotonic() - _last)
        if wait > 0:
            time.sleep(wait)
        _last = time.monotonic()
        r = requests.get(BASE, params={"chainid": chainid, "apikey": KEY, **params},
                         headers={"User-Agent": "Mozilla/5.0"}, timeout=30)
        r.raise_for_status()                        # errors arrive as HTTP 200, see below
        j = r.json()
        if j.get("status") == "1" or j.get("message", "").startswith("OK"):
            return j["result"]
        msg = str(j.get("result"))
        if "rate limit" in msg.lower() or "timeout" in msg.lower():
            time.sleep(2 ** attempt)                # back off, then retry
            continue
        if j.get("message") == "No transactions found":
            return []
        raise EtherscanError(msg)                   # key, chain or parameter problem
    raise EtherscanError("gave up after retries")

print("checked", datetime.datetime.now(datetime.timezone.utc).isoformat(timespec="seconds"))
print("gas:", call(1, module="gastracker", action="gasoracle")["ProposeGasPrice"], "gwei")
try:
    abi = json.loads(call(1, module="contract", action="getabi",
                          address="0xdAC17F958D2ee523a2206206994597C13D831ec7"))
    print("ABI entries:", len(abi))
    for t in call(1, module="account", action="tokentx", page=1, offset=3, sort="desc",
                  address="0xdAC17F958D2ee523a2206206994597C13D831ec7"):
        print(t["blockNumber"], t["tokenSymbol"], int(t["value"]) / 10 ** int(t["tokenDecimal"]))
except EtherscanError as e:
    print("error:", e)
try:
    call(8453, module="account", action="balance", tag="latest",
         address="0xdAC17F958D2ee523a2206206994597C13D831ec7")
except EtherscanError as e:
    print("base:", e)
```

Output on 26 November 2026, run without a key on purpose (no real key was used for this guide):

```
checked 2026-11-26T20:47:47+00:00
gas: 0.059704734 gwei
error: Missing/Invalid API Key
base: Free API access is not supported for this chain. Please upgrade your api plan for full chain coverage. https://etherscan.io/apis
```

The keyless gas call succeeded under the 1-per-5-seconds limit, the ABI call stopped on the key error without retrying, and Base was refused as a paid-only chain. With a valid free key in `ETHERSCAN_API_KEY`, the same script prints the USDT contract's ABI entry count and its three latest transfers; that part could not be run here because it needs a real key. The `MIN_GAP` spacing keeps one process under 3 calls per second; several workers sharing a key need a shared limiter such as the one in the [token bucket guide](https://fincodelabs.com/en/blog/token-bucket-rate-limiter-python), and retries should add jitter as in [exponential backoff with jitter in Python](https://fincodelabs.com/en/blog/exponential-backoff-jitter-python).

## When the Etherscan API is the wrong tool

Etherscan suits history lookups, ABIs and occasional balance checks; it fits poorly for real-time streams, high-volume backfills on paid-only chains, or data you must reproduce from your own node.

- **Latency.** It is a polled REST API with a per-second limit. For live updates, node subscriptions or webhook services fit better; the [wallet tracking API guide](https://fincodelabs.com/en/blog/wallet-tracking-api) compares polling and push.
- **Coverage and cost.** Ten chains need a paid plan, and commercial use starts at Advanced on the pricing page. The [on-chain data API guide](https://fincodelabs.com/en/blog/on-chain-data-api) covers nodes, indexers and SQL services as alternatives.

A note on text aimed at software: Etherscan's documentation index (llms.txt) and the header of every docs page carry instructions addressed to AI agents, such as "Use this file to discover all available pages" and a suggestion to connect a keyless MCP server. They were treated as page content, not followed, and the MCP server was not used or tested for this guide. Combining several sources into one pipeline is the work described on Fincode's [market data pipelines](https://fincodelabs.com/en/services/market-data-pipelines) page.

## Frequently asked questions

### Is the Etherscan API free?

Yes, with limits. As read on 26 November 2026, the free tier gives 3 calls per second and up to 100,000 calls a day on 45 of 55 chains, for personal and research use according to the pricing page.

### Do I need a separate Basescan API key?

No. V2 uses one Etherscan key for every chain, and the docs say keys from other explorers are not valid for V2. Base Mainnet (chainid 8453) needs a paid plan as of 26 November 2026.

### Why does my Etherscan API key say invalid?

The usual causes are a key from another explorer, a key that has not activated yet (a few minutes, per the docs), or a missing apikey parameter. After more than 5 invalid attempts within 30 seconds, the docs say the IP is throttled for at least 30 seconds.

### What is the Etherscan API rate limit?

It depends on the plan: 3 calls per second on Free, 5 on Lite, 10 on Standard, 20 on Advanced and 30 on Professional and Pro Plus, each with a daily cap, as read on 26 November 2026.

### Does the old Etherscan V1 API still work?

No. Etherscan set 15 August 2025 as the end of V1, and on 26 November 2026 V1 URLs on etherscan.io and basescan.org returned a deprecation message instead of data.

## Sources

- [Etherscan API docs: Rate Limits, including usage and overage (read 26 November 2026)](https://docs.etherscan.io/rate-limits)
- [Etherscan API docs: Supported Chains (read 26 November 2026)](https://docs.etherscan.io/supported-chains)
- [Etherscan API: live chain list endpoint (read 26 November 2026)](https://api.etherscan.io/v2/chainlist)
- [Etherscan API docs: Common Error Messages](https://docs.etherscan.io/common-error-messages)
- [Etherscan API docs: Make Your First Call](https://docs.etherscan.io/make-your-first-call)
- [Etherscan API docs: Changelog (entries to November 2026)](https://docs.etherscan.io/changelog)
- [Etherscan API docs: Get ERC20 Token Transfers by Address](https://docs.etherscan.io/api-reference/endpoint/tokentx)
- [Etherscan API docs: Best Practices](https://docs.etherscan.io/resources/best-practices)
- [Etherscan: API plans and pricing (read 26 November 2026)](https://etherscan.io/api/pricing)
- [Etherscan Information Center: Etherscan API V1 Will Be Fully Deprecated by 15th August, 2025 (published 30 July 2025)](https://info.etherscan.com/etherscan-api-v1-will-be-fully-deprecated-by-15th-august-2025/)

> This guide is general information about software and markets, not investment, legal or tax advice. Automated trading can lose money, past or backtested performance does not guarantee future results, and the rules that apply depend on your jurisdiction and your exchange's terms. Sources, checks and corrections: see the [editorial policy](https://fincodelabs.com/en/editorial-policy).

---

Published by Fincode (Fincode Yazılım ve Teknoloji A.Ş.), a software company in Istanbul, Turkey: https://fincodelabs.com/en/blog/etherscan-api

Cite as: Fincode, "Etherscan API V2: key, chainid, free limits and errors", updated November 27, 2026, https://fincodelabs.com/en/blog/etherscan-api
