| bdp_data | R Documentation |
Retrieve time series data from the BPstat API.
bdp_data(
domain_id,
dataset_id,
series_ids = NULL,
start_date = NULL,
end_date = NULL,
last_n = NULL,
updated_after = NULL,
lang = "en"
)
domain_id |
( |
dataset_id |
( |
series_ids |
( |
start_date |
( |
end_date |
( |
last_n |
( |
updated_after |
( |
lang |
( |
The BPstat API uses a two-step workflow: first look up the series metadata with
bdp_series() to find the domain_id and dataset_id, then use those to fetch the actual
observations.
You can browse available series at the BPstat portal.
A data.table::data.table() with the requested data.
https://bpstat.bportugal.pt/data/docs
Other data:
banxico_data(),
bbk_data(),
bbk_series(),
bcb_data(),
bcb_expectations(),
bcb_fx_rates(),
bcb_inflation(),
bcb_selic(),
bcb_top5(),
bde_data(),
bde_latest(),
bdf_codelist(),
bdf_data(),
bdf_dataset(),
bis_data(),
boc_data(),
boe_data(),
boi_data(),
boj_data(),
cnb_czeonia(),
cnb_data(),
cnb_fx_other_rates(),
cnb_fx_rates(),
cnb_pribor(),
ecb_data(),
nbp_fx_rates(),
nbp_gold(),
nob_data(),
onb_data(),
snb_data(),
srb_cross_rates(),
srb_data()
# Portuguese GDP (annual, current prices)
bdp_data(54L, "ce3e4e50cda325537eff729ef64037cd", series_ids = 12518356L)
# several series at once
bdp_data(19L, "0da378eb4c39011fb7fb371c6623af8f", series_ids = c(12558817L, 12558819L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.