Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official regional flood-warning records from Norway's NVE for inspecting affected municipalities, dates, and assessed activity levels.
Report a ProblemFrom Source to Product Signal
NVE publishes dated flood warnings through a versioned REST endpoint. Start with today's and tomorrow's English Warning records; an empty list means no qualifying entries returned for that scope, not an all-clear. NVE asks reusers to present complete bulletin context and credit Varsom.
Install the packages, then run the notebook cell.
python -m pip install requests
from datetime import date, timedelta
import requests
today = date.today()
tomorrow = today + timedelta(days=1)
url = ("https://api01.nve.no/hydrology/forecast/flood/v1.0.10/api/"
f"Warning/2/{today.isoformat()}/{tomorrow.isoformat()}")
response = requests.get(url, timeout=30)
response.raise_for_status()
warnings = response.json()
print(f"{len(warnings)} regional flood warnings in this two-day response")
for warning in warnings[:5]:
print(warning.get("Id"), warning.get("ActivityLevel"))Test a Useful Signal
Check a bounded regional warning response before local matching.
Norwegian Water Resources and Energy Directorate is a government source. Last verified 2026-09-28. Temporal coverage: current regional flood warnings.