api.

read-only json · gweiprice.com

Each endpoint refreshes the cache if older than 12s. Responses include age and stale so you can detect outages without an extra request.

/api/allfull snapshot (block, base, priority, total, ratio)
/api/blocklast block number
/api/basesuggested base fee, gwei
/api/safeeffective gas price for "safe" tx, gwei
/api/proposeeffective gas price for "propose" tx, gwei
/api/fasteffective gas price for "fast" tx, gwei
/api/totalsafe/propose/fast totals
/api/prioritysafe/propose/fast priority fees only
/api/ratiogasUsedRatio for last 5 blocks
/api/historyrecent samples (up to 120)
/api/ageseconds since last successful fetch
/api/stalewhether cache is currently stale
← home