GET api/gas-oracle
Summary: Gas Oracle
Operation ID: getGasOracle
Auth: api_key
Operation ID: getGasOracle
Auth: api_key
Description
Get current gas price estimates for Safe, Proposed, and Fast confirmation times. Returns prices in Gwei.
Parameters (4)
action
(string, query, required)
Constraints: {'enum': ['gasoracle']}
apikey
(string, query, required)
Your Etherscan API key (obtain free key at https://etherscan.io/apis)
chainid
(string, query, required)
Chain ID (1=Ethereum Mainnet, 11155111=Sepolia, 8453=Base, 137=Polygon, 56=BSC, 42161=Arbitrum)
module
(string, query, required)
Constraints: {'enum': ['gastracker']}
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Get gas prices for Ethereum Mainnet | curl |
https://api.etherscan.io/api/?module=gastracker&action=gasoracle&chainid=1&apikey=YourApiKey |
|
| Get gas prices for Sepolia testnet | curl |
https://api.etherscan.io/api/?module=gastracker&action=gasoracle&chainid=11155111&apikey=YourApiKey |
|
| Get gas prices for Polygon | curl |
https://api.etherscan.io/api/?module=gastracker&action=gasoracle&chainid=137&apikey=YourApiKey |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:49:18.189034 | 200 | 535ms | |
| 2026-03-23 10:19:53.105750 | 200 | 545ms | |
| 2026-03-23 09:11:27.198669 | 200 | 558ms |