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.
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/gasoline/prices/latest | Latest national/regional gasoline price |
| GET | /v1/gasoline/prices | Historical gasoline price series |
| GET | /v1/gasoline/supply/latest | Latest gasoline supply figures |
| GET | /v1/gasoline/supply | Historical gasoline supply series |
| GET | /v1/gasoline/expenditure | Household gasoline expenditure estimate |
| GET | /v1/gasoline/state-price | State-level gasoline price (9-state coverage) |
| GET | /v1/gasoline/padd-price | Price by PADD (refining district) region |
| GET | /v1/gasoline/state-consumption-share | State's share of national gasoline consumption |
| GET | /v1/gasoline/district-consumption-share | Congressional district's consumption share |
| GET | /v1/diesel/... | Same 9 routes as gasoline, under /v1/diesel/ (CA-only state-price) |
| GET | /v1/electricity/state-price | Monthly residential price by state (51 jurisdictions) |
| GET | /v1/fuel/war-cost | Cumulative excess fuel cost vs. a pre-event baseline |
| GET | /v1/fuel/local-price | Nearest-available local price for a ZIP/region |