Fuel Surcharge API inputs for pricing automation
Use standardized diesel and gasoline price data to power surcharge tables, updates, and calculation workflows with less manual work.
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
}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.