Applications that want to benefit from SMHI Open Data Warnings can use this service to retrieve data. The Entry point is located at https://opendata-download-warnings.smhi.se/api/version/2.
The API is based on the CAP (Common Alerting Protocol) standard. You can get more information about the standard at
NB! The parent element
alerts is not a part of the CAP standard. Only the child elements
The API is based on two primary mediatypes,
If no suffix is specified then
XML is used as the default mediatype. The CAP standard is based on
JSON responses are directly converted from the
||application/xml||Api, Alerts, Messages, Districtviews, Metadata||This is the default mediatype for all resources. If no suffix is specified in the request to these resources, then
||application/json||Api, Alerts, Messages, Districtviews, Metadata|
SMHI Open Data API is published under these Terms and conditions.