Etherscan Gas Tracker Scraper avatar

Etherscan Gas Tracker Scraper

Pricing

Pay per event

Go to Apify Store
Etherscan Gas Tracker Scraper

Etherscan Gas Tracker Scraper

⛽ Monitor Ethereum gas prices from Etherscan. Export safe, proposed, fast, base-fee, latest-block, and gas-used-ratio snapshots.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Monitor Ethereum gas prices with timestamped snapshots from Etherscan's public gas oracle API.

This Apify Actor collects safe, proposed, fast, base-fee, latest-block, and gas-used-ratio data in a clean dataset that is ready for dashboards, alerts, spreadsheets, and scheduled fee monitoring workflows.

What does Etherscan Gas Tracker Scraper do?

Etherscan Gas Tracker Scraper calls the Etherscan V2 gas oracle endpoint and saves one dataset row per gas-price snapshot.

It is designed for scheduled monitoring rather than one-off page scraping.

You can run it once for the current gas state, or collect multiple samples with a fixed interval.

The actor works without an Etherscan API key.

If you add your own Etherscan API key, you can use lower intervals according to your Etherscan plan.

Who is it for?

Crypto traders use it to monitor cheaper transaction windows.

Wallet developers use it to compare gas fee suggestions for UX decisions.

DeFi teams use it for operational dashboards and cost alerts.

Data analysts use it to collect historical gas snapshots on a schedule.

Automation builders use it as a lightweight Ethereum gas monitor in larger workflows.

Why use this gas tracker?

It uses the official Etherscan V2 gas oracle JSON endpoint.

It does not rely on Cloudflare-challenged HTML pages.

It exports normalized numeric fields.

It supports repeated samples in one run.

It protects no-key users by enforcing Etherscan's public rate limit.

It can include the raw Etherscan response for audits when needed.

Data you can extract

FieldDescription
timestampISO time when the sample was collected
chainIdEtherscan V2 chain ID queried
sampleIndex1-based sample number
lastBlockLast block from the gas oracle
safeGasPriceGweiSafe gas price in Gwei
proposeGasPriceGweiProposed gas price in Gwei
fastGasPriceGweiFast gas price in Gwei
suggestedBaseFeeGweiSuggested base fee in Gwei
gasUsedRatioParsed gas-used ratios as numbers
gasUsedRatioRawOriginal comma-separated gas-used-ratio value
sourceUrlEtherscan API URL without your API key
statusok or error
errorError details when a sample fails

How much does it cost to monitor Etherscan gas prices?

This actor uses pay-per-event pricing.

You pay a small start fee per run and a small result fee for each gas tracker sample saved.

For most users, scheduled one-sample runs are inexpensive because the actor performs one HTTP API request and exits quickly.

Longer monitoring runs cost more because they collect more timestamped samples.

Quick start

  1. Open the actor on Apify.

  2. Keep chainId set to 1 for Ethereum mainnet.

  3. Set samples to 1 for a current gas snapshot.

  4. Set samples higher if you want a short monitoring session.

  5. Leave apiKey empty unless you have an Etherscan key.

  6. Click Start.

  7. Export the dataset as JSON, CSV, Excel, or via API.

Input configuration

chainId selects the Etherscan V2 chain.

1 is Ethereum mainnet.

samples controls how many snapshots are saved.

intervalSeconds controls the delay between snapshots.

apiKey is optional and secret.

includeRawResponse adds the original Etherscan result object.

maxRetries controls retries for transient errors and rate limits.

One current snapshot

{
"chainId": 1,
"samples": 1,
"intervalSeconds": 5
}

Ten-minute scheduled monitor

{
"chainId": 1,
"samples": 100,
"intervalSeconds": 6
}

With an Etherscan API key

{
"chainId": 1,
"samples": 20,
"intervalSeconds": 1,
"apiKey": "YOUR_ETHERSCAN_API_KEY"
}

Output example

{
"timestamp": "2026-07-04T02:30:00.000Z",
"chainId": 1,
"sampleIndex": 1,
"source": "etherscan-gas-oracle-v2",
"status": "ok",
"lastBlock": 25456622,
"safeGasPriceGwei": 0.070173264,
"proposeGasPriceGwei": 0.070304905,
"fastGasPriceGwei": 0.071173264,
"suggestedBaseFeeGwei": 0.070173264,
"gasUsedRatioRaw": "0.4214426,0.852954983333333,0.407436"
}

