British Airways Flight Info

FREE
By community
Updated 5 months ago
Travel
1.4/10
Popularity Score
1171ms
Latency
-
Success Rate

British Airways Flight Info API Documentation

British Airways is the flag carrier airline of the United Kingdom and its largest airline based on fleet size, international flights and international destinations

View API Details
GETSearch arrivals by route
GETSearch arrivals by flight
GETSearch departures by route
GETSearch today's arrivals by time
GETSearch departures by flight
GETSearch today's departures by time
GETSearch arrivals by route
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Client-KeyHEADER
REQUIREDGet your key from https://developer.ba.com/apps/mykeys
Required Parameters
scheduledArrivalDateSTRING
REQUIRED
departurelocation-arrivallocation-arrivallocation-scheduledarrivaldate-scheduledarrivaldateSTRING
REQUIRED
departureLocationSTRING
REQUIRED
arrivalLocationSTRING
REQUIRED
Code Snippet
unirest.get("https://community-british-airways-flight-info.p.rapidapi.com/flights;departureLocation={departureLocation};arrivalLocation={arrivalLocation};scheduledArrivalDate={scheduledArrivalDate}.json?scheduledArrivalDate=2014-06-01&departureLocation=LHR&arrivalLocation=ZRH")
.header("X-RapidAPI-Host", "community-british-airways-flight-info.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://community-british-airways-flight-info.p.rapidapi.com/flights;departureLocation={departureLocation};arrivalLocation={arrivalLocation};scheduledArrivalDate={scheduledArrivalDate}.json
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://community-british-airways-flight-info.p.rapidapi.com/flights;departureLocation={departureLocation};arrivalLocation={arrivalLocation};scheduledArrivalDate={scheduledArrivalDate}.json?scheduledArrivalDate=2014-06-01&departureLocation=LHR&arrivalLocation=ZRH")
.header("X-RapidAPI-Host", "community-british-airways-flight-info.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