Skip to content

DWD API

Christian Joe edited this page Dec 18, 2018 · 7 revisions

DWD-API

Since the new 'DWD-Gesetz' came out in 2017, DWD (German Weather Service) is required to provide a public API with all their current weather related information. For our project, we make use of the alert-events-API.

API-Calls:

URL: https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_EVENT_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMEVENT_COMMUNEUNION_DE.zip

Frequency: 1 api-call per minute

All events are stored in our database. Only when a new zip-file is uploaded, we unzip the new files and check for updates.

API-Documentation:

The APIs data format is based on Common Alerting Protocol (CAP).

official https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_dwd_profile_de_pdf.pdf?__blob=publicationFile&v=2

implementation_advice https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_dwd_implementation_notes_de_pdf.pdf?__blob=publicationFile&v=4

diff_document https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_dwd_profile_changes_en_pdf.pdf?__blob=publicationFile&v=1 This diff document contains more detailed information in particular to AGS ( Allgemeiner Gemeinde Schlüssel) which is an important part of the attribute WARNCELLID.

Warn_cell_id

A complete list of all WarncellIDs: https://www.dwd.de/DE/leistungen/opendata/help/warnungen/cap_warncellids_csv.csv