Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
/covid_19Public archive

COVID19 case numbers of Cantons of Switzerland and Principality of Liechtenstein (FL). The data is updated at best once a day (times of collection and update may vary). Start with the README.

License

Notifications You must be signed in to change notification settings

openZH/covid_19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenZH-logo

GD-logo

GitHub commitBinder

SARS-CoV-2 open government data reported by the Swiss Cantons and the Principality of Liechtenstein

Important note

Find and use high quality data published by our data colleagues of the FOPH for all Cantons and FL:

  1. visualized (Dashboard): https://www.covid19.admin.ch/en/overview
  2. published as 'open government data': https://opendata.swiss/en/dataset/covid-19-schweiz

Aim of this repository

The aim of this repository is to provide open government datasets for SARS-CoV-2 related data reported by the Swiss Cantons and the Principality of Liechtenstein. Since Jun 8, 2020 most cantons report case numbers at least once or twice a week. Updates of cantonal case numbers during weekends are infrequent.

If you have any questions, please don't hestitate to contact us:

List of open government datasets published in this repository

Swiss Cantons and Principality of Liechtenstein

Canton Zurich

Don't forget to take a look at the community contributions.

Swiss Cantons and Principality of Liechtenstein: Unified dataset

General description
This data is generated and validated daily using manual and automated procedures. Note that we only publish data that are reported by the Swiss Cantons and the Principality of Liechtenstein. Thus, gaps result if Swiss Cantons or the Principality of Liechtenstein do not report data for the specific date.

Data

https://github.com/openZH/covid_19/tree/master/fallzahlen_kanton_total_csv_v2
Description: Case numbers for each spatial unit separately
Spatial unit: Swiss cantons and Principality of Liechtenstein
Format: csv
Additional remark: Link to deprecated dataset (data structure has changed)

https://github.com/openZH/covid_19/blob/master/COVID19_Fallzahlen_CH_total_v2.csv
Description: Case numbers for all spatial units in one single file.
Spatial unit: Swiss cantons and Principality of Liechtenstein
Format: csv
Additional remark: Link to deprecated dataset (data structure has changed)

Metadata

Field NameDescriptionFormatNote
dateDate of notificationYYYY-MM-DD
timeTime of notificationHH:MM
abbreviation_canton_and_flAbbreviation of the reporting cantonText
ncumul_testedReported number of tests performed as of dateNumberIrrespective of canton of residence
ncumul_confReported number of confirmed cases as of dateNumberOnly cases that reside in the current canton
new_hospnew hospitalisations since last dateNumberIrrespective of canton of residence
current_hospReported number of hospitalised patients on dateNumberIrrespective of canton of residence
current_icuReported number of hospitalised patients in ICUs on dateNumberIrrespective of canton of residence
current_ventReported number of patients requiring invasive ventilation on dateNumberIrrespective of canton of residence
ncumul_releasedReported number of patients released from hospitals or reported recovered as of dateNumberIrrespective of canton of residence
ncumul_deceasedReported number of deceased as of dateNumberOnly cases that reside in the current canton
sourceSource of the informationhref
current_isolatedReported number of isolated persons on dateNumberInfected persons, who are not hospitalised
current_quarantinedReported number of quarantined persons on dateNumberPersons, who were in 'close contact' with an infected person, while that person was infectious, and are not hospitalised themselves
current_quarantined_riskareatravelReported number of quarantined persons on dateNumberPeople arriving in Switzerland from certain countries and areas, who are required to go into quarantine.

Empty values vs. 0

ValueMeaning
0Zero cases are reported.
emptyNo value is reported.

Latest updates

The latest updates are visualized here.

