RapidAPI logo

Sign Up

Log In

Skyscanner Flight Search

FREE
By skyscannerOfficial
Updated 3 months ago
Travel, Transportation
10/10
Popularity Score
305ms
Latency
41%
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
GETPoll session results

Get itineraries from a created session

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
sessionkeySTRING
REQUIREDThe session key received in the Location Header when creating the session
Optional Parameters
sortTypeSTRING
OPTIONALThe parameter to sort results on. Can be carrier, duration, outboundarrivetime, outbounddeparttime, inboundarrivetime, inbounddeparttime, price*
sortOrderSTRING
OPTIONALThe sort order. ‘asc’ or 'desc’
durationNUMBER
OPTIONALFilter for maximum duration in minutes. Integer between 0 and 1800
includeCarriersSTRING
OPTIONALFilter flights by the specified carriers. Must be semicolon-separated IATA codes.
excludeCarriersSTRING
OPTIONALFilter flights by any but the specified carriers. Must be semicolon-separated IATA codes.
originAirportsSTRING
OPTIONALOrigin airports to filter on. List of airport codes delimited by ‘;’
destinationAirportsSTRING
OPTIONALDestination airports to filter on. List of airport codes delimited by ‘;’
stopsSTRING
OPTIONALFilter by number of stops. 0: direct flights only 1: flights with one stop only. to show all flights do not use (only supports values 0 and 1)
outboundDepartTimeSTRING
OPTIONALFilter for outbound departure time by time period of the day (i.e. morning, afternoon, evening). List of day time period delimited by ‘;’ (acceptable values are M, A, E)
outboundDepartStartTimeSTRING
OPTIONALFilter for start of range for outbound departure time. Format ‘hh:mm’.
outboundDepartEndTimeSTRING
OPTIONALFilter for end of range for outbound departure time. Format ‘hh:mm’.
outboundArriveStartTimeSTRING
OPTIONALFilter for start of range for outbound arrival time. Format ‘hh:mm’.
outboundArriveEndTimeSTRING
OPTIONALFilter for end of range for outbound arrival time. Format ‘hh:mm’.
inboundDepartTimeSTRING
OPTIONALFilter for inbound departure time by time period of the day (i.e. morning, afternoon, evening). List of day time period delimited by ‘;’ (acceptable values are M, A, E)
inboundDepartStartTimeSTRING
OPTIONALFilter for start of range for inbound departure time. Format ‘hh:mm’.
inboundDepartEndTimeSTRING
OPTIONALFilter for start of range for inbound departure time. Format ‘hh:mm’.
inboundArriveStartTimeSTRING
OPTIONALFilter for start of range for inbound departure time. Format ‘hh:mm’.
inboundArriveEndTimeSTRING
OPTIONALFilter for end of range for inbound arrival time. Format ‘hh:mm’.
pageIndexNUMBER
OPTIONALThe desired page number. Leave empty for no pagination.
pageSizeNUMBER
OPTIONALThe number of itineraries per page. Defaults to 10 if not specified.
Request Snippet
unirest.get("https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/uk2/v1.0/{sessionkey}?pageIndex=0&pageSize=10")
.header("X-RapidAPI-Host", "skyscanner-skyscanner-flight-search-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
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.get("https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/uk2/v1.0/{sessionkey}?pageIndex=0&pageSize=10")
.header("X-RapidAPI-Host", "skyscanner-skyscanner-flight-search-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