Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
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)