Get the list of the data available in the official DAM-API of the Swiss Federal Statistical Office asset catalog.
bfs_get_catalog_data(
  language = "de",
  title = NULL,
  extended_search = NULL,
  spatial_division = NULL,
  prodima = NULL,
  inquiry = NULL,
  institution = NULL,
  publishing_year_start = NULL,
  publishing_year_end = NULL,
  order_nr = NULL,
  limit = 1000,
  article_model = 900033,
  article_model_group = 900029,
  return_raw = FALSE
)A data frame. Returns NULL if no connection.
A tbl_df (a type of data frame; see tibble or dplyr packages). Returns NULL if no connection.
character The language of a BFS catalog, i.e. "de", "fr", "it" or "en".
character String to search in (sub/super)title
character String for an extended search in (sub/super)title, orderNr, summary, shortSummary, shortTextGNP
BFS datasets by spatial division, choose between "Switzerland", "Cantons", "Districts", "Communes", "Other spatial divisions" or "International"
numeric Get only specific BFS themes using one or multiple prodima numbers
character BFS datasets for an inquiry
character BFS datasets for an institution
character BFS datasets for a publishing year start
character BFS datasets for a publishing year end
character Filter by BFS Number (FSO number)
integer limit of query results (1000 by default)
integer articleModel parameter query
integer articleModel parameter query
boolean Return raw data from json structure as a tibble data.frame
bfs_get_data
A character column with the title of the BFS dataset
A character column with the language of the BFS dataset
The BFS asset number
The BFS number (FSO number), named orderNr in the API
The published date of the BFS dataset, named embargo in the API
A list The list of all languages available for the BFS dataset
A character column with the URL of the PX file
A character column with the URL of the json structure of the BFS dataset
DAM API unique ID
# \donttest{
bfs_get_catalog_data(language = "en", title = "students", prodima = c(900212))
# }
Run the code above in your browser using DataLab