A simple API for travel advisories published by the Australian DFAT Smartraveller.
This is not an official API. Visit the Smartraveller website for the latest information.
Available at https://smartraveller.kevle.xyz/api/
go run .
Get an advice summary for a country. May be cached for up to half an hour.
- country (required)
- ISO alpha-2 country codes
https://smartraveller.kevle.xyz/api/advisory?country=es
{
"lastFetched": "2025-04-12T09:10:12Z",
"advisory": {
"country": {
"name": "Spain",
"alpha2": "ES"
},
"advice": "Exercise normal safety precautions",
"latestUpdate": "We continue to advise exercise normal safety precautions in Spain. We advise: Exercise normal safety precautions in Spain.",
"level": 2,
"published": "2025-03-27T12:00:00Z",
"pageUrl": "https://www.smartraveller.gov.au/destinations/europe/spain"
}
}
Get all available Smartraveller advisories. May be cached for up to 1 hour.
{
"lastFetched": "2025-04-12T09:11:06Z",
"advisories": [
{
"country": {
"name": "France",
"alpha2": "FR"
},
"advice": "Exercise a high degree of caution",
"latestUpdate": "We've reviewed our travel advice for France and continue to advise exercise a high degree of caution due to the threat of terrorism. France's national terrorist alert warning remains at the highest level. Expect high-level security nationwide (see 'Safety'). If you plan to travel to France to commemorate Anzac Day, understand the risks and plan ahead (see 'Travel'). We advise: Exercise a high degree of caution in France due to the threat of terrorism.",
"level": 3,
"published": "2025-03-19T12:00:00Z",
"pageUrl": "https://www.smartraveller.gov.au/destinations/europe/france"
},
...
],
"length": 178
}
Smartraveller publishes advisories under non-standard names for countries and does not seem to utilise any standard country codes. We attempt to look up the country name and fallback to custom mapping of the page slug.
This method of parsing countries may produce inconsistent or inaccurate results.
If a country can't be found it may be due to either a failed lookup, or an advisory not being published for that country.
Smartraveller material is provided under the latest Creative Commons Attribution licence.
Information: https://www.smartraveller.gov.au/copyright