The eia package provides API access to data from the U.S. Energy Information Administration (EIA).
Leonawicz M, Hoff M (2024). eia: API Wrapper for 'US Energy Information Administration' Open Data. R package version 0.4.1https://docs.ropensci.org/eia/ (website) https://github.com/ropensci/eia, https://docs.ropensci.org/eia/ (website) https://github.com/ropensci/eia.