(integer(1))
The domain ID. Use bdp_domain() to list available domains.
dataset_id
(character(1))
The dataset ID within the domain.
series_ids
(NULL | integer())
Optional series IDs to filter the dataset.
start_date
(NULL | character(1) | Date(1))
Start date of the data.
end_date
(NULL | character(1) | Date(1))
End date of the data.
last_n
(NULL | integer(1))
Return only the last n observations per series.
updated_after
(NULL | character(1) | Date(1) | POSIXct(1))
Retrieve only observations published after the given timestamp (e.g.,
"2024-06-01T00:00:00"). Useful for incremental retrieval. If NULL, no restriction is
applied. Default NULL.
lang
(character(1))
Language for labels, either "en" or "pt".
Details
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.