Flight Number Lookup - URI Method

FREEMIUM
By flightlookup
Updated 5 months ago
Travel
4.5/10
Popularity Score
59172ms
Latency
-
Success Rate

Flight Number Lookup - URI Method API Documentation

FlightLookup Flight Metadata - Need to know the details of a flight or its route then this is a quick lookup service. *Metadata on Specific Flight, *Arrive, Depart, Times, Days of operation, Operating Carrier, Terminal

View API Details
XML
GETFlightMetaData
GETFlightMetaData

This method returns metadata about a flight number on a specified date.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
FromSTRING
REQUIREDRequired - 3 letter IATA code for the departure airport
ToSTRING
REQUIREDRequired - 3 letter IATA code for the destination airport
FlightNumberSTRING
REQUIREDRequired - Flight number designator
DateSTRING
REQUIREDRequired - Departure or Arrival date. (mm/dd/yyyy)
AirlineSTRING
REQUIREDRequired - 2 letter IATA airline code. Restricts results to routes flown by a certain carrier.
Optional Parameters
AirportSTRING
OPTIONALOptional - 3 letter IATA code for desired airport.
DirectionSTRING
OPTIONALOptional - "depart" or "arrive"
TimeRangeSTRING
OPTIONALOptional - ANY, AM, PM, NIGHT
Code Snippet
unirest.get("https://flightlookup-flightmetadata-uri.p.rapidapi.com/FlightMetaData/?Airport=DEN&TimeRange=ANY&From=BOS&To=LAX&Date=12&Airline=AA")
.header("X-RapidAPI-Host", "flightlookup-flightmetadata-uri.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://flightlookup-flightmetadata-uri.p.rapidapi.com/FlightMetaData/
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://flightlookup-flightmetadata-uri.p.rapidapi.com/FlightMetaData/?Airport=DEN&TimeRange=ANY&From=BOS&To=LAX&Date=12&Airline=AA")
.header("X-RapidAPI-Host", "flightlookup-flightmetadata-uri.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