World IATA Airports

FREEMIUM
By easypnr
Updated 5 months ago
6.2/10
Popularity Score
559ms
Latency
100%
Success Rate

World IATA Airports API Documentation

Reliable Airports list and details, with IATA codes.

View API Details
GET/airports
GET/airports/{iataCode}
GET/airports

Return a list with all airports with IATA codes.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Code Snippet
unirest.get("https://airports-iata.p.rapidapi.com/airports")
.header("X-RapidAPI-Host", "airports-iata.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://airports-iata.p.rapidapi.com/airports
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://airports-iata.p.rapidapi.com/airports")
.header("X-RapidAPI-Host", "airports-iata.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