Scheduling ideas

Run every five minutes for a live gas dashboard.

Run every hour for daily fee trend analysis.

Run before high-volume wallet or contract operations.

Run alongside transaction simulation or swap routing jobs.

Run with webhooks to notify a team when gas drops below your own threshold.

Integrations

Send dataset rows to Google Sheets for a fee history sheet.

Use Apify webhooks to trigger Slack, Discord, or email alerts.

Pull results into a BI dashboard.

Store snapshots in a database for long-term Ethereum gas analytics.

Combine with wallet, DeFi, or NFT automation actors from https://apify.com/automation-lab/.

API usage with Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/etherscan-gas-tracker-scraper').call({
chainId: 1,
samples: 1,
intervalSeconds: 5
});
console.log(run.defaultDatasetId);

API usage with Python

from apify_client import ApifyClient
import os
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/etherscan-gas-tracker-scraper').call({
'chainId': 1,
'samples': 1,
'intervalSeconds': 5,
})
print(run['defaultDatasetId'])

API usage with cURL

curl -X POST 'https://api.apify.com/v2/acts/automation-lab~etherscan-gas-tracker-scraper/runs?token=YOUR_APIFY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"chainId":1,"samples":1,"intervalSeconds":5}'

MCP usage

Use Apify MCP with Claude Code or Claude Desktop to run this actor from chat.

MCP endpoint:

https://mcp.apify.com/?tools=automation-lab/etherscan-gas-tracker-scraper

Claude Code setup:

$claude mcp add apify-etherscan-gas-tracker "https://mcp.apify.com/?tools=automation-lab/etherscan-gas-tracker-scraper"

Claude Desktop JSON config:

{
"mcpServers": {
"apify-etherscan-gas-tracker": {
"url": "https://mcp.apify.com/?tools=automation-lab/etherscan-gas-tracker-scraper"
}
}
}

Example prompts:

  • "Run the Etherscan gas tracker scraper and summarize current safe, propose, and fast gas."

  • "Collect 12 Ethereum gas samples and tell me whether fees are trending up."

  • "Export the latest Etherscan gas tracker dataset as CSV."

Tips for no-key mode

No-key Etherscan responses are rate-limited.

Keep intervalSeconds at five or higher.

Use one-sample scheduled runs for recurring monitoring.

Add an API key if you need tighter sampling intervals.

Do not scrape Etherscan HTML pages for this workflow; the API endpoint is more reliable.

Error handling

The actor retries transient failures and rate-limit responses.

If a sample still fails, it saves an error row instead of hiding the problem.

This makes scheduled runs easier to audit.

Check the status and error fields before using a row in alerts.

Legality and responsible use

This actor uses Etherscan's public gas oracle API.

Respect Etherscan's API terms and rate limits.

If you run high-frequency monitoring, use your own Etherscan API key.

Do not use the actor to overload public endpoints.

FAQ

Does it need an Etherscan API key?

No. It works without a key, but no-key mode is slower.

Why are intervals below five seconds raised?

Etherscan's no-key response states that a 1 request per 5 seconds limit is applied.

Can it monitor chains other than Ethereum mainnet?

The actor accepts any positive Etherscan V2 chainId, but the default and primary workflow is Ethereum mainnet.

Why do I get an error row?

A transient API error, invalid chain ID, or rate limit may have occurred. Review error and retry with a longer interval.

Explore related automation-lab actors at https://apify.com/automation-lab/.

Useful adjacent workflows include wallet monitoring, blockchain explorer extraction, DeFi analytics, and API health checks.

Support

If you need another gas metric or chain-specific output, open an issue on the actor page.

Include your input JSON and the run ID so the problem can be reproduced.

Changelog

Initial version collects Etherscan V2 gas oracle snapshots with optional raw response output.

Developer notes

The actor is intentionally HTTP-only.

It avoids Playwright because the Etherscan HTML pages may be Cloudflare challenged while the gas oracle JSON endpoint returns the target data directly.

Storage

Results are saved to the default dataset.

You can download data in JSON, CSV, XML, Excel, RSS, or HTML table formats from Apify.

Performance

A single sample usually completes quickly.

A 100-sample no-key run takes at least about 500 seconds because the actor honors the public Etherscan rate limit.

Final reminder

Start small with one sample.

Schedule recurring runs if you need long-term gas history.

Use an API key for higher-frequency monitoring.