RapidAPI logo

Sign Up

Log In

Travel Advisory

FREE
By nh2000
Updated 3 months ago
Travel
6.4/10
Popularity Score
10577ms
Latency
-
Success Rate

Travel Advisory API Documentation

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.

View API Details
GEThttps://www.travel-advisory.info/api
GEThttps://www.travel-advisory.info/api

Provide list of country assessment for all countries of the world.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Request Snippet
unirest.get("https://travel-advisory.p.rapidapi.com/api")
.header("X-RapidAPI-Host", "travel-advisory.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://travel-advisory.p.rapidapi.com/api")
.header("X-RapidAPI-Host", "travel-advisory.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication