Skip to contents

Retrieve the list of datasets for a given domain from the BPstat API.

Usage

bdp_dataset(domain_id, lang = "en")

Arguments

domain_id

(integer(1))
The domain ID. Use bdp_domain() to list available domains.

lang

(character(1))
Language for labels, either "en" or "pt".

Value

A data.table::data.table() with available datasets.

Examples

# \donttest{
bdp_dataset(54L)
#>                                  id
#>                              <char>
#> 1: 8a9766347128321e0bd8a7806d8d2c02
#> 2: 8b6aeea21d8686f3788d49c7551779df
#> 3: ce3e4e50cda325537eff729ef64037cd
#>                                                                                                                                                                        label
#>                                                                                                                                                                       <char>
#> 1: Expenditure aggregates; Adjustments and temporary effects; Source; Flows, stocks and prices; Valuation method; Metrics; Periodicity; Reference territory; Unit of measure
#> 2:            Expenditure aggregates; Source; Flows, stocks and prices; Valuation method; Metrics; Periodicity; Counterparty territory; Reference territory; Unit of measure
#> 3:                                    Expenditure aggregates; Source; Flows, stocks and prices; Valuation method; Metrics; Periodicity; Reference territory; Unit of measure
#>    num_series      obs_updated_at
#>         <int>              <POSc>
#> 1:         91 2026-06-08 15:30:00
#> 2:          3 2026-05-15 16:00:00
#> 3:        417 2026-06-08 15:30:00
# }