RapidAPI logo

Sign Up

Log In

Airport Timetable - REST Method

FREEMIUM
By flightlookup
Updated 3 months ago
Travel
6.7/10
Popularity Score
59234ms
Latency
-
Success Rate

Airport Timetable - REST Method API Documentation

FlightLookup Airport Timetable - Find all the flights to or from an airport. Ideal service if you are an airport or providing a timetable for airports. Want to know to get to a airport or from an airport you will need this service. *All flights into and out of Airport, *Worldwide passenger airline flight schedules, *Single Day, 7 day and Multi-day lookups

View API Details
XML
GETAirportTimeTable
GETAirportTimeTable

This method returns timetable data based on a single airport/city code for either arrivals or departures.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
monthNUMBER
REQUIREDRequired - Departure or Arrival Month. (mm)
dayNUMBER
REQUIREDRequired - Departure or Arrival Day. (dd)
airportSTRING
REQUIREDRequired - 3 letter IATA code for desired airport.
directionSTRING
REQUIREDRequired - "depart" or "arrive"
yearNUMBER
REQUIREDRequired - Departure or Arrival Year. (yyyy)
Optional Parameters
SortOrderNUMBER
OPTIONALOptional - 0=Arrival Time, 1=Departure Time, 2=Duration, 3=Flight Type (Nonstop/Direct/Connection), 4=Via, 5=Connections (Flights), 6=Prefer Metal (metal only flights will show up first)
CountNUMBER
OPTIONALOptional - Number of routes to return. (Default=20)
AirlineSTRING
OPTIONALOptional - 2 letter IATA airline code. Restricts results to routes flown by a certain carrier
HopsSTRING
OPTIONALOptional - NONSTOP, DIRECT, 1STOP, MORE
Request Snippet
unirest.get("https://flightlookup-airporttimetable-rest.p.rapidapi.com/AirportTimeTable/BOS/depart/12/17/2012/?SortOrder=1&Count=1&Airline=AA&Hops=NONSTOP")
.header("X-RapidAPI-Host", "flightlookup-airporttimetable-rest.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://flightlookup-airporttimetable-rest.p.rapidapi.com/AirportTimeTable/BOS/depart/12/17/2012/?SortOrder=1&Count=1&Airline=AA&Hops=NONSTOP")
.header("X-RapidAPI-Host", "flightlookup-airporttimetable-rest.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