# EIA Energy Data: Oil, Gas & Fuel Statistics

Official EIA energy statistics: weekly crude oil and gasoline inventories, refinery runs, natural gas storage, prices, production, Short-Term Energy Outlook forecasts, coal and international data. Search 100,000+ series by keyword or ID.

$0.16 per 1,000 rows

[Get an API key](https://pushbuild.com/apis/app/signup?api=eia-energy-data)

Example request

```
POST /eia-energy-data/run
{
  "search": "weekly ending stocks crude oil excluding spr",
  "maxItems": 20
}
```

## What a response looks like

POST /eia-energy-data/run{"maxItems": 5, "search": "weekly ending stocks crude oil excluding spr"}

```
{"count": 5, "items": [{ "date": "2026-10-30", "frequency": "weekly", "lastUpdated": "2026-11-04T18:44:40-05:00", "name": "U.S. Ending Stocks excluding SPR of Crude Oil, Weekly", "period": "2026-10-30", "seriesId": "PET.WCESTUS1.W", "units": "Thousand Barrels", "value": 409760} ]}
```

| date | frequency | lastUpdated | name | period | seriesId |
| --- | --- | --- | --- | --- | --- |
| 2026-10-30 | weekly | 2026-11-04T18:44:40-05:00 | U.S. Ending Stocks excluding SPR of Crude Oil,… | 2026-10-30 | PET.WCESTUS1.W |
| 2026-10-23 | weekly | 2026-11-04T18:44:40-05:00 | U.S. Ending Stocks excluding SPR of Crude Oil,… | 2026-10-23 | PET.WCESTUS1.W |
| 2026-10-16 | weekly | 2026-11-04T18:44:40-05:00 | U.S. Ending Stocks excluding SPR of Crude Oil,… | 2026-10-16 | PET.WCESTUS1.W |
| 2026-10-09 | weekly | 2026-11-04T18:44:40-05:00 | U.S. Ending Stocks excluding SPR of Crude Oil,… | 2026-10-09 | PET.WCESTUS1.W |
| 2026-10-02 | weekly | 2026-11-04T18:44:40-05:00 | U.S. Ending Stocks excluding SPR of Crude Oil,… | 2026-10-02 | PET.WCESTUS1.W |

Real rows returned by this API on 2026-11-09 for the request shown.

## What it returns

Official statistics from the U.S. Energy Information Administration (public domain), from EIA's complete bulk data files, with full history.

- **Petroleum**: weekly crude oil, gasoline and distillate inventories (US, PADD regions, Cushing), SPR, refinery inputs and utilization, imports/exports, product supplied, spot and retail prices.
- **Natural gas**: weekly working gas in storage by region, Henry Hub and citygate prices, production and consumption.
- **Electricity**: retail price (cents/kWh), sales, revenue and customers by state and sector (ELEC.PRICE.MA-RES.M style IDs), generation and fuel use by plant and state. For a ready-made rates table use the electricity-rates API.
- **Short-Term Energy Outlook**: EIA's monthly forecasts for prices, production and demand.
- **Total energy**, **coal** and **international** series.

## Request

`POST https://api.pushbuild.com/eia-energy-data/run` with a JSON body. Send your key in the `X-API-Key` header.

| Field | Type | Description |
| --- | --- | --- |
| `dataset` | string: PET, NG, STEO, TOTAL, COAL, INTL, ELEC | EIA data category. Default: `"PET"`. |
| `search` | string | Keywords that must all appear in the series name, e.g. 'weekly ending stocks crude oil excluding spr' or 'cushing'. |
| `seriesIds` | list of strings | Exact EIA series IDs, e.g. WCESTUS1.W (crude stocks ex-SPR), NW2_EPG0_SWO_R48_BCF.W (Lower 48 gas storage). |
| `frequency` | string: any, W, D, M, Q, A | Only series of this frequency. Default: `"any"`. |
| `output` | string: observations, series | Use the series list to discover IDs. Default: `"observations"`. |
| `dateFrom` | string | YYYY-MM-DD. |
| `dateTo` | string | YYYY-MM-DD. |
| `lastN` | integer | Default 12 when no dates are given; 0 = all. |
| `maxItems` | integer | Maximum items to return (1-500). Default: `100`. |

### Example

```
curl -X POST https://api.pushbuild.com/eia-energy-data/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"search": "weekly ending stocks crude oil excluding spr", "maxItems": 20}'
```

### Response

```
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
```

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

## Pricing

Pay only for results returned: $0.16 per 1,000 rows. No charge for errors or empty searches.

| Rows | Cost |
| --- | --- |
| 1,000 | $0.16 |
| 10,000 | $1.60 |
| 100,000 | $16.00 |
| 1,000,000 | $160.00 |
| 6,249 a month | Free ($1 monthly credit) |

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/eia-energy-data`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [UK Electricity Generation API](https://pushbuild.com/apis/uk-electricity-generation.html): Great Britain electricity generation by fuel type from Elexon BMRS: 5-minute output in MW for gas, wind, nuclear, biomass, solar, hydro, coal, pumped storage and each interconnector..
- [Europe Power Price API](https://pushbuild.com/apis/europe-power-prices.html): European electricity market data from Energy-Charts (Fraunhofer ISE): day-ahead power prices for any bidding zone and public net generation by fuel type (wind, solar, coal, gas, nuclear) in 15-minute steps..
- [US Power Grid API](https://pushbuild.com/apis/us-power-grid.html): Real-time US electricity grid data from CAISO (California), ERCOT (Texas), NYISO (New York) and MISO (Midwest): generation by fuel (gas, coal, nuclear, wind, solar, hydro, storage, imports), demand, renewable and carbon-free share.
- [SingStat API: Singapore CPI, Core Inflation, GDP & NODX API](https://pushbuild.com/apis/singapore-singstat-data.html): Singapore Department of Statistics data from the official Table Builder API: CPI, MAS core inflation, GDP, unemployment, retail sales, industrial production and non-oil domestic exports presets, any Table Builder table, and table search..
- [Email Validator API](https://pushbuild.com/apis/email-validator.html): Validate email lists in bulk without sending mail: syntax, domain and MX records, disposable and temporary address detection, role-based inboxes (info@, sales@), free-provider flag and typo suggestions (gmial.com → gmail.com).
- [ECB Data API: Euro Rates, Yields, Euribor, M3 & FX API](https://pushbuild.com/apis/ecb-data-portal.html): European Central Bank data from the official ECB Data Portal: deposit and refinancing rates, euro short-term rate, AAA euro yield curve, Euribor, M1/M3 growth, bank lending rates, unemployment and ECB reference FX rates.

## Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

[hello@pushbuild.com](mailto:hello@pushbuild.com?subject=API%20question)

## New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

---
As of 2026-12-03. Source: https://pushbuild.com/apis/eia-energy-data.html
