Whereto

FREEMIUM
By ihti
Updated 4 months ago
Travel
-/10
Popularity Score
-
Latency
-
Success Rate

Whereto API Documentation

Search world airports, airlines and routes by name, city, country, IATA code or geo location.

View API Details
Airports
GETAirports search
GETSearch airports by geo location
GETAirport details
Airlines
GETAirlines search
GETAirline details
GETAirports search

Search airports by name, city or IATA code

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
qSTRING
REQUIRED
Code Snippet
unirest.get("https://whereto.p.rapidapi.com/airports/{q}")
.header("X-RapidAPI-Host", "whereto.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://whereto.p.rapidapi.com/airports/{q}
Request Method: GET
Response Headers
Response Body

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://whereto.p.rapidapi.com/airports/{q}")
.header("X-RapidAPI-Host", "whereto.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