RapidAPI logo

Sign Up

Log In

Skyscanner Flight Search

FREE
By skyscannerOfficial
Updated 3 months ago
Travel, Transportation
10/10
Popularity Score
275ms
Latency
35%
Success Rate

Skyscanner Flight Search API Documentation

The Sky Scanner API lets you search for flight & get flight prices from Skyscanners database of prices, as well as get live quotes directly from ticketing agencies.

View API Details
Live Flight Search
POSTCreate session
GETPoll session results
Places
GETList Places
Browse Flight Prices
GETBrowse Quotes
GETBrowse Routes
GETBrowse Dates
GETBrowse Dates Inbound
GETBrowse Quotes Inbound
GETBrowse Routes Inbound
Localisation
GETList markets
GETCurrencies
POSTCreate session

Create a flight search session. A successful response contains no content. The session key to poll the results is provided in the Location header of the response. The last value of location header contains the session key which is required when polling the session.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
countrySTRING
REQUIREDThe market/country your user is in (see docs for list of markets)
currencySTRING
REQUIREDThe currency you want the prices in (3-letter currency code)
localeSTRING
REQUIREDThe locale you want the results in (ISO locale)
originPlaceSTRING
REQUIREDThe origin place (see docs for places)
destinationPlaceSTRING
REQUIREDThe destination place (see docs for places)
outboundDateSTRING
REQUIREDThe outbound date. Format “yyyy-mm-dd”.
adultsNUMBER
REQUIREDNumber of adults (16+ years). Must be between 1 and 8.
Optional Parameters
inboundDateSTRING
OPTIONALThe return date. Format “yyyy-mm-dd”. Use empty string for oneway trip.
cabinClassSTRING
OPTIONALThe cabin class. Can be “economy”, “premiumeconomy”, “business”, “first”
childrenNUMBER
OPTIONALNumber of children (1-16 years). Can be between 0 and 8.
infantsNUMBER
OPTIONALNumber of infants (under 12 months). Can be between 0 and 8.
includeCarriersSTRING
OPTIONALOnly return results from those carriers. Comma-separated list of carrier ids.
excludeCarriersSTRING
OPTIONALFilter out results from those carriers. Comma-separated list of carrier ids.
groupPricingSTRING
OPTIONALIf set to true, prices will be obtained for the whole passenger group and if set to false it will be obtained for one adult. By default it is set to false.
Request Snippet
unirest.post("https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0")
.header("X-RapidAPI-Host", "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("inboundDate=2019-09-10")
.send("cabinClass=business")
.send("children=0")
.send("infants=0")
.send("country=US")
.send("currency=USD")
.send("locale=en-US")
.send("originPlace=SFO-sky")
.send("destinationPlace=LHR-sky")
.send("outboundDate=2019-09-01")
.send("adults=1")
.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.post("https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0")
.header("X-RapidAPI-Host", "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("inboundDate=2019-09-10")
.send("cabinClass=business")
.send("children=0")
.send("infants=0")
.send("country=US")
.send("currency=USD")
.send("locale=en-US")
.send("originPlace=SFO-sky")
.send("destinationPlace=LHR-sky")
.send("outboundDate=2019-09-01")
.send("adults=1")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication