> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/eia-electricity.md).

# EIA electricity prices in Duaer

In Duaer: US EIA: monthly average retail electricity price, sales, and customers by state and sector. One successful search uses 1 credit.
## What you get

Duaer EIA electricity prices reads the US Energy Information Administration retail sales data: average price in cents per kWh, sales, and customers, newest month first. Duaer holds the upstream API key; you only send your Duaer key.

Pick Duaer Data → EIA electricity prices in the node creator, or open the [data market](/getting-started/data-market.md). Related: [EIA fuel spot prices](/getting-started/eia-petroleum.md), [Solar and climate (NASA POWER)](/getting-started/nasa-power.md).

## When to use it

- Compare residential electricity prices between states.
- Track the monthly electricity price trend in one state.

## When not to use it

- Fuel prices. Use [EIA fuel spot prices](/getting-started/eia-petroleum.md).
- Solar potential at a site. Use [Solar and climate (NASA POWER)](/getting-started/nasa-power.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → EIA electricity prices.
2. Fill State (such as CA, or US). Optional: Sector (residential, commercial, industrial, transportation, or all).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/eia-electricity?state=CA
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-eia-electricity
description: >-
  Duaer EIA electricity prices. US EIA: monthly average retail electricity price, sales, and customers by state and sector.
  One successful search uses 1 Duaer credit.
---

# Duaer EIA electricity prices

Duaer EIA electricity prices reads the US Energy Information Administration retail sales data: average price in cents per kWh, sales, and customers, newest month first. Duaer holds the upstream API key; you only send your Duaer key.

## When to use

- Compare residential electricity prices between states.
- Track the monthly electricity price trend in one state.

## When not to use

- Fuel prices. Use https://skills.duaer.com/eia-petroleum.md.
- Solar potential at a site. Use https://skills.duaer.com/nasa-power.md.

## Call

`GET https://api.duaer.com/v1/data/eia-electricity?state=CA`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `state` or `sector`.

- `state` — Two-letter code such as CA, or US for the country. Default US.
- `sector` — Optional. `residential`, `commercial`, `industrial`, `transportation`, or `all`. Default residential.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/eia-electricity?state=CA` — California residential prices by month.
- `GET https://api.duaer.com/v1/data/eia-electricity?state=US&sector=industrial` — US industrial prices by month.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `period`, `state`, `stateName`, `sector` — month and place.
- `priceCentsPerKwh` — average retail price.
- `salesGwh`, `customers` — electricity sold and number of customers.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/eia-petroleum.md — Duaer EIA fuel spot prices
- https://skills.duaer.com/nasa-power.md — Duaer Solar and climate (NASA POWER)

```
## Questions

### How many credits does a EIA electricity prices search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### What unit does Duaer EIA electricity prices use?

Duaer returns the average retail price in cents per kWh, an average across bills, not one tariff.

## Related

- [EIA fuel spot prices in Duaer](https://doc.duaer.com/getting-started/eia-petroleum.md)
- [Solar and climate (NASA POWER) in Duaer](https://doc.duaer.com/getting-started/nasa-power.md)

