← Agent Data Hub · Search endpoints · /llms.txt
Weekly average retail prices at the pump in the United States, including taxes, in US dollars per gallon, from the EIA survey of filling stations: regular gasoline (all formulations, since 1990) and No. 2 diesel (on-highway, since 1994). Published every Monday. Options for fuel: gasoline (U.S. regular gasoline, all formulations, retail (EIA EMM_EPMR_PTE_NUS_DPG)), diesel (U.S. No. 2 diesel, on-highway, retail (EIA EMD_EPD2D_PTE_NUS_DPG)).
GET https://api.agentdatahub.de/api/v1/call/us-retail-fuel-prices?fuel=gasoline&compact=1
Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"us-retail-fuel-prices"}
curl:
curl -s 'https://api.agentdatahub.de/api/v1/call/us-retail-fuel-prices?fuel=gasoline&compact=1'
Python (standard library only):
import json, urllib.request
url = "https://api.agentdatahub.de/api/v1/call/us-retail-fuel-prices?fuel=gasoline&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
data = json.load(r)
print(json.dumps(data, indent=2)[:2000])
Google Sheets:
=IMPORTDATA("https://api.agentdatahub.de/api/v1/history/us-retail-fuel-prices?fuel=gasoline&_order=desc&_limit=500&format=csv")
The recorded history of this call as CSV, newest first. Excel: Data → From Web with the same address.
fuel | gasoline or diesel (default: gasoline) (required; several comma-separated to compare, up to 10): gasoline, diesel |
from | Optional start YYYY, YYYY-MM or YYYY-MM-DD |
to | Optional end YYYY, YYYY-MM or YYYY-MM-DD |
last | Number of most recent periods when no from/to is given, 1-500 (default: 13) |
{
"apiId": "us-retail-fuel-prices",
"trust": "checked",
"data_freshness": "cached",
"data": {
"fuel": "gasoline",
"series": "U.S. regular gasoline, all formulations, retail (EIA EMM_EPMR_PTE_NUS_DPG)",
"unit": "USD per gallon",
"frequency": "W",
"latest": {
"period": "2026-11-30",
"value": 3.505
},
"history": [
{
"period": "2026-09-07",
"value": 4.157
},
{
"period": "2026-09-14",
"value": 4.319
},
{
"period": "2026-09-21",
"value": 4.478
},
{
"period": "2026-09-28",
"value": 4.465
},
{
"period": "2026-10-05",
"value": 4.354
},
{
"period": "2026-10-12",
"value": 4.331
},
{
"period": "2026-10-19",
"value": 4.284
},
{
"period": "2026-10-26",
"value": 4.269
},
{
"period": "2026-11-02",
"value": 4.153
},
{
"period": "2026-11-09",
"value": 3.995
},
{
"period": "2026-11-16",
"value": 3.805
},
{
"period": "2026-11-23",
"value": 3.642
},
{
"period": "2026-11-30",
"value": 3.505
}
],
"available": {
"from": "1990-08-20",
"to": "2026-11-30",
"points": 1888
},
"note": "Weekly values, dated on the Monday of the survey.",
"verification": {
"checked_at": "2026-12-01T23:27:48.309Z",
"checks": [
{
"period": "2026-10-26",
"field": "value",
"expected": 4.269,
"ok": true,
"evidence": "EIA \"Weekly Retail Gasoline and Diesel Prices\" summary table (pet_pri_gnd_dcus_nus_w.htm), U.S. Regular, 10/26/26: 4.269 (read 2026-11-07)"
}
]
},
"source": {
"publisher": "U.S. Energy Information Administration (EIA)",
"licence": "Public domain (U.S. government publication); EIA asks for an acknowledgment with the publication date",
"licence_url": "https://www.eia.gov/about/copyrights_reuse.php",
"source_url": "https://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=EMM_EPMR_PTE_NUS_DPG&f=W",
"series_title": "Weekly U.S. Regular All Formulations Retail Gasoline Prices (Dollars per Gallon)"
},
"attribution": "Source: U.S. Energy Information Administration"
},
"source": "U.S. Energy Information Administration (EIA)",
"source_url": "https://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=EMM_EPMR_PTE_NUS_DPG&f=W",
"license": "Public domain (U.S. government publication); EIA asks for an acknowledgment with the publication date",
"licence_status": "yellow",
"as_of": "2026-11-30",
"checked": "2026-12-01"
}
Recorded history available: /api/v1/history/us-retail-fuel-prices?fuel=gasoline
| Source | U.S. Energy Information Administration (EIA) |
| License | Public domain (U.S. government publication); EIA asks for an acknowledgment with the publication date |
| Source URL | https://www.eia.gov/about/copyrights_reuse.php |
| Terms | https://www.eia.gov/about/copyrights_reuse.php |
| Category | Energy & Climate › Oil & Fuel Prices · more: world-air-quality · world-climate-normals · coal-by-country |