Skip to content
centsperhour
Menu

Open electricity price data

Average household electricity prices for 59 countries and 51 US states, from official sources, as free JSON and CSV. Use them in your app, research or article, with credit.

Endpoints

Both files are static, cached at the edge and rebuilt whenever a source publishes new data.

GET https://centsperhour.com/api/v1/prices.jsonGET https://centsperhour.com/data/electricity-prices.csv

Example:

curl -s https://centsperhour.com/api/v1/prices.json | jq '.countries[] | select(.code=="DE")'

What's in it

  • countries: ISO code, name, currency, price per kWh in local currency and in USD, data period, source and source URL.
  • usStates: average residential price per kWh in USD by state, plus the same month a year earlier.
  • upstreamSources, updated and exchangeRatesDate (USD figures use European Central Bank reference rates and are for comparison only).

License and credit

The dataset is licensed under CC BY 4.0. Please credit it as: Source: CentsPerHour (centsperhour.com), based on data from the U.S. EIA, Eurostat, Ofgem and the national regulators named in each row, with a link to https://centsperhour.com. The underlying figures come from the U.S. Energy Information Administration, Eurostat, Ofgem and the national regulators named on our Data sources page; their own terms also apply.

Please cache the files rather than requesting them on every page view.

Need more?

We work with businesses that need more than the open files: slab and time-of-use tariffs, more countries and regions, price history, guaranteed update times, or a calculator in your own branding for your website or app.

Email uzairxdev@gmail.com with what you need.