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 retired its legacy API (APIv1) on March 13th, 2023. Excel add-in v1 sheets will continue to function as they are. Please refer to our documentation for the APIv2 interaction methods.

Sample Electricity Dashboard

This page was created in 30 minutes using only embedded visualizations. No database or programming was required. To learn how to add interactive visualizations of EIA data to your website, visit the embedding webpage.

The next two map embeds are from the Electricity Data Browser

<iframe id="eia_widget" style="width: 50%; height: 300px;" src="//www.eia.gov/opendata/embed/iframe.php?api_key=YOUR_KEY_HERE&periods=120&analysis=bubble&map=us_merc_en&geoset_id=ELEC.GEN.ALL-99.M&relation_id=ELEC.GEN.ALL-99.M|FUEL&regions=USA&relation_mode=area &num=7D"></iframe>


High prices not only affect consumer pocketbook, it affect the viability of solar (along with sunshine and tax breaks)


The next two maps embed are from the International Energy Browser

Global usage by country shows total Chinese usage surpassing the U.S. in 2011

<iframe id="eia_widget" style="width: 50%; height: 500px;" src="//www.eia.gov/opendata/embed/iframe.php?api_key=YOUR_KEY_HERE&geoset_id=INTL.2-2-BKWH.A&map=world&relation_mode=line&regions=USA;CHN"></iframe>


The growth of electricity usage (and CO2 emissions) in China eclipses the rest of the world:

<iframe id="eia_widget" style="width: 50%; height: 500px" src=""//www.eia.gov/opendata/embed/iframe.php?api_key=YOUR_KEY_HERE&analysis=indexval&start=2005&geoset_id=INTL.2-2-BKWH.A&map=world&relation_mode=line&regions=USA;CHN"></iframe>


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.