Canton / FLLast update (of any variable)Important notes
FLLast update on 2023-04-04
AGLast update on 2022-04-06Since 2022-03-04 AG is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
AILast update on 2022-03-31Since 2022-03-31 AI is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
ARLast update on 2022-03-24Since 2021-01-22 AR is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
BELast update on 2022-03-31Since 2022-03-31 BE is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
BLLast update on 2023-09-24
BSLast update on 2023-07-05
FRLast update on 2023-01-08
GELast update on 2024-05-05
GLLast update on 2022-02-09Since 2022-02-09 GL is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
GRLast update on 2022-03-31Since 2022-03-31 GR is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
JULast update on 2022-06-03
LULast update on 2022-12-29
NELast update on 2024-02-19
NWLast update on 2023-03-30
OWLast update on 2022-12-29
SGLast update on 2023-03-28
SHLast update on 2023-01-29
SOLast update on 2023-03-30
SZLast update on 2022-03-07Since 2022-03-07 SZ is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
TGLast update on 2023-01-09Since 2022-05-16 TG is updating data only once per week (on Mondays).
TILast update on 2023-04-26
URLast update on 2022-03-31Since 2022-03-31 UR is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
VDLast update on 2023-01-29
VSLast update on 2022-05-29Since 2022-05-31 VS is not publishing updated case numbers on its website anymore, but referencing to FOPH. You find respective data via FOPH's API: https://www.covid19.admin.ch/api/data/context
ZGLast update on 2023-01-04
ZHLast update on 2023-05-02Since 2022-03-14 ZH is updating data only once per week (on Tuesdays). Since 2023-01-03 ZH is not publishing updated case numbers.

Swiss Cantons and Principality of Liechtenstein: More detailed dataset

Data

https://github.com/openZH/covid_19/tree/master/fallzahlen_kanton_alter_geschlecht_csv
Description: Selected cantons publish more detailed datasets.
Spatial unit: Swiss cantons and Principality of Liechtenstein
Format: csv
Additional remark: Not all datasets are maintained.

Maintained datasets

Unmaintained datasets

Metadata for unmaintained datasets

Field NameDescriptionFormatReporting Cantons
DateZH = Date of test result (NewConfCases) / Date of death (NewDeaths)
BL = Date of death
BS = Date of notification
YYYY-MM-DD
AreaAbbreviation of the reporting canton
AgeYearNumberZH,BS,BL
GenderTextZH,BS,BL
NewConfCasesNumber of Confirmed CasesNumberZH
NewDeathsNumber of DeceasedNumberZH,BS,BL
PreExistingCondPre-Existing ConditionsTextBL,BS

Canton Zürich: Unified dataset

Data

https://github.com/openZH/covid_19#swiss-cantons-and-principality-of-liechtenstein-unified-dataset
Description:open data swiss: COVID_19 Fallzahlen Kanton Zürich Total

Canton Zürich: More detailed dataset

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_alter_geschlecht_csv/COVID19_Fallzahlen_Kanton_ZH_altersklassen_geschlecht.csv
Description:open data swiss: COVID_19 Verteilung der Fälle im Kanton Zürich nach Altersklasse, Geschlecht und Kalenderwoche
Spatial unit: Canton Zürich
Format: csv
Additional remark: Comparable data for the canton of Thurgau is published at opendata.swiss.

Metadata

Spaltenname / FieldnameBeschreibung (DE)Description (EN)Format
WeekKalenderwoche des Befundes (NewConfCases) / Todesdatums (NewDeaths)Calendar week of test result (NewConfCases) / Date of death (NewDeaths)Zahl
YearJahr des Befundes (NewConfCases) / Todesdatums (NewDeaths)Year of test result (NewConfCases) / Date of death (NewDeaths)Zahl
AreaKantonAbbreviation of the reporting cantonText
AgeYearCat10-Jahres AltersklassenAge groups (10 year steps)Text
GenderGeschlechtGenderText
NewConfCasesNeue bestätigte FälleNewly confirmed number of casesZahl
NewDeathsNeue TodesfälleNewly confirmed number of deathsZahl

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_alter_geschlecht_csv/COVID19_Einwohner_Kanton_ZH_altersklassen_geschlecht.csv
Description: Inhabitants per age category and gender.
Spatial unit: Canton Zürich
Format: csv

Metadata

