Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Portuguese regional earthquake records for building a dated seismic context view around travel destinations.
Report a ProblemFrom Source to Product Signal
IPMA publishes regional seismic JSON files, including areas 3 and 7 used by TravelCanary. Start with area 3 and inspect two records; a reported earthquake is contextual information, not an active hazard warning.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
url = "https://api.ipma.pt/open-data/observation/seismic/3.json"
response = requests.get(url, timeout=20)
response.raise_for_status()
feed = response.json()
print(feed["idArea"], feed.get("updateDate"))
for event in feed["data"][:2]:
print(event.get("time"), event.get("magnitud"))Test a Useful Signal
Show two dated earthquake records from an official IPMA region.
Instituto Português do Mar e da Atmosfera is a government source. Last verified 2026-09-28. Temporal coverage: recent regional seismic observations.