Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Current official Polish hydrological warning bulletins from IMGW for reviewing affected regions, severity, and validity windows.
Report a ProblemFrom Source to Product Signal
IMGW publishes current hydrological bulletins as separate text files. Free access is limited to qualifying noncommercial analysis; commercial and specified sectoral uses can require an agreement and payment. Start with at most five listed bulletins and preserve issue and validity times. TravelCanary uses flood warnings and excludes drought notices in this shared directory. An empty directory is not the same as an API failure.
Install the packages, then run the notebook cell.
python -m pip install requests
import re
import requests
base = "https://danepubliczne.imgw.pl/data/current/ost_hydro/"
listing = requests.get(base, timeout=30)
listing.raise_for_status()
names = sorted(set(re.findall(r'href="([A-Za-z0-9_-]+\.TXT)"', listing.text)))
print(f"{len(names)} current bulletin files")
for name in names[:5]:
bulletin = requests.get(base + name, timeout=30)
bulletin.raise_for_status()
text = bulletin.content.decode("utf-8", errors="replace")
if "susza hydrologiczna" not in text.lower():
print(name, text[:400])
break
else:
print("No flood bulletin among the first five listed files")Test a Useful Signal
Review one official text bulletin before region matching.
Institute of Meteorology and Water Management is a government source. Last verified 2026-09-28. Temporal coverage: current official hydrological warnings.