RapidAPI logo

Sign Up

Log In

AirportsFinder

FREE
By cometari
Updated 3 months ago
Travel
9.2/10
Popularity Score
312ms
Latency
91%
Success Rate

AirportsFinder API Documentation

Airports Finder is an application and REST API that allows you to find airports that are near a given location. It also provides airport search within a certain region. Users can provide a location and radius in km to find where they can fly from and to. The airport lookup API can be integrated with other apps and services to get data you need.

View API Details
GETSearch airports by radius
GETSearch airports by name
GETSearch nearest airport
GETSearch airports by code
GETSearch cities by airports
GETSearch airports by radius

Search airports by radius

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
radiusNUMBER
REQUIREDradius in km
lngNUMBER
REQUIREDlng
latNUMBER
REQUIREDlat
Request Snippet
unirest.get("https://cometari-airportsfinder-v1.p.rapidapi.com/api/airports/by-radius?radius=50&lng=-157.895277&lat=21.265600")
.header("X-RapidAPI-Host", "cometari-airportsfinder-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
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://cometari-airportsfinder-v1.p.rapidapi.com/api/airports/by-radius?radius=50&lng=-157.895277&lat=21.265600")
.header("X-RapidAPI-Host", "cometari-airportsfinder-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