World Airports

PAID
By navii
Updated 4 months ago
Travel
4.7/10
Popularity Score
7983ms
Latency
100%
Success Rate

World Airports API Documentation

Find a list of airports matching the search string with Airport Name, Code or Location.

View API Details
POSTSearch
POSTSearch

Keyword in Airport Name, City or Code.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
OPTIONAL
Required Parameters
POSTJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://airports.p.rapidapi.com/")
.header("X-RapidAPI-Host", "airports.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"search":"Pun"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://airports.p.rapidapi.com/
Request Method: POST
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.post("https://airports.p.rapidapi.com/")
.header("X-RapidAPI-Host", "airports.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"search":"Pun"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication