Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Current Polish river-station observations and official thresholds from IMGW for checking stage exceedance at reviewed gauges.
Report a ProblemFrom Source to Product Signal
IMGW's public API returns river-stage measurements with official warning and alarm thresholds. Free access is limited to qualifying noncommercial analysis; commercial and specified sectoral uses can require a separate agreement and payment. Start with five stations from one response. A threshold crossing at one station is not a published area-wide warning.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
response = requests.get("https://danepubliczne.imgw.pl/api/data/hydro/", timeout=30)
response.raise_for_status()
for station in response.json()[:5]:
print(station.get("id_stacji"), station.get("stan_wody"),
station.get("stan_ostrzegawczy"), station.get("stan_wody_data_pomiaru"))Test a Useful Signal
Review five official station readings before local stage matching.
Institute of Meteorology and Water Management is a government source. Last verified 2026-09-28. Temporal coverage: current river-stage station observations.