Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official Portuguese weather-warning JSON from IPMA for reviewing affected forecast areas, severity levels, and warning validity.
Report a ProblemFrom Source to Product Signal
IPMA publishes area-based weather warnings as JSON. Start with five entries and preserve area code, start/end time, and awareness level. The public service is documented for noncommercial use; confirm the IPMA conditions before wider reuse. Green entries are not proof of no other hazards.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
response = requests.get(
"https://api.ipma.pt/open-data/forecast/warnings/warnings_www.json",
timeout=30,
)
response.raise_for_status()
for warning in response.json()[:5]:
print(warning["idAreaAviso"], warning["awarenessLevelID"],
warning["startTime"], warning["endTime"])Test a Useful Signal
Check whether IPMA warnings can support a bounded area warning card.
Instituto Português do Mar e da Atmosfera is a government source. Last verified 2026-09-28. Temporal coverage: current warnings up to three days.