Synergic APIsSynergic APIs

API documentation

US Retail Fuel Prices API

Since 1990

The weekly pump survey the press quotes (USD per gallon): all-grades gasoline, regular and on-highway diesel — for the US average, the five PADD districts and California.

500 req/mo · No credit card required · One key, every API on the platform

  • Checking status…
  • Weekly since 1990 (regular)
  • 3 fuels · US + 5 PADDs + California
  • USD per gallon
  • Release: Tuesdays 10:00 ET (EIA)

Base URL & authentication

All endpoints live under one base URL. Authenticate every request with your key in the X-Api-Key header — no OAuth, no signing. The same key works on every API of the platform.

# Base URL
{{GATEWAY_URL}}

# Every request
X-Api-Key: sk_live_YOUR_KEY

Missing or invalid keys return 401 — see errors. The demo endpoint is the only keyless route.

Endpoints

All paths relative to the base URL. Every 200 ships ETag, Cache-Control and RateLimit-* headers.

MethodPathSummary
GET/fuel/latest Free+Latest price of the three fuels for one area (?area=, default us).
GET/fuel/{fuel} Free+Latest price of one fuel — gasoline | regular | diesel.
GET/fuel/{fuel}/history Free+Paginated weekly history per fuel and area: area, start/end, limit, keyset via meta.next_end.

Sample — 200 /fuel/latest

{
  "data": [
    { "fuel": "diesel", "area": "us", "period": "2026-07-28", "price": 3.71, "unit": "USD per gallon", "source": "EIA" },
    { "fuel": "gasoline", "area": "us", "period": "2026-07-28", "price": 3.42, "unit": "USD per gallon", "source": "EIA" }
  ]
}
Get a free API key 500 req/mo · No credit card required

Errors, auth & limits

One uniform error contract everywhere: { "error": { "code", "message" } } with stable, machine-readable codes — shared by every API on the platform.

StatusCodeWhen
401UNAUTHORIZEDMissing X-Api-Key header, or invalid/revoked key.
400VALIDATION_ERRORBad query/path parameters.
404FUEL_NOT_FOUND · NO_DATA · NOT_FOUNDUnknown value for the path parameter (the message lists the valid ones), no data for the requested range yet, or unknown route.
429RATE_LIMITEDPer-minute limit of your plan exceeded — check Retry-After.
429QUOTA_EXCEEDEDMonthly cap reached. Nothing is billed on top — resets on the 1st (UTC).
502UPSTREAM_ERRORThe origin API was unreachable — retry shortly.

Data provenance

The EIA weekly retail survey (Tuesdays 10:00 ET): all-grades gasoline since 1993, regular since 1990, on-highway diesel since 1994; areas are the US average, the five PADD districts and California. Areas start on different dates in the official series and a few survey weeks are absent at source — served as gaps, never estimated. This product is not endorsed by or affiliated with the EIA.

Example

curl -H "X-Api-Key: sk_live_YOUR_KEY" \
  https://api.synergicapis.com/fuel/latest

Live demo

Real request against the production API — no key needed here (demo endpoint, 5 requests/minute).

Press the button to fetch the latest official figures.