Description Arguments Details Author(s) Examples
– TO BE COMPLETED –
relation_id |
A case-sensitive string consisting of letters, numbers, dashes ("-") and periods (".") that uniquely identifies an EIA geoset. |
region_ids |
A character string specifying a single region identifier. |
api_key |
Required. A valid API key is required and may be obtained from EIA registration page (see details). |
num |
Number of values to be returns, to be used in conjunction with the |
start_date |
Optional start date filter—if supplied, returns data after the specified start date. Argument accepts valid numeric, character, date or datetime format object. If numeric it must be in %Y form (i.e. four digit year). If character string, it must be in year-month-date (%Y-%m-%d) format. |
end_date |
Optional end date filter—if supplied, returns data up to and including the specified end date. Argument accepts valid numeric, character, date or datetime format object. If numeric it must be in %Y form (i.e. four digit year). If character string, it must be in year-month-date (%Y-%m-%d) format. |
simplify |
Logical. If |
format |
API return format. Valid values are 'xml' or 'json'. Default is for API to return
JSON formatted output. Only applies if |
# Download EIA Relation series IDs
Users of the EIA API are required to obtain an API Key from the EIA Open Data registration page (https://www.eia.gov/opendata/register.php). A valid email address is required as part of the registration process.
Note that the number of series in a single request is limited to 100.
David Mitchell <david.pk.mitchell@gmail.com>
1 2 3 4 |
eia_cat <- eia_geoset_query(relation_id = "ELEC.PRICE.ALL.M|ENDSEC", region_ids="USA",
api_key = "Your API Key")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.