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.
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.
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.
The following sample dashboards demonstrate how a handful of embedded visualizations can easily be assembled to tell a story:
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.