---
title: "Electricity Rates by Utility"
method: GET
path: "/electricity-rates"
tags: ["Electricity Rates & Grid Prices"]
---

# Electricity Rates by Utility

`GET /electricity-rates`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/electricity-rates`
- Auth: API key in query parameter `apikey`

Average electricity prices in cents per kWh by utility, state and year from official public data, for homes (residential), businesses (commercial), industry and transportation, with customers, sales in MWh and revenue, the price a year earlier, the change and the state average. Each row has the kind of service the utility sells: bundled (power and delivery), delivery_only (the delivery part only, in states with retail choice), energy_only (power only) or retail_bundled (a retailer selling both).

The answer is {year, sector, total, limit, offset, sort, order, rows, about, as_of}. Before the first load the rows are empty and note says "Data is being prepared".

## Query parameters

- `state` string
- `sector` string
- `year` string
- `service_type` string
- `ownership` string
- `q` string
- `min_customers` integer
- `sort` string
- `order` string
- `limit` integer
- `offset` integer

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
