Fuel Prices API for U.S. diesel and gasoline data
Pull national and regional fuel prices, historical series, and market analytics from one API without cleaning government spreadsheets by hand.
EIA-published fuel price datasets
API-ready latest + historical + metrics
National and regional U.S. coverage
Source ingestion
Fuel Data Lab ingests EIA-published fuel price datasets on a recurring pipeline, preserving product and geography context.
Normalization + canonical series mapping
Records are cleaned into stable product/geo schemas with canonical series IDs so applications can query consistent endpoints.
API + analytics derivation
REST endpoints expose latest and historical prices, while derived metrics, events, spreads, and scenario tools build on the same normalized series.
curl "https://fueldatalab.com/api/v1/prices/latest?product=diesel&geo_type=national" \ -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
"product": "diesel",
"geo_type": "national",
"geo_code": "US",
"period": "2024-12-21",
"value": 3.578,
"unit": "dollars_per_gallon"
}Fuel Data API
Ship faster with clean fuel data
Use the docs for endpoint details, then jump into Fuel Data Lab to explore the product experience and widget tools.