energy

Retail electricity price and sales for a US state by...

Retail electricity price and sales for a US state by customer sector (residential, commercial, industrial, transportation, all), monthly, newest first, from EIA. Returns average price (cents/kWh), sales (MWh), revenue ($M), and customer count per month. Public-domain, live-wrap. More granular than energy.prices (which is the national all-sector benchmark only).

get/api/energy/electricity-rates

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/energy/electricity-rates
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

statestring required

US state — two-letter postal abbreviation (e.g. CA) or full name.

sector'residential' | 'commercial' | 'industrial' | 'transportation' | 'all'

Sector.

monthsinteger

Months.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.