Spaltenname / FieldnameBeschreibung (DE)Description (EN)Format
YearStichtag ist jeweils der 31.12 des angegebenen JahresThe reporting date is the 31.12 of the indicated yearZahl
AreaKantonAbbreviation of the reporting cantonText
AgeYearCat10-Jahres AltersklassenAge groups (10 year steps)Text
GenderGeschlechtGenderText
InhabitantsAnzahl EinwohnerNumber of inhabitantsZahl

Data

https://raw.githubusercontent.com/openZH/covid_19/master/fallzahlen_kanton_zh/COVID19_Anteil_positiver_Test_pro_KW.csv
Description:opendata.swiss: COVID_19 Anteil der positiven SARS-CoV-2 Tests im Kanton Zürich nach Kalenderwoche
Spatial unit: Canton Zürich
Format: csv
Additional remark:

Metadata

Spaltenname / FieldnameBeschreibung (DE)Description (EN)Format
Woche_vonBeginn der Kalenderwoche (Datum)Start of the calendar week (Date)YYYY-MM-DD
Woche_bisEnde der Kalenderwoche (Datum)End of the calendar week (Date)YYYY-MM-DD
KalenderwocheKalenderwocheAbbreviation of the reporting cantonZahl
Anzahl_positivAnzahl positiver TestsNumber of positive testsText
Anzahl_negativAnzahl negativer TestsNumber of negative testsText
Anteil_positivAnteil der positiven Tests an allen TestsShare of positive testsZahl

Canton Zürich: Postal codes (Postleitzahl)

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_plz/fallzahlen_kanton_ZH_plz.csv
Description:opendata.swiss: COVID_19 Fallzahlen Kanton Zürich nach Bezirk und Kalenderwoche
Spatial unit: Canton Zürich
Format: csv
Additional remark:

Metadata

FieldnameBeschreibung (DE)Description (EN)Format
PLZPostleitzahl*Postalcode*Zahl
DateDatum des BefundesDate of test result (NewConfCases)Zahl
PopulationEinwohner mit HauptwohnsitzInhabitants with main residencyZahl
NewConfCases_7daysNeue bestätigte Fälle in den letzten sieben Tagen (Kategorien)Newly confirmed cases (Categories)Text

Geodata

https://github.com/openZH/covid_19/blob/master/fallzahlen_plz/PLZ_gen_epsg4326_F_KTZH_2020.json

https://github.com/openZH/covid_19/blob/master/fallzahlen_plz/PLZ_gen_epsg2056_F_KTZH_2020.json

Canton Zurich: Districts (Bezirk)

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_bezirke/fallzahlen_kanton_ZH_bezirk.csv
Description:opendata.swiss: COVID_19 Verteilung der Fälle im Kanton Zürich nach Postleitzahl
Spatial unit: Canton Zürich
Format: csv

Metadata

FieldnameBeschreibung (DE)Description (EN)Format
DistrictIdBezirks-ID (BFS-Nummer)*District (BFS-Id)*Zahl
DistrictBezirksname*District name*Text
PopulationWohnbevölkerungPopulationZahl
WeekKalenderwoche des Befundes (NewConfCases) / Todesdatums (NewDeaths)Calendar week of test result (NewConfCases) / Date of death (NewDeaths)Zahl
YearJahr des Befundes (NewConfCases) / Todesdatums (NewDeaths)Year of test result (NewConfCases) / Date of death (NewDeaths)Zahl
NewConfCasesNeue bestätigte FälleNewly confirmed number of casesZahl
NewDeathsNeue TodesfälleNewly confirmed number of deathsZahl
TotalConfCasesTotal der bestätigten Fälle (kumuliert)Total of confirmed cases (cumulated)Zahl
TotalDeathsTotal der Todesfälle (kumuliert)Total of confirmed deaths (cumulated)Zahl

Geodata

https://github.com/openZH/covid_19/blob/master/fallzahlen_bezirke/BezirkeAlleSee_gen_epsg4326_F_KTZH_2020.json

https://github.com/openZH/covid_19/blob/master/fallzahlen_bezirke/BezirkeAlleSee_gen_epsg2056_F_KTZH_2020.json

