C

ClearCheck · Fuelprice

by ClearCheck

GETBaseSolanaArbitrumPolygon

$0.01

per call · USD Coin on Base

US retail gasoline or diesel price this week vs last, with a RISING / FALLING / FLAT verdict. EIA weekly survey.

Endpoint

GET https://loonie-toll.onrender.com/fuelprice

2

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://loonie-toll.onrender.com/fuelprice", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://loonie-toll.onrender.com/fuelprice?fuel=gasoline" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "changeFromPriorWeekCents": -1.4,
  "disclaimer": "Advisory only, provided as is without warranty of accuracy or completeness. National weekly averages from the EIA survey — local pump prices vary widely. Not affiliated with or endorsed by the EIA or …",
  "fuel": "Regular gasoline, US average",
  "latest": {
    "priceUsdPerGallon": 4.071,
    "units": "$/GAL",
    "weekOf": "2026-08-31"
  },
  "reasons": [
    "Regular gasoline, US average: $4.071/gal for the week of 2026-08-31.",
    "Down 1.4¢ from $4.085 last week.",
    "…1 more"
  ],
  "retrievedAt": "2026-09-09T00:55:38.585Z",
  "series": [
    {
      "priceUsdPerGallon": 4.071,
      "units": "$/GAL",
      "weekOf": "2026-08-31"
    },
    {
      "priceUsdPerGallon": 4.085,
      "units": "$/GAL",
      "weekOf": "2026-08-24"
    }
  ],
  "source": "US Energy Information Administration (api.eia.gov)",
  "verdict": "FALLING"
}

Payment details

Pay to0xb531320805c5bed1d46aeadcf4f008fdf172dbda
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from ClearCheck & similar services