bls_request | R Documentation |
bls_request()
will execute queries against the BLS API. Queries are
generated using one of the following query-generating functions:
query_series()
, query_n_series()
, query_popular_series()
,
query_all_surveys()
, query_survey_info()
, query_latest_observation()
.
The result is the "Results" block as defined in the API v2 signatures at
https://www.bls.gov/developers/api_signature_v2.htm
bls_request(
query,
api_key = bls_get_key(),
user_agent = "http://github.com/groditi/blsR",
process_response = .process_response,
...
)
query |
list generated by one of the query generating functions |
api_key |
Optional. An API key string. Defaults to the value returned by
|
user_agent |
string, optional |
process_response |
function, optional. processes the |
... |
further arguments will be passed to |
a list of information returned by the API request
Other blsR-requests:
get_all_surveys()
,
get_latest_observation()
,
get_n_series_table()
,
get_n_series()
,
get_popular_series()
,
get_series_tables()
,
get_series_table()
,
get_series()
,
get_survey_info()
,
reduce_spanned_responses()
,
span_series_request()
## Not run:
library(blsR)
uer_query <- query_series('LNS14000000') #monthly unemployment rate series
uer_results <- bls_request(uer_query) #API response
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.