Gas Fee Predictor Price API

ETH/USD price data

GitHub OpenAPI

Operations 1

GET /api/eth-price Live ETH/USD price #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gasfeepredictor-com:gasfeepredictor-com-price-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gasfeepredictor-com-price-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gas Fee Predictor Price API
  description: 'Free public JSON API for live Ethereum mainnet + Layer 2 gas fees, with active failover across multiple public RPCs, pattern-based 24h forecasts, and full wallet-fee estimates including L1 data fees on OP Stack chains. No API key, no signup. Methodology: https://gasfeepredictor.com/methodology'
  version: 1.0.0
  license:
    name: CC BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/
  contact:
    name: Gas Fee Predictor
    url: https://gasfeepredictor.com
servers:
- url: https://api.gasfeepredictor.com
  description: Production (DNS-only subdomain — reachable from servers, workers, and curl; not behind the bot challenge)
tags:
- name: Price
  description: ETH/USD price data
paths:
  /api/eth-price:
    get:
      tags:
      - Price
      summary: Live ETH/USD price
      description: 'Current Ethereum price in USD with 24h change and 7-day hourly sparkline. Multi-source fallback chain: CoinGecko → Binance.US → Coinbase. On cold-start failure returns HTTP 200 with usd:null and source:''unavailable'' rather than 5xx, so consumers can render gracefully.'
      responses:
        '200':
          description: ETH price snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EthPriceResponse'
      operationId: getApiEthPrice
      x-operation-id-source: derived
components:
  schemas:
    EthPriceResponse:
      allOf:
      - $ref: '#/components/schemas/ApiMeta'
      - type: object
        properties:
          usd:
            type:
            - number
            - 'null'
            description: ETH price in USD. Null in soft-fail mode (all upstreams down on cold start).
          change_24h:
            type:
            - number
            - 'null'
          sparkline_7d:
            type: array
            items:
              type: number
            description: 168 hourly values
          updatedAt:
            type: string
            format: date-time
          priceSource:
            type: string
            enum:
            - coingecko
            - binance
            - coinbase
            description: Which upstream successfully served the price field. Sparkline always from CoinGecko when present.
          source:
            type: string
            description: 'Cache/source label: cache | coingecko | binance | coinbase | stale-timeout | stale-cooldown | stale-error | unavailable'
    ApiMeta:
      type: object
      description: Every public endpoint includes these fields. citation is a copy-paste-ready attribution string for AI agents and integrators. tier indicates the API tier (currently always 'free').
      properties:
        citation:
          type: string
          description: 'Stable attribution string. Format: ''Gas data from Gas Fee Predictor, gasfeepredictor.com, updated <ISO-8601>''.'
          example: Gas data from Gas Fee Predictor, gasfeepredictor.com, updated 2026-05-26T16:30:00Z
        tier:
          type: string
          enum:
          - free
          description: API tier. Currently 'free' for all requests.
      required:
      - citation
      - tier
x-provenance:
  method: harvested
  publisher: Gas Fee Predictor
  source: https://api.gasfeepredictor.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)