US Energy Information Administration energy data from EIA API v2, covering electricity, petroleum, natural gas, coal and renewables, as SQL tables with route and facet discovery and the original units. Needs a free EIA API key.
Explore EIA API v2 routes, facets and frequencies, then retrieve energy observations and legacy series with original dimensions and units. Use an eia_api secret with api_key or EIA_API_KEY. Discover routes and facets before querying observations. Numeric values retain published units; value_text preserves the original representation. page_size controls requests and max_rows=0 retrieves all matching rows. NULL arguments are rejected. Missing optional response fields return NULL. Upstream errors fail the query; SQL WHERE filters are local.
Queries use bounded HTTP responses and retries. Credentials stay out of continuation state. See README.md for deployment and operational limits.
Sources and references