# 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.

Unofficial. Not affiliated with or endorsed by EIA.

- Page: https://fous.com/methods/eia.gov/get-electricity-prices
- Method: `eia.gov/get_electricity_prices`, version 1
- Website: eia.gov
- Returns: state, customer type, latest month, price, price a year earlier, change percent, year-to-date average, US average, EIA link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `state` | string | yes | `"California"` | US state name or two-letter code, or US. Example: California. |
| `customer_type` | string | no |  | Customer sector: residential, commercial, industrial, transportation, or all; home and business are accepted. Example: home. Default "residential". |

## Output

From a run on Oct 23, 2026. Its input:

```json
{
  "state": "California"
}
```

Its output:

```json
{
  "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
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"eia.gov/get_electricity_prices","input":{"state":"California"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## 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?

## Input schema

```json
{
  "type": "object",
  "required": [
    "state"
  ],
  "properties": {
    "state": {
      "type": "string",
      "description": "US state name or two-letter code, or US. Example: California."
    },
    "customer_type": {
      "type": "string",
      "default": "residential",
      "description": "Customer sector: residential, commercial, industrial, transportation, or all; home and business are accepted. Example: home."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "state",
    "customer_type",
    "latest_month",
    "eia_link"
  ],
  "properties": {
    "state": {
      "type": "string"
    },
    "eia_link": {
      "type": "string"
    },
    "latest_month": {
      "type": "string"
    },
    "customer_type": {
      "type": "string"
    },
    "change_percent": {
      "type": [
        "number",
        "null"
      ]
    },
    "us_average_cents_per_kwh": {
      "type": [
        "number",
        "null"
      ]
    },
    "average_price_cents_per_kwh": {
      "type": [
        "number",
        "null"
      ]
    },
    "price_year_earlier_cents_per_kwh": {
      "type": [
        "number",
        "null"
      ]
    },
    "year_to_date_average_cents_per_kwh": {
      "type": [
        "number",
        "null"
      ]
    }
  }
}
```

## See more

- [EIA API: Get weekly fuel prices](https://fous.com/methods/eia.gov/get-fuel-prices.md): 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.
- [AAA API: Get gas prices](https://fous.com/methods/gasprices.aaa.com/get-gas-prices.md): 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.
- [GasBuddy API: Get average gas prices](https://fous.com/methods/gasbuddy.com/get-average-gas-prices.md): 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.
- [Trading Economics API: Get commodity prices](https://fous.com/methods/tradingeconomics.com/get-commodity-prices.md): 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.
- [European Union API: Get Eurostat statistic for a country](https://fous.com/methods/ec.europa.eu/get-statistic.md): 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.
- [Numbeo API: Get cost of living](https://fous.com/methods/numbeo.com/get-cost-of-living.md): 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.
- [BLS API: Get inflation rate](https://fous.com/methods/bls.gov/get-inflation-rate.md): 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.
- [FuelEconomy.gov API: Get fuel economy](https://fous.com/methods/fueleconomy.gov/get-fuel-economy.md): 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.
- [All EIA methods](https://fous.com/methods/eia.gov.md)
