Sign Up

Log In

Flight Bookings

FREEMIUM
By airhob
Updated a month ago
Travel
5.8/10
Popularity Score
1482ms
Latency
-
Success Rate

Flight Bookings API Documentation

We're providing developer-friendly API's to major low cost and full service carriers with capabilities to search, price and book flights realtime. We directly dive into the inventory of airlines and GDS partners.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
Flights
POST/sandboxapi/flights/v1.1/search
POSTLook
POSTPrice
POSTIssue
POST/sandboxapi/flights/v1.1/search
FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Accept-EncodingSTRING
OPTIONAL
Content-TypeSTRING
REQUIRED
apikeySTRING
REQUIRED
modeSTRING
REQUIRED
Required Parameters
FLIGHT SEARCHJSON_STRING
REQUIRED
Request Snippet
unirest.post("https://airhob-api.p.rapidapi.com/sandboxapi/flights/v1.1/search")
.header("X-RapidAPI-Key", "undefined")
.header("Accept-Encoding", "undefined")
.header("Content-Type", "undefined")
.header("apikey", "undefined")
.header("mode", "undefined")
.send({"TripType":"O","NoOfAdults":1,"NoOfChilds":0,"NoOfInfants":0,"ClassType":"Economy","OriginDestination":[{"Origin":"JFK","Destination":"SFO","TravelDate":"07/14/2017"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

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.post("https://airhob-api.p.rapidapi.com/sandboxapi/flights/v1.1/search")
.header("X-RapidAPI-Key", "undefined")
.header("Accept-Encoding", "undefined")
.header("Content-Type", "undefined")
.header("apikey", "undefined")
.header("mode", "undefined")
.send({"TripType":"O","NoOfAdults":1,"NoOfChilds":0,"NoOfInfants":0,"ClassType":"Economy","OriginDestination":[{"Origin":"JFK","Destination":"SFO","TravelDate":"07/14/2017"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard