Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official Luxembourg civil-alert messages published as CAP-LU files through the national open-data portal for tracking current civil emergencies.
Report a ProblemFrom Source to Product Signal
LU-Alert publishes issuer messages as CAP-LU XML resources in one portal dataset. Start with resource metadata from the first API page; inspect message status, validity, and cancellation before presenting an alert. Credit LU-Alert and retain the source resource URL.
Install the packages, then run the notebook cell.
python -m pip install requests
import xml.etree.ElementTree as ET
import requests
url = "https://data.public.lu/api/1/datasets/alertes-du-systeme-lu-alert/"
response = requests.get(url, timeout=30)
response.raise_for_status()
resources = [r for r in response.json()["resources"]
if r.get("format", "").lower() == "xml"]
resource = resources[0]
alert = requests.get(resource["url"], timeout=30)
alert.raise_for_status()
root = ET.fromstring(alert.content)
namespace = root.tag.split("}")[0] + "}"
print(resource["title"], root.findtext(f"{namespace}identifier"),
root.findtext(f"{namespace}status"), root.findtext(f"{namespace}sent"))Test a Useful Signal
Find recent CAP-LU resources for a bounded official alert review.
Luxembourg Government LU-Alert is a government source. Last verified 2026-09-28. Temporal coverage: current and archived CAP-LU alert files.