IATACodes

FREEMIUM
By iatacodes
Updated 5 months ago
Travel
8.1/10
Popularity Score
615ms
Latency
65%
Success Rate

IATACodes API Documentation

An API to get IATA codes database and more.

In our database you can find information about IATA (International Air Transport Association) codes for Airports, Cities, Airlines, Taxes, Aircrafts and additional data about Countries, Routes, Timezones.

Information in this database will be helpful for search services, meta-search services, information portals, online travel agencies. This information can significantly enrich SEO content, for giving more sense to end-users. And also to give you a competitive advantage.

View API Details
GETAirports
GETCities
GETAirlines
GETAirports
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
api_keySTRING
REQUIREDPlease register at http://iatacodes.org/ to use your own api key.
Optional Parameters
codeSTRING
OPTIONALspecified airport code
langSTRING
OPTIONALlanguage code - en (by default), fr, de, es, it, ru, th, tr
Code Snippet
unirest.get("https://iatacodes-iatacodes-v1.p.rapidapi.com/api/v5/airports?code=CDG&lang=en&api_key=YOUR-API-KEY")
.header("X-RapidAPI-Host", "iatacodes-iatacodes-v1.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://iatacodes-iatacodes-v1.p.rapidapi.com/api/v5/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://iatacodes-iatacodes-v1.p.rapidapi.com/api/v5/airports?code=CDG&lang=en&api_key=YOUR-API-KEY")
.header("X-RapidAPI-Host", "iatacodes-iatacodes-v1.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