Get gas prices today
get_gas_pricesFetch EIA weekly retail gasoline and diesel prices by US region, state, or city to compare current averages and track week-over-week, four-week, and year-ago changes.
Instructions
Latest EIA weekly average retail price per gallon (taxes included) of regular, midgrade or premium gasoline, all grades or diesel for the US, an EIA region, one of nine surveyed states, one of ten surveyed cities, or the region of any other state, read at call time from eia.gov: price, change from last week and four weeks ago, the price a year ago, the last six survey weeks and the next release date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | US, a state name or code ("Texas", "CA"), a city EIA prices ("Chicago", "NYC"), or an EIA region ("Midwest", "PADD 2"). Default US. A state EIA does not price is answered with its region. | |
| grade | No | Default regular. |