Checking status…
Catalog / Swiss Federal Statistical Office (Bundesamt für Statistik / Office fédéral de la statistique, FSO/BFS)
bfs

Swiss Federal Statistical Office (Bundesamt für Statistik / Office fédéral de la statistique, FSO/BFS)

Open · redistributedopendata.swiss — open use, source must be providedMacroeconomics

Swiss Federal Statistical Office (BFS/OFS) — PxWeb ingest. License: OPEN-BY-ASK (free for non-commercial use with attribution) Source: https://www.bfs.admin.ch/bfs/de/home/statistiken.html No API key required. Coverage: ~673 tables in the BFS PxWeb database (German API): * National accounts (GDP,…

Redistributable. This source is served as canonical Parquet under the license below, with attribution and provenance preserved.

Coverage

Series catalogued
582
Temporal coverage
1801-12-31 – present
Categories
Macroeconomics

Licensing & provenance

License
opendata.swiss — open use, source must be provided
License URL
https://opendata.swiss/en/terms-of-use
Required attribution
Source: Federal Statistical Office (FSO), Switzerland
Redistribution
Permitted (served here)
Commercial use
Yes
Modification
Permitted
Provider homepage
https://www.bfs.admin.ch
Provider terms
https://opendata.swiss/en/terms-of-use

Access & mirrors

Download
Select & download bfs series as CSV →
API
Get a free API key, then GET /v1/series/<id>.csv
Canonical landing
https://econdatalibrary.com/bfs
Update cadence
monthly
Automated refresh
live — this database is on the daily update run
Update strategy
sdmx delta
Storage layout
single parquet: data/clean_full/bfs/bfs.parquet (zstd, ~14MB), columns (series_key='BFS:{dbid}:{dim}={code}:...', obs_date, value). Written incrementally to the SAME path as a checkpoint every 50 tables and once at the end.

Full description

Swiss Federal Statistical Office (BFS/OFS) — PxWeb ingest. License: OPEN-BY-ASK (free for non-commercial use with attribution) Source: https://www.bfs.admin.ch/bfs/de/home/statistiken.html No API key required. Coverage: ~673 tables in the BFS PxWeb database (German API): * National accounts (GDP, GNI, output) * Labour market (employment, wages, unemployment) * Prices (CPI, producer prices) * Trade (imports/exports) * Population and demography * Housing and construction * Industry and services * Finance and insurance * Health and education PxWeb multi-table root: GET /api/v1/en/ → list all table IDs Data query: POST /api/v1/de/{dbid}/{table}.px/ → JSON-stat2 NOTE: English API returns 400 for individual tables; use German endpoint for data. Run: python jobs/ingest_bfs.py

Structured metadata

schema.org/Dataset (Google Dataset Search)
{
  "@context": "https://schema.org/",
  "@type": "Dataset",
  "name": "Swiss Federal Statistical Office (Bundesamt für Statistik / Office fédéral de la statistique, FSO/BFS)",
  "description": "Ständige und nichtständige Wohnbevölkerung nach Jahr. Swiss Federal Statistical Office. 582 series, from 1801. Free download.",
  "url": "https://econdatalibrary.com/bfs",
  "identifier": "bfs",
  "isAccessibleForFree": true,
  "publisher": {
    "@type": "Organization",
    "name": "Econ Data Library",
    "url": "https://econdatalibrary.com"
  },
  "includedInDataCatalog": {
    "@type": "DataCatalog",
    "@id": "https://econdatalibrary.com/#catalog",
    "name": "Econ Data Library",
    "url": "https://econdatalibrary.com/catalog"
  },
  "creator": {
    "@type": "Organization",
    "name": "Swiss Federal Statistical Office",
    "url": "https://www.bfs.admin.ch"
  },
  "license": "https://opendata.swiss/en/terms-of-use",
  "keywords": [
    "Macroeconomics",
    "bfs"
  ],
  "temporalCoverage": "1801-12-31/..",
  "creditText": "Source: Federal Statistical Office (FSO), Switzerland",
  "sameAs": [
    "https://huggingface.co/datasets/econdatalibrary-bfs",
    "https://zenodo.org/communities/econdatalibrary"
  ],
  "distribution": [
    {
      "@type": "DataDownload",
      "name": "bfs — CSV",
      "encodingFormat": "text/csv",
      "contentUrl": "https://econdatalibrary.com/download.html?source=bfs",
      "license": "https://opendata.swiss/en/terms-of-use"
    }
  ]
}
Croissant (ML-ready, schema.org JSON-LD)
{
  "@context": {
    "@language": "en",
    "@vocab": "https://schema.org/",
    "cr": "http://mlcommons.org/croissant/",
    "data": {
      "@id": "cr:data",
      "@type": "@json"
    },
    "dataType": {
      "@id": "cr:dataType",
      "@type": "@vocab"
    },
    "sc": "https://schema.org/",
    "conformsTo": "dct:conformsTo",
    "dct": "http://purl.org/dc/terms/"
  },
  "@type": "sc:Dataset",
  "conformsTo": "http://mlcommons.org/croissant/1.0",
  "name": "bfs",
  "description": "Ständige und nichtständige Wohnbevölkerung nach Jahr. Swiss Federal Statistical Office. 582 series, from 1801. Free download.",
  "url": "https://econdatalibrary.com/bfs",
  "creator": {
    "@type": "sc:Organization",
    "name": "Swiss Federal Statistical Office",
    "url": "https://www.bfs.admin.ch"
  },
  "publisher": {
    "@type": "sc:Organization",
    "name": "Econ Data Library",
    "url": "https://econdatalibrary.com"
  },
  "license": "https://opendata.swiss/en/terms-of-use",
  "keywords": [
    "Macroeconomics"
  ],
  "distribution": [
    {
      "@type": "cr:FileObject",
      "@id": "bfs-csv",
      "name": "bfs-csv",
      "description": "Per-series CSV, downloadable with a free API key.",
      "contentUrl": "https://econdatalibrary.com/download.html?source=bfs",
      "encodingFormat": "text/csv"
    }
  ]
}
Part of the Econ Data Library catalog · metadata generated 2026-08-02 from the central registry · browse all datasets
ElkassabgiData

One account. Every library.

HF Data Library  ·  Econ Data Library  · more to come