Vai al contenuto
Fonti ufficiali e scientifiche Verificato

Elenco ufficiale dei Comuni della Svizzera

bfs-communes

Editore
OFS/BFS
Modalità di accesso
api
ID della tabella
agvchapp snapshot
Licenza
opendata.swiss terms of use "terms_open": "Open use."
Copertura
Territorio communes (political communes), with district and canton · state snapshot on the run date (Europe/Zurich)
Lacune
Current state only (no history in this file; see bfs-commune-mutations). Communal-free areas and cantonal lake shares are not in the snapshot's level 3.
Usato in
STORY-09, AGORA-20, AGORA-22, PLAT-08
Limiti noti
BFS numbers are unique within one state of the register but can be reused over time (BFS, Historisiertes Gemeindeverzeichnis — Erläuterungen). Join older data through bfs-commune-mutations. STATPOP data (bfs-commune-population) are published on the previous year's commune state.
Verifica
verification date: 2026-10-31 · method: Fetched the snapshot of 31.10.2026 (2110 communes, 144 districts, 26 cantons) and compared the set of commune numbers with the independent stats.swiss codelist CL_KT_BEZ_GDE_SNAP_2026__NUTS22021100 used by the BFS vacancy statistics (DF_LWZ_1) — identical (2110 = 2110, no difference). Reconciled with the 2025 state used by STATPOP (2115 communes) through the 1.1.2026 mutations (−6 abolished, −1 renumbered Moutier 700, +1 new Fétigny-Ménières, +1 Moutier 6831 = 2110). · checkedValue: 2110 communes; e.g. 261 Zürich, Bezirk Zürich (112), ZH · checkedAgainst: https://disseminate.stats.swiss/rest/codelist/CH1/CL_KT_BEZ_GDE_SNAP_2026__NUTS22021100/1.0.0

Quanto sono aggiornati questi dati?

Attualità
Consultazione non riuscita

Le consultazioni automatiche non hanno potuto leggere la fonte più volte di seguito, oppure non riescono da più tempo del previsto. I dati mostrati risalgono all’ultima consultazione riuscita.

Periodo coperto
Non è una serie temporale
Ultima modifica dei dati
Ultima consultazione della fonte
Frequenza di aggiornamento
Continuo

Nota del registro (in inglese): Continuous; mergers usually take effect on 1 January. The fetcher snapshots the register on each run.

Votara consulta la fonte
Ogni giorno

Lo stato è calcolato a ogni generazione del sito; questa pagina lo mostra al . Risultati dei controlli

Fasi di elaborazione

  1. GET /api/communes/snapshot?date=<today> (CSV, documented in https://www.agvchapp.bfs.admin.ch/documents/rest_api_de.pdf). Level 3 rows (communes) are joined to their district (level 2, via Parent = HistoricalCode) and canton (level 1). Script: scripts/fetch/bfs-communes.ts
  2. name = official commune name (column Name, binding for federal publications per the register's documentation); district_number = BFS district number (BfsCode of the level-2 row); district_name as published (e.g. "Bezirk Zürich", "Kanton Basel-Stadt" for cantons without districts).
  3. canton = abbreviation (ShortName of the level-1 row); the fetcher fails if the register's canton numbers/abbreviations differ from scripts/fetch/cantons.ts.