BFS: Get Data from the Swiss Federal Statistical Office

Search and download data from the Swiss Federal Statistical Office (BFS) APIs <https://www.bfs.admin.ch/>.

Version: 0.8.0
Depends: R (≥ 4.0.0)
Imports: pxweb, httr2 (≥ 1.0.0), xml2, rvest, tibble, magrittr (≥ 2.0.0), janitor, purrr (≥ 1.0.0), dplyr, curl, zip, fs, tools, lifecycle, rlang (≥ 1.0.0), tidyr
Suggests: knitr, rmarkdown, testthat (≥ 3.1.7), rstac, sf
Published: 2026-10-20
DOI: 10.32614/CRAN.package.BFS
Author: Felix Luginbuhl ORCID iD [aut, cre, cph], Marius Hodel ORCID iD [ctb], Janosch Brenzel-Weiss [ctb], Joao Martins [ctb], Philipp Baumann ORCID iD [ctb]
Maintainer: Felix Luginbuhl <felix.luginbuhl at protonmail.ch>
BugReports: https://github.com/lgnbhl/BFS/issues
License: GPL (≥ 3)
URL: https://felixluginbuhl.com/BFS/, https://github.com/lgnbhl/BFS/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: BFS results

Documentation:

Reference manual: BFS.html , BFS.pdf
Vignettes: Get started (source, R code)

Downloads:

Package source: BFS_0.8.0.tar.gz
Windows binaries: r-devel: BFS_0.7.2.zip, r-release: BFS_0.7.2.zip, r-oldrel: BFS_0.7.2.zip
macOS binaries: r-release (arm64): BFS_0.8.0.tgz, r-oldrel (arm64): BFS_0.8.0.tgz, r-release (x86_64): BFS_0.8.0.tgz, r-oldrel (x86_64): BFS_0.8.0.tgz
Old sources: BFS archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=BFS to link to this page.