U.S. Energy Information Administration logo
Skip to sub-navigation

OPEN DATA

Committed to making energy data more accessible, understandable,
relevant, and responsive to your needs.

Notice: EIA will discontinue support for its legacy API (APIv1) in November, 2022. Excel add-in v1 sheets will continue to function as they are. Please refer to our documentation for the APIv2 interaction methods and our APIv2 query browser to view the data.

Embedding EIA Charts and Maps on Your Website

EIA has added functionality to its data tools to allow users to easily embed widgets of EIA's interactive charts and graphs onto their website. This allows users to easily add official statistics from U.S. Energy Administration's API to their websites. No API key, programming, or library installation is required.

To embed a visualization:


click image to enlarge
  1. Use any of the following EIA data tools to create a chart or a map:
  2. Click on the "embed" option in the download menu (see image to right) to preview your visualization
  3. Configure (e.g. change dates or add a drill-down interactive) then copy and paste the tag into your web page

Note that the source key icons API Key from anywhere on the EIA website to link to the time series' page in the API Query Browser to navigate to any of the 1.2 million time series in EIA's data API, and select the "Show me how to embed..." links.

Sample Dashboards

The following sample dashboards demonstrate how a handful of embedded visualizations can easily be assembled to tell a story:

  1. Sample Electricity Dashboard
  2. Sample World Petroleum Dashboard

Sample Visualizations

Interactive Chart (125 most recent data points)

Interactive Chart

Interactive Chart with Drill-Down

EIA offers its widgets to the public free of charge under the BSD2 open source license. The library is offered as-is, without support or warranty. User are free to fork it on Github and modifiy the library to suit their needs. The widget uses third-party libraries which may require a license. License details are found on all embed preview and instructions page.

Statistics
Analysis
Tools
Education
News

Petroleum & Other Liquids

Crude oil, gasoline, heating oil, diesel, propane, and other liquids including biofuels and natural gas liquids.

Natural Gas

Exploration and reserves, storage, imports and exports, production, prices, sales.

Electricity

Sales, revenue and prices, power plants, fuel use, stocks, generation, trade, demand & emissions.

Coal

Reserves, production, prices, employment and productivity, distribution, stocks, imports and exports.

Nuclear & Uranium

Uranium fuel, nuclear reactors, generation, spent fuel.

Renewable & Alternative Fuels

Includes hydropower, solar, wind, geothermal, biomass and ethanol.

EIA Survey Forms

Forms EIA uses to collect energy data including descriptions, links to survey instructions, and additional information.

Total Energy

Comprehensive data summaries, comparisons, analysis, and projections integrated across all energy sources.

U.S. States

State energy information, including overviews, rankings, data, and analyses.

International

International energy information, including overviews, rankings, data, and analyses.

Environment

Greenhouse gas data, voluntary reporting, electric power plant emissions.

Data Tools, Apps, & Maps

Tools to customize searches, view specific data sets, study detailed documentation, and access time-series data.

Open Data

EIA's free and open data available as API, Excel add-in, bulk files, and widgets

EIA Beta

Come test out some of the products still in development and let us know what you think!

Open Source Code

EIA's open source code, available on GitHub.

RSS Feeds

Subscribe to feeds for updates on EIA products including Today in Energy and What's New.