Daily Local Gas Prices
Daily average retail pump prices in US dollars per gallon for the United States, every state and DC, about 470 metro areas and about 3,100 counties: regular, midgrade, premium and diesel (counties: regular). A separate daily series from the weekly survey of /gas-prices; the two are never combined.
All filters are optional. The answer is {total, limit, offset, sort, order, unit, as_of, rows, about}; as_of is the newest day.
Request
- Base URL: https://api.dataporium.io
- URL: https://api.dataporium.io/gas-prices/local
- Auth: API key in query parameter apikey
Query parameters
Area code(s) or exact name(s), comma-separated: US, a state code (AZ), a 5-digit county FIPS code (04013) or a metro area code (a CBSA code such as 38060, or a code like CA_ORANGE_COUNTY)
country, state, metro or county (comma-separated)
US state: 2-letter code or name
County name with or without the word County (add state)
5-digit county FIPS code(s)
Part of a metro area name
regular, midgrade, premium or diesel (comma-separated; default all)
First day: YYYY-MM-DD, YYYY-MM or YYYY
Last day: YYYY-MM-DD, YYYY-MM or YYYY
true = only the newest day, with the changes
price_date (default), price_usd, area_name or area_code; with latest=true area_name (default), price_usd, change_1d, change_1w, change_1m, change_1y or change_1y_pct
asc or desc
Rows per page, 1 to 1000 (default 100)
Rows to skip, for paging
Response
Successful response (JSON).
Changes
No recorded changes to this operation across all 1 revision of this API.