Description Usage Arguments Value Examples
Request data from the Bureau of Labor Statistics API
1 2 |
seriesid |
character vector of series identifiers |
startyear |
integer start year for the data |
endyear |
integer end year for the data (maximum of 20 years returned) |
registrationKey |
BLS API registration key, required for V2 API. Freely available from here: http://data.bls.gov/registrationEngine/ |
catalog |
boolean include catalog data (currently not returned); requires registrationKey |
calculations |
boolean include calculations data; requires registrationKey |
annualaverage |
boolean include annual average ("M13") data; requires registrationKey |
Returns a list with names status (character), responseTime (integer), message (list of character), Results (data.table). Results has a date field that marks the end of the month.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.