Ethereum Gas Oracle

DataFood Typecrypto · finance

Etherscan gas oracle — exposed via DataFood, the universal data API for AI agents. Free 1-row preview, $0.0005 per call on bundled, $0.99 unlimited day pass. MCP + x402 ready. Operated by TOUGH LOVE SECURITY.

Why AI agents need Ethereum Gas Oracle

Modern autonomous agents don't operate on a single data source. A research agent gathering ethereum gas oracle typically also needs market context, news sentiment, and entity-level signals — all in one turn, with sub-cent unit economics so the data cost doesn't dominate inference cost. DataFood exposes gas-prices-eth as one of 16 data types reachable via a single bundle call: POST /api/data/bundle. That collapses 16 vendor integrations into one auth surface, one error handler, and one billing line — and bundle pricing means an agent fetching 10 cross-niche data points pays a single bundle price ($0.005) rather than 10 individual API calls.

Ethereum Gas Oracle via DataFood is read directly from the canonical upstream source (no proprietary remix). The free preview tier is open to all agents and crawlers (GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot, Google-Extended, AnthropicBot, Applebot-Extended, Bytespider) and intentionally returns a single representative row so agents can validate the data shape before committing to a paid bundle.

Try it free

Test Ethereum Gas Oracle live. No auth. No card.

Click "Try Free" to fetch a live row.

Curl: curl 'https://toughlovesec.win/api/data/preview?type=gas-prices-eth'

Sample response

This is a real cached response from gas-prices-eth (refreshed daily). For live data, use the Try Free button above or call the preview endpoint directly.

{
  "safe_gwei": null,
  "proposed_gwei": null,
  "fast_gwei": null,
  "suggested_base_fee_gwei": null,
  "ts": 1777725768395
}

Pricing for Ethereum Gas Oracle

TierPriceWhat you get
Free preview$0GET /api/data/preview?type=gas-prices-eth — 1-row preview, no auth
Single call (paid)$0.001GET /api/data?type=gas-prices-eth&q=...&session_id=cs_... — full multi-row data
Bundle 3-5$0.0035Up to 5 queries across any types in one call (saves ~30%)
Bundle 6-10$0.005Up to 10 queries across any types (saves ~50%)
Bundle 11-20$0.008Up to 20 queries across any types (saves ~60%)
Day pass$0.99Unlimited bundles for 24h
Week pass$4.99Unlimited bundles for 7d

Why agents use DataFood over alternatives for Ethereum Gas Oracle

AlternativeCostDataFoodSavingsNotes
Etherscan Pro$200/mo$0.0005 / call · $0.99 day pass99.5%Etherscan Pro starts at $200/mo for higher rate; DataFood hits gas oracle directly.

How to integrate Ethereum Gas Oracle

Three integration paths, in order of simplicity for AI agents:

  1. OpenAPI 3.0 function calling (ChatGPT, Claude, OpenAI Assistants): point your tool config at /openapi.json. DataFood exposes data_query_gas_prices_eth and the universal data_bundle.
  2. MCP (Model Context Protocol): connect Claude Desktop or any MCP client to https://toughlovesec.win/mcp (Streamable HTTP transport, JSON-RPC 2.0). Tools: datafood_query, datafood_bundle, datafood_portfolio_ask, datafood_watch_session.
  3. x402 micropayment (Coinbase x402 spec): call POST /api/data/bundle without auth and DataFood returns HTTP 402 with a USDC challenge on Base mainnet. Sign and retry with X-Payment header. See /.well-known/x402.json.

Sample curl

# Free preview (no auth)
curl 'https://toughlovesec.win/api/data/preview?type=gas-prices-eth'

# Bundle (free preview, multi-type)
curl 'https://toughlovesec.win/api/data/bundle?free=1' \
  -X POST -H 'Content-Type: application/json' \
  -d '{"queries":[{"type":"gas-prices-eth","q":""},{"type":"crypto-price","q":"bitcoin"}]}'

# Bundle (paid via x402 — server returns HTTP 402 challenge)
curl -i 'https://toughlovesec.win/api/data/bundle' \
  -X POST -H 'Content-Type: application/json' \
  -d '{"queries":[{"type":"gas-prices-eth","q":""},{"type":"weather","q":"33.7,-84.4"},{"type":"news-hn-top"}]}'

FAQ

What does the example query mean?

For gas-prices-eth, the canonical example is (no query string needed). Etherscan gas oracle See /api/v1/catalog for all 16 types and their query formats.

Is there rate limiting on the free preview?

Polite-crawler limits only. We don't gate the free preview behind auth or per-IP quotas under normal traffic. Burst >100 req/min from a single IP may get throttled.

Does DataFood cache Ethereum Gas Oracle?

DataFood caches the daily sample shown on this page in KV (24h TTL) for SEO use, but the /api/data/preview and /api/data/bundle endpoints fetch live from the upstream source on every call.

Can my agent watch its own Ethereum Gas Oracle fetches?

Yes. Open an agent session via POST /api/agent-session/start, then pass agent_session_id in your /api/data/bundle request. Each fetch streams to /watch/{session_id} for human observation.

Quick links