Fuel Prices

Weekly/monthly gasoline, diesel, and electricity retail prices from EIA, broken out by state, PADD region, and consumption share. Gasoline and diesel expose an identical set of routes under /v1/gasoline/ and /v1/diesel/.

State-level electricity price

GET /v1/electricity/state-price — monthly residential retail price by state, all 51 jurisdictions.

curl "https://api.cornerdatastore.com/v1/electricity/state-price?state=CA&start=2025-01-01" \
  -H "X-Api-Key: YOUR_API_KEY"
Response
{
  "state": "CA",
  "state_fips": "06",
  "sector": "RES",
  "units": "cents per kWh",
  "latest_available_period": "2026-08",
  "count": 20,
  "truncated": false,
  "data": [
    { "period_month": "2026-08-01", "price_cents_kwh": 29.75 },
    { "period_month": "2026-07-01", "price_cents_kwh": 29.41 }
  ]
}

Params: state (required, 2-letter abbr or FIPS), start/end (optional, YYYY-MM-DD, default last 5 years), limit (optional, default 120). count/data rows above are illustrative — field names and shape are exact.

All fuel endpoints

Coverage gaps are real, not bugs: gasoline state-price covers 9 states, diesel state-price covers CA only — other states 404 by design.

MethodEndpointDescription
GET/v1/gasoline/prices/latestLatest national/regional gasoline price
GET/v1/gasoline/pricesHistorical gasoline price series
GET/v1/gasoline/supply/latestLatest gasoline supply figures
GET/v1/gasoline/supplyHistorical gasoline supply series
GET/v1/gasoline/expenditureHousehold gasoline expenditure estimate
GET/v1/gasoline/state-priceState-level gasoline price (9-state coverage)
GET/v1/gasoline/padd-pricePrice by PADD (refining district) region
GET/v1/gasoline/state-consumption-shareState's share of national gasoline consumption
GET/v1/gasoline/district-consumption-shareCongressional district's consumption share
GET/v1/diesel/...Same 9 routes as gasoline, under /v1/diesel/ (CA-only state-price)
GET/v1/electricity/state-priceMonthly residential price by state (51 jurisdictions)
GET/v1/fuel/war-costCumulative excess fuel cost vs. a pre-event baseline
GET/v1/fuel/local-priceNearest-available local price for a ZIP/region