theme
Travel Advisory
FREE
By nh2000
Updated 7 months ago
Travel Advisory Overview
This is a simple REST API that replies with an UTF8 encoded JSON Object. This API provides you with a daily updated list of country advisories. These advisories contain a risk value which describes how dangerous a country is from a travellers perspective. This data is available for every country. The number between 0 (zero) and 5 (five) that we show, represent how dangerous a country is. Or better, what level of danger different authorities see for their citizens when travelling a specific country. Often governments publish some sort of advisory for travel destinations for their own citizens. We collect these advisories and try to analyze the risk described. We then give each advisory a risk rating between zero and five. The number shown on travel-advisory.info is the average score that we got over all advisories.
provider
rating
add first rating
Followers on API
Follow this API
resourcesProvider WebsiteTerms of Service
More Details

This is a simple REST API that replies with an UTF8 encoded JSON Object. This API provides you with a daily updated list of country advisories. These advisories contain a risk value which describes how dangerous a country is from a travellers perspective. This data is available for every country.

How to use
Essentially as simple as it gets.

Basic API Endpoint
https://www.travel-advisory.info/api

Calling this URL as GET will return the list of country we keep track of in JSON format.

You can also use the standard 'non-https' url http://www.travel-advisory.info/api at Port 80 if your client is not capable of handling SSL connections.

Optional Parameter
https://www.travel-advisory.info/api?countrycode=AU

Using the api together with the optional parameter 'countrycode' and a single two-letter ISO countrycode will restrict the result list to a single country.

See Wikipedia for a comprehensive list of possible codes.

Example Code
{ "api_status": { "request": { "item": "de" }, "reply": { "cache": "renewed", "code": 200, "status": "ok", "note": "The api works, we could match requested country code.", "count": 1 } }, "data": { "DE": { "iso_alpha2": "DE", "name": "Germany", "continent": "EU", "advisory": { "score": 1.5, "sources_active": 4, "message": "Germany has a current risk level of 1.5 (out of 5). We Advise: Travelling Germany is (relatively) safe.", "updated": "2019-02-12 19:53:38", "source": "https:\/\/www.travel-advisory.info\/germany" } } } }

Have a question about this API?Ask the API Provider.
Developers who viewed Travel Advisory also viewed

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication