Learn R Programming

bbk

bbk is minimal R client for the following APIs:

In the future, it may be extended to other central banks and financial institutions. Feel free to open an issue if you have a specific request.

Installation

You can install the released version of bbk from CRAN with:

install.packages("bbk")

And the development version from GitHub with:

# install.packages("pak")
pak::pak("m-muecke/bbk")

Usage

bbk functions are prefixed according to the central bank they access (bbk_, ecb_, snb_, boe_, bde_, bdf_, onb_, boc_) and follow the naming conventions of their respective APIs.

The typical workflow involves:

  1. Finding the time series identifier on the relevant central bank’s website
  2. Using the appropriate bbk function to retrieve the data
library(bbk)

# Deutsche Bundesbank - fetch 10 year daily yield curve
yield_curve <- bbk_data(
  flow = "BBSIS",
  key = "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
  start_period = "2020-01-01"
)

Related work

  • SNBdata: R package for downloading data from the Swiss National Bank (SNB).
  • bundesbank: R scripts for downloading time-series data from the Bundesbank.
  • ecb: R interface to the European Central Bank’s Statistical Data Warehouse (SDW) API.
  • oenb: R package for accessing the OeNB’s API.
  • pdfetch: R package for downloading economic and financial time series from public sources.
  • readsdmx: R package for reading SDMX data and metadata.
  • rsdmx: R package for reading SDMX data and metadata.
  • tidyBdE: R package for accessing the Banco de España’s API.
  • valet: R client to the Bank of Canada Valet API.

Copy Link

Version

Install

install.packages('bbk')

Monthly Downloads

309

Version

0.8.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Maximilian Muecke

Last Published

October 1st, 2025

Functions in bbk (0.8.0)

snb_data

Fetch Swiss National Bank (SNB) data
onb_dimension

Fetch Österreichische Nationalbank (OeNB) dimension
onb_toc

Fetch Österreichische Nationalbank (OeNB) table of contents
onb_metadata

Fetch Österreichische Nationalbank (OeNB) metadata
bdf_codelist

Fetch Banque de France (BdF) codelists
bde_data

Fetch Banco de España (BdE) data
bdf_dataset

Fetch Banque de France (BdF) datasets
bdf_data

Fetch Banque de France (BdF) data
bbk_series

Fetch the Deutsche Bundesbank (BBk) series
bbk_metadata

Fetch Deutsche Bundesbank (BBk) metadata
boc_catalog

Fetch Bank of Canada (BoC) available series or group
boc_data

Fetch Bank of Canada (BoC) data
bbk-package

bbk: Client for Central Bank APIs
bbk_data

Fetch Deutsche Bundesbank (BBk) data
boc_metadata

Fetch Bank of Canada (BoC) metadata (details)
boe_data

Fetch Bank of England (BoE) data
boc_fx_rates

Fetch Bank of Canada foreign exchange rates
ecb_fx_rates

Fetch Euro foreign exchange reference rates
onb_hierarchy

Fetch Österreichische Nationalbank (OeNB) hierarchy
onb_frequency

Fetch Österreichische Nationalbank (OeNB) data frequency
ecb_metadata

Fetch European Central Bank (ECB) metadata
onb_data

Fetch Österreichische Nationalbank (OeNB) data
ecb_data

Fetch European Central Bank (ECB) data