Developer API

Historical US electricity prices,
one query away.

25 years of monthly electricity rates — all 50 states, residential, commercial, industrial, and transportation sectors. Returns JSON or CSV.

Live demo

Try the API right now

Live data from kwhpulse.com. Try a state code (OR, TX, CA) or ZIP (97333, 94102, 10001).

Why kWhPulse

Everything you need. Nothing you don’t.

2001–Present Coverage

Over 25 years of monthly electricity rate history sourced directly from U.S. EIA Form 861M data — consistently updated.

All 50 States + DC

Full geographic coverage across every U.S. state and the District of Columbia, enabling nationwide analysis or per-state comparisons.

ZIP, Utility, or State

Look up rates by 5-digit ZIP code, utility ID, or 2-letter state code. Pick the resolution that fits your use case.

JSON & CSV

Every endpoint returns JSON by default. Add format=csv to get a download-ready spreadsheet with a single query parameter.

Inflation-Adjusted

Request CPI-adjusted prices in real dollars to compare rates across decades on an apples-to-apples basis. One extra query parameter.

Simple REST API

Clean, predictable REST endpoints. API key in a single header. Consistent JSON schema. You can be hitting live data within two minutes of signup.

Pricing

Start free. Scale when you need to.

All tiers include full historical coverage and all four customer sectors.

Free
Hobby
Pro
Business
Price $0 $9/mo $99/mo
Requests / month 1,000 50,000 5,000,000
Sectors All All All
CSV export
Inflation adjustment
Email support
Priority support
99.9% SLA
Sign up free Get started Contact us
Quickstart

Live data in under 60 seconds

Fetch Oregon residential electricity prices with one call. Swap the state code for any U.S. state.

curl https://api.kwhpulse.com/v1/prices/state/OR?sector=RES \
  -H "x-api-key: YOUR_API_KEY"
import requests

url = "https://api.kwhpulse.com/v1/prices/state/OR"
headers = {"x-api-key": "YOUR_API_KEY"}
params = {"sector": "RES"}

resp = requests.get(url, headers=headers, params=params)
data = resp.json()

print(data["state"], "—", len(data["data"]), "monthly records")
const resp = await fetch(
  "https://api.kwhpulse.com/v1/prices/state/OR?sector=RES",
  { headers: { "x-api-key": "YOUR_API_KEY" } }
);
const data = await resp.json();
console.log(data.state, "—", data.data.length, "monthly records");
Use Cases

Built for every developer who cares about energy

Solar payback calculators

Show customers real break-even timelines using actual local rate history, not rough estimates.

EV charging cost apps

Calculate the true fuel cost of electric vehicles using ZIP-level residential electricity rates over time.

Real estate utility estimates

Give buyers a data-backed view of electricity costs for any address — state or ZIP-level, any sector.

Energy economics research

Query 25 years of monthly state-level data in bulk. Export to CSV for regression modeling or econometric analysis.

Carbon footprint dashboards

Pair electricity pricing with emissions factors to build region-aware carbon cost calculators for any app or report.

Bill savings tools

Help consumers understand how their rates compare to state averages and historical trends — with real numbers behind it.

What developers say

Trusted by builders working on energy

“Replace with a real customer quote.”
— Customer name, Company
“Replace with a real customer quote.”
— Customer name, Company
“Replace with a real customer quote.”
— Customer name, Company

Start building in 60 seconds

Free tier. No credit card. Full 25-year dataset from your first request.

Get your free API key
Free signup

Get your API key

Enter your email — we’ll generate a key instantly. No credit card required.