Gas Prices

Nearest Local Gas Price

The most local daily gas prices for a place: its county (regular), the metro area the county belongs to and its state (regular, midgrade, premium, diesel), most local first.

Give at least one of state, county + state, county_fips or metro_code. The answer is {query, areas, nearest, as_of, unit, about}.

get/gas-prices/local/nearest

Request

  • Base URL: https://api.dataporium.io
  • URL: https://api.dataporium.io/gas-prices/local/nearest
  • Auth: API key in query parameter apikey

Query parameters

statestring

US state: 2-letter code or name (needed with county)

countystring

County name with or without the word County

county_fipsstring

5-digit county FIPS code

metro_codestring

Metro area code (a CBSA code or a code from /gas-prices/local); used when no county is given

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.