Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official Swedish important-public-announcement records from the Krisinformation open API for reviewing current local emergency warnings.
Report a ProblemFrom Source to Product Signal
Krisinformation.se exposes current VMA public announcements through its version 3 API. Start with one request and read up to five current records; an empty response says only that this scoped endpoint returned none. Attribute any displayed message and check location and validity before treating it as a local warning.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
response = requests.get(
"https://api.krisinformation.se/v3/vmas",
params={"allCounties": "true", "language": "en"}, timeout=30,
)
response.raise_for_status()
alerts = response.json()
print(f"{len(alerts)} VMA records returned")
for alert in alerts[:5]:
print(alert.get("Identifier"), alert.get("Updated"), alert.get("Counties"))Test a Useful Signal
Check a scoped official response before local alert matching.
Swedish Civil Defence and Resilience Agency is a government source. Last verified 2026-09-28. Temporal coverage: current official VMA announcements.