EIA Open Data API v2
US Government Data Free key (no card)
AuthenticationFree key (no card)
Rate limitUp to 5,000 JSON rows per request; no fixed public request quota published.
Documentation: www.eia.gov ยท Checked Sep 13, 2026
About
The U.S. Energy Information Administration collects the country's energy data, and this API v2 opens it all up: retail gasoline prices, electricity generation by source, oil production, natural gas storage, renewable capacity, emissions, and international energy stats. You pick a dataset from the browser, filter by date or region, and get up to 5,000 rows of JSON per request with a free key.
Details
Free to start. You may need a free key, but no credit card.
Auth: Free key (no card)
Rate limit: Up to 5,000 JSON rows per request; no fixed public request quota published.
Verified: 2026-09-13
Best for: personal business developer fun
Setup
- Register for a free key on the EIA Open Data portal.
- Use the API browser on the docs page to pick a dataset and facets (fuel, region, date).
- Copy the generated URL and add your api_key parameter.
- Fetch it from your script or browser and read the 'data' array in the JSON.
Example
https://api.eia.gov/v2/petroleum/pri/gnd/data/?api_key=YOUR_KEY&frequency=weekly&data[0]=value&sort[0][column]=period&sort[0][direction]=descUse cases
- Chart gas prices in your state over the last decade
- Compare how much electricity each state gets from solar and wind
- Fuel a newsletter with weekly oil-inventory and natural-gas numbers