Ethereum Gas Price with Free API without Key Needed

Many services provide Ethereum gas tracker and give API methods to get gas price. But most of them require registration and using API key, like here https://etherscan.io/gastracker. But there is example without API key.

 

Get Ethereum Gas Price via API

Here it is https://ethgasprice.org/api/gas

On Linux terminal:

curl -sk https://ethgasprice.org/api/gas
{"code":200,"data":{"rapid":6,"fast":4,"standard":4,"slow":4,"priceUSD":3179.66959348}}

 

Or if you installed jq:

curl -sk https://ethgasprice.org/api/gas | jq
{
  "code": 200,
  "data": {
    "rapid": 6,
    "fast": 4,
    "standard": 4,
    "slow": 4,
    "priceUSD": 3179.66959348
  }
}

 

How to choose time and date to use Ethereum?

Here https://etherscan.io/gastracker you can see matrix showing gas price by days. This allows to solve when is it better to use Ethereum

Section
Category