Skip to contents

Retrieve metadata for one or more series from the BPstat API. This is useful to discover the domain_id and dataset_id needed for bdp_data().

Usage

bdp_series(series_ids, lang = "en")

Arguments

series_ids

(integer())
One or more series IDs to look up.

lang

(character(1))
Language for labels, either "EN" or "PT".

Value

A data.table::data.table() with series metadata including domain_ids and dataset_id.

Examples

# \donttest{
bdp_series(12518356L)
#>          id                     label                  short_label
#>       <int>                    <char>                       <char>
#> 1: 12518356 GDP at market prices-CP-A GDPmp PT A Current Prices M€
#>                                                                                                 description
#>                                                                                                      <char>
#> 1: GDP expenditure approach - GDP at market prices - Portugal - current prices - millions of euros - annual
#>                          dataset_id domain_id      obs_updated_at
#>                              <char>     <int>              <POSc>
#> 1: ce3e4e50cda325537eff729ef64037cd        54 2025-10-28 17:00:00
# }