# Etherscan Gas Tracker Scraper (`parseforge/etherscan-gas-tracker-scraper`) Actor

Snapshot Ethereum mainnet gas prices from the Etherscan gas oracle with safe\_gas, propose\_gas, fast\_gas, base\_fee, gas\_used\_ratio, and last\_block. Set how many one second samples to collect. Useful for fee timing, wallet UX tuning, and on chain cost analytics.

- **URL**: https://apify.com/parseforge/etherscan-gas-tracker-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Integrations, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 📊 Etherscan Gas Tracker Scraper

> 🚀 **Export Etherscan gas tracker data in seconds. Structured records direct from the public api.etherscan.io endpoint to CSV, Excel, JSON, or XML.**

The Etherscan Gas Tracker Scraper turns the [api.etherscan.io](https://api.etherscan.io) public REST endpoint into a clean, structured dataset. It calls the endpoint with the parameters you supply, parses the JSON, and flattens each record into one row.

Dataset coverage depends on the upstream source. All field names are clean snake\_case / camelCase, numeric strings are auto-cast to numbers, and upstream rate-limit notes are surfaced as a clean `error` record instead of crashing your pipeline.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| 📊 Analysts | Pull structured records for analysis |
| 🏢 Finance teams | Snapshot data for dashboards and reports |
| 🤖 ML engineers | Build training sets from public sources |
| 📰 Journalists | Verify numbers for stories with one click |
| 👩‍💻 Developers | Mirror upstream data into your own DB without writing client code |
| 🎓 Researchers | Run reproducible studies on public data |

### 📋 What the Etherscan Gas Tracker Scraper does

- Calls the public `api.etherscan.io` endpoint.
- Parses the JSON response and flattens each record into a clean row.
- Casts numeric fields to numbers so they import cleanly into Excel and BI tools.
- Surfaces upstream rate-limit or error notes as a single-row `error` record instead of crashing.
- Exports as CSV, Excel, JSON, JSONL, XML, RSS, or HTML.

> 💡 **Why it matters:** The raw Etherscan gas tracker JSON is verbose and hard to consume in spreadsheets. This actor normalizes the payload into one row per record so the data drops straight into pandas, BigQuery, or a Google Sheet.

### 📊 Data fields

Each record includes: `fastGasPrice`, `gasUsedRatio`, `lastBlock`, `proposeGasPrice`, `results`, `safeGasPrice`, `scrapedAt`, `suggestBaseFee`. These field names come straight from the actor's dataset schema, so what you see here is what lands in your dataset.

> ⚠️ **Good to Know:** The Etherscan gas tracker API is rate-limited. This actor surfaces rate-limit notes as a clean `error` record so your downstream pipeline can decide how to retry.

### 🚀 How to use

1. Click **Try for free**.
2. Adjust input fields (or leave defaults).
3. Click **Start**. Within seconds, your dataset is ready — download as CSV, Excel, JSON, or XML, or pipe to your warehouse.

### 🔗 Recommended Actors

| Actor | What it does |
|---|---|
| [ParseForge Alpha Vantage Scraper](https://apify.com/parseforge/alpha-vantage-public-scraper) | Stocks, FX, crypto, indicators. |
| [ParseForge Yahoo Finance Scraper](https://apify.com/parseforge) | Equities, funds, indices. |
| [ParseForge OurAirports Scraper](https://apify.com/parseforge/ourairports-scraper) | Global airport database. |
| [ParseForge NBA Stats Scraper](https://apify.com/parseforge/nba-stats-scraper) | Player and team stats from NBA.com. |

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for 900+ production-grade scrapers.

**Disclaimer:** This actor scrapes only publicly available data. ParseForge is not affiliated with, endorsed by, or sponsored by any of the third-party services referenced. Users are responsible for complying with the target site's terms of service and applicable law. [Create a free account w/ $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp).

### 🆘 Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our [contact form](https://tally.so/r/BzdKgA) or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our [Discord](https://parseforge.co/discord). It's the best place to get support and suggest new actors.

# Actor input Schema

## `pollCount` (type: `integer`):

Number of snapshots to collect (one per second).

## `maxItems` (type: `integer`):

How many records to collect per run.

## Actor input object example

```json
{
  "pollCount": 1,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pollCount": 1,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/etherscan-gas-tracker-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "pollCount": 1,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/etherscan-gas-tracker-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pollCount": 1,
  "maxItems": 10
}' |
apify call parseforge/etherscan-gas-tracker-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/etherscan-gas-tracker-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1v2uJUNSzK9eG26Iv/builds/OlJLcdRBhxhHopHkU/openapi.json
