Skip to content
OSINTtools.io

Etherscan API

Main block explorer for Ethereum, showing address balances, transactions, token transfers, contracts and public name tags.

Base URL
https://api.etherscan.io/v2
Sign-in
API key
Free tier
Free tier
Pricing
Subscription
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from docs.etherscan.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Etherscan API returns on-chain data for Ethereum and for other EVM chains that Etherscan supports: native balances, normal and token transactions of an address, verified contract source code and ABI, contract creators, transaction execution status and ENS name resolution. An investigator uses it to follow funds and to see who created a contract.

All calls are GET requests to one URL, https://api.etherscan.io/v2/api. The operation is chosen with the module and action query parameters, the chain with chainid (for example 1 for Ethereum, 42161 for Arbitrum), and the key is sent as the apikey query parameter. Responses are JSON with status, message and result; the shape of result depends on the action.

Actions documented here (see the endpoint overview for all of them):

  • module=account&action=balance: native balance in wei; address, optional tag (latest or a hex block within the last 128).
  • module=account&action=txlist: normal transactions of address; optional startblock, endblock, page, offset, sort.
  • module=account&action=tokentx: ERC-20 transfers; address and/or contractaddress, plus the same paging options.
  • module=contract&action=getsourcecode: verified source, ABI, compiler and proxy data for address.
  • module=contract&action=getcontractcreation: creator, creation transaction and block for up to 5 contractaddresses.
  • module=transaction&action=getstatus: whether txhash failed during execution, and why.
  • module=ens&action=forwardresolve: the address for an ENS name; Ethereum mainnet only, cached up to 5 minutes, 1 call per second on the Free plan.

The docs list per-second and per-day limits by plan; endpoints marked PRO are not available on the Free and Lite plans.

Quick start

  1. Get a key

    Create an account with Etherscan and copy your api key (free tier). Where to get it

  2. Make your first request

    One endpoint, chosen by module and action: balances, transactions, token transfers, contract source, status, ENS.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&apikey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "1",
      "message": "OK",
      "result": "172774397764084972158218"
    }

Authentication

Send your API key in the apikey query parameter of every request.

One key works across the supported chains; pick the chain with chainid.

Get a key from Etherscan

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Free plan: 3 calls per second, up to 100,000 calls per day (selected chains only). Paid plans range from 5 to 30 calls per second and 100,000 to 1,500,000 calls per day.

Free tier. Pricing: subscription.

  • FreeFree · 3 calls/sec, 100,000 calls/day, selected chains, community endpoints
  • Lite$49/month · 5 calls/sec, 100,000 calls/day, all supported chains; personal and research use
  • Standard$199/month · 10 calls/sec, 200,000 calls/day, API Pro endpoints; personal and research use
  • Advanced$299/month · 20 calls/sec, 500,000 calls/day, API Pro endpoints; commercial use
  • Professional$399/month · 30 calls/sec, 1,000,000 calls/day, API Pro endpoints; commercial use
  • Pro Plus$899/month · 30 calls/sec, 1,500,000 calls/day, plus Address Metadata endpoint

Plans from etherscan.io, checked Nov 25, 2026.

Account, contract, transaction and ENS actions

Set module and action as listed in the overview, then the parameters of that action. Examples: account/balance, account/txlist, account/tokentx, contract/getsourcecode, contract/getcontractcreation, transaction/getstatus, ens/forwardresolve.

Query parameters

chainidstringrequired

Chain ID, for example 1 for Ethereum or 42161 for Arbitrum (ens/forwardresolve: 1 only)

Example: 1
modulestringrequired

Module of the action

Example: accountOne of: account, contract, transaction, ens
actionstringrequired

Action within the module

Example: balanceOne of: balance, txlist, tokentx, getsourcecode, getcontractcreation, getstatus, forwardresolve
addressstringtakes your crypto wallet

Address to query (balance, txlist, tokentx, getsourcecode)

Example: 0x0000000000000000000000000000000000000001
contractaddressstring

ERC-20 token contract to filter by (tokentx)

Example: 0x0000000000000000000000000000000000000003
contractaddressesstring

Up to 5 contract addresses, comma-separated (getcontractcreation)

Example: 0x0000000000000000000000000000000000000003
txhashstring

Transaction hash (getstatus)

Example: 0x1111111111111111111111111111111111111111111111111111111111111111
namestring

ENS name to resolve (forwardresolve)

Example: example.eth
tagstring

latest, or a hex block number within the last 128 blocks (balance)

Example: latest
startblockinteger

Block number to start from (txlist, tokentx)

Example: 0
endblockinteger

Block number to stop at (txlist, tokentx)

Example: 99999999
pageinteger

Page number (txlist, tokentx)

Example: 1
offsetinteger

Records per page (txlist, tokentx)

Example: 100
sortstring

desc returns the latest first, asc the oldest first (txlist, tokentx)

Example: ascOne of: asc, desc
Response fields · 3Show

statusstring

"1" if data was returned, "0" otherwise (an error or an empty result)

messagestring

"OK" on success, or an error description such as NOTOK

resultstring

Depends on the action: balance in wei (balance); array of transactions with hash, from, to, value, timeStamp, blockNumber (txlist, tokentx, which adds tokenName, tokenSymbol, tokenDecimal); array with SourceCode, ABI, ContractName, Proxy (getsourcecode); array with contractAddress, contractCreator, txHash (getcontractcreation); object with isError and errDescription (getstatus); resolved address (forwardresolve)

curl 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "1",
  "message": "OK",
  "result": "172774397764084972158218"
}