query historical daily gasoline and diesel retail prices by PADD region from the EIA API v2 petroleum/pri/gnd route
domain: api.eia.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Register for a free EIA API key
Query /v2/petroleum/pri/gnd/facet/series/ to discover valid series IDs (e.g. regular gasoline vs on-highway diesel, by PADD/region)
Query /v2/petroleum/pri/gnd/facet/duoarea/ to discover valid PADD/region area codes
Request data via /v2/petroleum/pri/gnd/data/ with facets[series][]=..., facets[duoarea][]=..., an explicit frequency value, and data[]=value
Sort results by period descending and paginate with offset/length
Convert returned price series into a time series keyed by period and area for trend analysis
Known gotchas
This route mixes multiple frequencies (weekly/monthly/annual) across different series — the frequency value must match the specific series requested or the call returns zero rows
Series IDs encode both fuel grade and region — picking the wrong series ID silently returns the wrong geography, not an error
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?