# EIA API

> 2 public methods for EIA (eia.gov), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by EIA.

- Page: https://fous.com/methods/eia.gov

## Methods

### [Get electricity prices](https://fous.com/methods/eia.gov/get-electricity-prices.md)

`eia.gov/get_electricity_prices`, read. Gets a state's latest monthly electricity price for a customer type from EIA. It also returns the year-over-year change, the year-to-date average and the matching US average.

Returns: state, customer type, latest month, price, price a year earlier, change percent, year-to-date average, US average, EIA link

### [Get weekly fuel prices](https://fous.com/methods/eia.gov/get-fuel-prices.md)

`eia.gov/get_fuel_prices`, read. Gets the latest weekly EIA retail gasoline and on-highway diesel prices for a U.S. area, with changes from the prior week and from 52 weeks earlier.

Returns: area, week date, regular/midgrade/premium/all-grades gasoline and diesel prices with changes, EIA link, history
