Such Flight

FREE
By siddiq
Updated 5 months ago
Travel
8.2/10
Popularity Score
3866ms
Latency
99%
Success Rate

Such Flight API Documentation

Flight Search API. Searches in Airblue. Other flights coming soon PIA, Shaheen Air.

View API Details
GETsearch
GETsearch

Search

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
toSTRING
REQUIRED3 letter airport code
depart-dateSTRING
REQUIREDyyyy-mm-dd
fromSTRING
REQUIRED3 letter airport code
Optional Parameters
return-dateSTRING
OPTIONALyyyy-mm-dd
Code Snippet
unirest.get("https://siddiq-such-flight-v1.p.rapidapi.com/search?return-date=2015-04-07&to=LHE&depart-date=2015-03-31&from=DXB")
.header("X-RapidAPI-Host", "siddiq-such-flight-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://siddiq-such-flight-v1.p.rapidapi.com/search
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://siddiq-such-flight-v1.p.rapidapi.com/search?return-date=2015-04-07&to=LHE&depart-date=2015-03-31&from=DXB")
.header("X-RapidAPI-Host", "siddiq-such-flight-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