Skip to contents

API Endpoints

High-level functions to retrieve data from EIA API endpoints in one step.

eia2()
Retrieve data from the EIA API
eia1_series() eia1_series_req()
Request Data Using Legacy APIv1 Series ID Compatibility Endpoint

Key Management

eia_set_key() eia_get_key()
Set and get API key

Lower Level Workflow

Control each step: build requests -> perform requests -> extract data

eia2_req()
Request data from EIA API version 2
eia1_series() eia1_series_req()
Request Data Using Legacy APIv1 Series ID Compatibility Endpoint
eia2_facet()
Determine Valid Values of a Facet
eia2_req_perform()
Perform an eia2 request
eia2_resp_data() eia2_resp_meta_routes() eia2_resp_meta_summary()
Extract formatted data from responses