Etherscan

Current gas price tiers and base fee, from Etherscan's V2 multichain API.

1 endpoint684 calls1/1 passing
Get API key
GET/v1/…etherscan/gas-oracle
passing · 0.9s30s cache

Try it

Checking your keys…

Parameters

chainId

number · query · optional

Chain selector. 1 is Ethereum mainnet, 137 Polygon; both serve this oracle without credentials.

Example response

{"project":"finance:etherscan",  "data": {"unit":"gwei","chainId":1,"dataset":"gas-oracle","provider":"etherscan","lastBlock":25800500,"fastGasPrice":0.227841836,    "gasUsedRatio": [      0.862360183333333,      0.946595916666667,      0.3724444,      0.445706816666667,      0.753381933333333    ],"safeGasPrice":0.16983154,"suggestBaseFee":0.16983154,"proposeGasPrice":0.17083154  },"timestamp":"2026-08-21T02:24:45Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "finance:etherscan",  "gas-oracle",  { chainId: 1 });