入门
在 Duaer 里查美国电价(EIA)
在 Duaer 里:美国能源信息署:按州与用户类别的月度平均零售电价、售电量与用户数。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「美国电价(EIA)」:美国能源信息署:按州与用户类别的月度平均零售电价、售电量与用户数。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 美国电价(EIA),或打开 数据市场。相关:原油与燃油现货价(EIA)、太阳辐射与气候(NASA POWER)。
适合做什么
- 比较各州居民电价。
- 跟踪某州电价的月度走势。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → EIA electricity prices。
- 填 State(如 CA,或 US);Sector 可选(residential、commercial、industrial、transportation 或 all)。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/eia-electricity?state=CA
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
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§or=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)
常见问题
Duaer 的美国电价(EIA)检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 美国电价(EIA)的价格单位是什么?
Duaer 返回每千瓦时的平均零售价(美分),是含各项费用的平均值,不是某一电价套餐。
同组