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

# Electricity Rates by State

`GET /electricity-rates/states`

## Request

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

Average electricity price, customers, sales, revenue, the average monthly bill and the average use per customer for every state, DC and the US, by sector and year, with the change from a year earlier.

## Query parameters

- `state` string
- `sector` string
- `year` string
- `year_from` integer
- `year_to` integer
- `sort` string

## 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)
