API Overview
The current EthGasStation API surface has two distinct layers:
- app-internal and signed-in routes used by the web app itself under
/be/app/... - public API v1 routes for external integrations under
/be/api/v1/...
This docs section focuses on the external integration surface.
API capabilities
- gas snapshots and trend summaries
- advanced metrics such as base fee, priority fee, gas-used ratio, block details, transaction details, and transaction windows
- alert CRUD operations
- auto-tx operations
- dashboard-oriented data endpoints
Base path
/be/api/v1
In production, these routes are typically served from the main EthGasStation app origin.
Example:
https://ethgasstation.io/be/api/v1/gas/current
Auth model
API v1 is protected by the x-api-key header.
Generate keys in the signed-in app under Developer -> API & MCP Console.
Main route groups
Gas
GET /be/api/v1/gas/currentGET /be/api/v1/gas/trendGET /be/api/v1/gas/recommendation
Alerts
GET /be/api/v1/alertsGET /be/api/v1/alerts/{id}POST /be/api/v1/alertsPUT /be/api/v1/alerts/{id}/statusDELETE /be/api/v1/alerts/{id}GET /be/api/v1/alerts/{id}/savings
Auto Txs
GET /be/api/v1/auto-txsGET /be/api/v1/auto-txs/{id}POST /be/api/v1/auto-txsPUT /be/api/v1/auto-txs/{id}POST /be/api/v1/auto-txs/{id}/cancelDELETE /be/api/v1/auto-txs/{id}
Dashboard data
GET /be/api/v1/dashboard/stats/currentGET /be/api/v1/dashboard/stats/chartGET /be/api/v1/dashboard/stats/marketGET /be/api/v1/dashboard/rate-limitsGET /be/api/v1/dashboard/summary
Metrics
GET /be/api/v1/metrics/base-feeGET /be/api/v1/metrics/priority-feeGET /be/api/v1/metrics/gas-used-ratioGET /be/api/v1/metrics/block/{number}GET /be/api/v1/metrics/tx/{hash}GET /be/api/v1/metrics/txs
Data format and units
- Request and response bodies use JSON
- Some request payloads use
gweifor human-facing thresholds, while stored/backend values may usewei - Timestamps are ISO 8601 when endpoints accept explicit
from/towindows
Before you integrate
- Create an API key in the app.
- Open
/api-playgroundto inspect the live OpenAPI surface. - Start with a read-only endpoint such as
gas/currentormetrics/priority-fee. - Add alerts or auto-tx flows only after your read path is stable.
Continue with Console & API Keys and Authentication.