Canton Zurich: Travel self quarantine

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_zh/COVID19_Einreisequarantaene_pro_KW.csv
Description:opendata.swiss: COVID_19 Einreisequarantäne im Kanton Zürich
Spatial unit: Canton Zürich
Format: csv

Metadata

FieldnameBeschreibung (DE)Description (EN)Format
KalenderwocheKalenderwocheCalendar weekZahl
EinreiselandAufenthaltsland vor der Einreise (Risikogebiete gemäss BAG-Liste)Country of stay before entry (risk areas)Text
Anzahl_EinreisendeAnzahl Einreisende aus RisikogebietNumber of people returning from risk areaZahl

Canton Zurich: Intensive care occupancy

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_zh/COVID19_Belegung_Intensivpflege.csv
Description:opendata.swiss: COVID_19 Belegung Intensivpflege Kanton Zürich
Spatial unit: Canton Zürich
Format: csv

Metadata

FieldnameDescription (EN)Format
dateDate of notificationYYYY-MM-DD
timeTime of notificationHH:MM
abbreviation_canton_and_flAbbreviation of the reporting cantonText
hospital_nameFull name of the hospitalText
current_icu_service_certifiedReported number of certified 'Intensive Care Unit' (ICU) beds on date and timeNumber
current_icu_target_covidTarget number of Covid19 patients in whose treatment a hospital would currently have to participate. (Target values are defined by the Health Department Canton Zurich together with the hospitals.)Number
current_hosp_covidReported number of hospitalised Covid19 patients on date. (These data are communicated by the Health Department Canton Zurich on weekdays, and available here: https://github.com/openZH/covid_19/tree/master#swiss-cantons-and-principality-of-liechtenstein-unified-dataset)Number
current_icu_covidReported number of hospitalised Covid19 patients in ICU on date.Number
current_vent_covidReported number of hospitalised Covid19 patients requiring invasive ventilation on date. (These data are communicated by the Health Department Canton Zurich on weekdays, and available here: https://github.com/openZH/covid_19/tree/master#swiss-cantons-and-principality-of-liechtenstein-unified-dataset)Number
current_icu_not_covidReported number of hospitalised non-Covid19 patients in ICU on date.Number
current_icu_service_certified_operatedReported number of currently operated certified 'Intensive Care Unit' (ICU) beds on date and timeNumber
sourceSource URL of the data reported.String

Canton Zurich: Variants of Concern

Note: ZH data is deprecated (2021-02-12) - this resource will not be updated further from 2021-02-12 as the week of 2021-02-15 will be used to analyse the completeness of the collection of available data and adjust the approach to which VOCs are tested.
Since 2021-02-19 FOPH publishes data for all Cantons ("virusVariants", https://www.covid19.admin.ch/api/data/context).
Variants of concern ('VOC') can not be detected by 'rapid' tests, but can be detected by PCR tests. Virus mutations are classified as being of concern because, among other things, they are more infectious than the wild type of the virus.

Data

https://github.com/openZH/covid_19/blob/master/fallzahlen_kanton_zh/COVID19_VOC_Kanton_ZH.csv
Description:Ressource: "COVID_19 PCR-Tests und besorgniserregende Virusmutationen im Kanton Zürich"
Spatial unit: Canton Zürich
Format: csv

Metadata

FieldnameBeschreibung (EN)Format
dateDate of notificationYYYY-MM-DD
new_pcr_posNumber of newly positive PCR testsNumber
new_vocNumber of newly detected variants of concern ('VOC')Number

Community Contributions

Visualization of Swiss and Cantonal Case Numbers over Time

ArcGIS Dashboard

corona-data.ch

Interactive Small Multiples of Case Numbers by Canton

shellyBits Interactive Dashboard

REST-API

Estimated reproduction number by Canton

Data for Basel-Stadt

COVID-19 Data Hub

Visualization of Covid-19 cases in Switzerland

Many thanks for the great work!

About

COVID19 case numbers of Cantons of Switzerland and Principality of Liechtenstein (FL). The data is updated at best once a day (times of collection and update may vary). Start with the README.

Resources

License

Stars

Watchers

Forks

close