Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Published UK government country travel advice for building a destination briefing with dated safety context.
Report a ProblemFrom Source to Product Signal
The GOV.UK Content API returns structured advice for one country path. Start with Switzerland and inspect its update date; advice is not a guarantee of safety or a substitute for the full official notice.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
url = "https://www.gov.uk/api/content/foreign-travel-advice/switzerland"
response = requests.get(url, timeout=20)
response.raise_for_status()
advice = response.json()
print(advice["title"], advice.get("public_updated_at"))
print("https://www.gov.uk" + advice["base_path"])Test a Useful Signal
Show a country advice link and its latest publication timestamp.
UK Foreign, Commonwealth & Development Office is a government source. Last verified 2026-09-28. Temporal coverage: current country advice.