Skip to content

EIA API: Get electricity prices

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.

eia.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by EIA.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

State, requiredstate

US state name or two-letter code, or US. Example: California.

California

Customer Type optionalcustomer_type

Customer sector: residential, commercial, industrial, transportation, or all; home and business are accepted. Example: home.

residential (default)

Output

From a run on Oct 23, 2026.
{  "state": "California",  "eia_link": "https://www.eia.gov/electricity/monthly/epm_table_grapher.php?t=epmt_5_6_a",  "latest_month": "2026-07",  "customer_type": "Residential",  "change_percent": 2.91,  "us_average_cents_per_kwh": 18.31,  "average_price_cents_per_kwh": 33.61,  "price_year_earlier_cents_per_kwh": 32.66,  "year_to_date_average_cents_per_kwh": 33.25}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
eia.gov/get_electricity_prices
Returns
state, customer type, latest month, price, price a year earlier, change percent, year-to-date average, US average, EIA link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method eia.gov/get_electricity_prices with the inputs above.

Ask your agent

  • What is the latest residential electricity price in California and how does it compare to a year ago?
  • How much do businesses in Texas pay per kWh for electricity right now, and is that above the national average?
  • Show me the newest monthly power rate for home customers in Ohio with the year-to-date average.
  • I need the current industrial electricity price in Washington state versus the US average, with the percent change from last year.
  • On eia.gov, what's the most recent commercial electricity cost in Florida and where can I find the source?
  • 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.

    eia.gov/get_fuel_prices
  • Gets AAA average gasoline and diesel prices for the US, a state, or a metro area listed on its state page, with yesterday, week, month and year-ago comparisons and record highs, as of the date AAA shows.

    gasprices.aaa.com/get_gas_prices
  • Gets GasBuddy's latest reported average regular gas price, its changes and the diesel benchmark for a US state or a listed metro area. Midgrade, premium and area low/high prices are not published with these averages; updates may lag the current day.

    gasbuddy.com/get_average_gas_prices
  • Gets current commodity prices and price movements from the Trading Economics commodities page, in the page's group order; filter by a commodity name, slug, symbol or group (e.g. copper, energy), or leave blank for all groups including Electricity.

    tradingeconomics.com/get_commodity_prices
  • Looks up an official Eurostat statistic for an EU or EEA country and the EU27 figure for the same period. Quarterly and half-yearly series return the reporting period that contains a requested month.

    ec.europa.eu/get_statistic
  • Gets a city's current Numbeo cost of living indices, monthly estimates without rent, and typical prices. Add a country or state to tell apart cities with the same name.

    numbeo.com/get_cost_of_living
  • Gets the latest U.S. Consumer Price Index inflation for a spending category, with up to 24 recent months of history. Monthly changes are seasonally adjusted; 12-month changes are not.

    bls.gov/get_inflation_rate
  • Returns official MPG or MPGe, range, annual fuel cost, five-year savings and emissions for every matching version of a vehicle. Costs use current fuel prices and 15,000 miles per year; plug-in hybrid costs include gasoline and electricity.

    fueleconomy.gov/get_fuel_economy