# U.S. Energy Information Administration

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

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/eia

## Actions

### List monthly electricity sales

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

**Inputs**

- State (`state`, text, required): A two-letter state code, such as CA.
- Length (`length`, number): How many observations to return. From 1 to 200.
- Offset (`offset`, number): How many observations to skip before returning a page. At least 0.

**Outputs**

- `data` (object): The response from U.S. Energy Information Administration.

**Example output**

```json
{
  "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**

- Length (`length`, number): How many observations to return. From 1 to 200.
- Offset (`offset`, number): How many observations to skip before returning a page. At least 0.

**Outputs**

- `data` (object): The response from U.S. Energy Information Administration.

**Example output**

```json
{
  "data": {
    "response": {
      "data": [
        {
          "period": "example",
          "series": "example",
          "units": "example",
          "value": "example"
        }
      ],
      "total": "example"
    }
  }
}
```
