U.S. Energy Information Administration

App · 2 actions

Read official U.S. electricity sales, prices and weekly gasoline prices for reports and alerts.

List monthly electricity sales

Get monthly retail sales, average prices and revenue by state and customer sector.

Inputs

StatestatetextRequired
A two-letter state code, such as CA.
Lengthlengthnumber
How many observations to return.From 1 to 200.
Offsetoffsetnumber
How many observations to skip before returning a page.At least 0.

Outputs

dataobject
The response from U.S. Energy Information Administration.
Example output
{
  "data": {
    "response": {
      "data": [
        {
          "period": "example",
          "price": "example",
          "price-units": "example",
          "revenue": "example",
          "revenue-units": "example",
          "sales": "example",
          "sales-units": "example",
          "sectorName": "example",
          "sectorid": "example",
          "stateDescription": "example",
          "stateid": "example"
        }
      ],
      "total": "example"
    }
  }
}

List weekly U.S. gasoline prices

Get the latest weekly national average retail prices for regular gasoline.

Inputs

Lengthlengthnumber
How many observations to return.From 1 to 200.
Offsetoffsetnumber
How many observations to skip before returning a page.At least 0.

Outputs

dataobject
The response from U.S. Energy Information Administration.
Example output
{
  "data": {
    "response": {
      "data": [
        {
          "period": "example",
          "series": "example",
          "units": "example",
          "value": "example"
        }
      ],
      "total": "example"
    }
  }
}

On this page