GET /api/explorer/v1/gas/history/price

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/oklink/api/explorer/v1/gas/history/priceCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Daily gas-price history (low/average/high bands since 2021)

Multi-hundred-KB payload per call — cache aggressively.

Parameters

No parameters documented.

Response

type: object
data key: data
pagination: none
sample: {
  "code": "int",
  "data": "array[1806]",
  "detailMsg": "str",
  "msg": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/oklink/api/explorer/v1/gas/history/price"