content
Skyscanner Flight Search
  Last updated: 26/07/2018
  • Installs:
  • Today: 1
  • All Time: 3101329
Developer:userskyscanner

Skyscanner Flight Search API Package

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.

List of Endpoints
This is the list of endpoints this API includes. To add any of the endpoints to your app, please click on “Connect to endpoint” text.
See All
Discussions
user thumbnail
info20: Retrieve one way flight
2018-10-18
user thumbnail
home.work.personaly: Create session error (Method Not Allowed)
2018-10-18
user thumbnail
johnnyperdomo: Where can i get a x-mashape key
2018-10-16
user thumbnail
ChristopherJohnson25: Question Regarding '304 Not Modified' (Live Prices)
2018-09-22
user thumbnail
orrett: I am not getting the prices of flights.
2018-09-21
user thumbnail
ChristopherJohnson25: 500 on 'Create Session'
2018-09-19
user thumbnail
pablofergui: Response 400 - Can´t find Location
2018-09-14
user thumbnail
gogskytravel: Gogsky
2018-09-14
user thumbnail
mashuble1: Production keys and Conversion Dashboard
2018-09-10
See All
Readme

Flights Live Prices

Querying live flight prices is done using sessions. You create a session with the query details (origin location, destination location, cabin class etc...), and get a session ID. You can than use that session ID to poll results, sort results and filter results farther.

Imgur

  1. Use the endpoint POST Create session to create a query session for flights.
  2. Get back the session ID in the Location header from POST Create session.
  3. Poll the results using the endpoint GET Poll session results.

Booking Redirects:

In addition to price information, your users will need a url that redirects them to where they can book their ticket.

You can either:

  • redirect your users to the Skyscanner website
  • redirect them directly to the supplier’s website (airline or travel agent)

We recommend that you redirect users to Skyscanner’s website as this helps with trust and therefore will enhance your conversion rate. For more information please see improving your conversions

To Skyscanner

Link to the Skyscanner website with the details of the search query pre-populated. This provides a more straightforward option for partners who do not require a full implementation of a travel search product within their applications.

If the query isn’t specific enough to link to a specific ‘day view’ page, it will link to a more general browse page, where the user will be asked to refine the search criteria (by date, origin and/or destination).

'http://partners.api.skyscanner.net/apiservices/referral/v1.0/{country}/{currency}/{locale}/={originPlace}/{destinationPlace}/{outboundPartialDate}/{inboundPartialDate}?apiKey=ra66933236979928'

Request Parameters

ParameterDescription
countryThe market country your user is in
currencyThe currency you want the prices in
localeThe locale you want the results in (ISO locale)
originPlaceThe origin place (see places)
destinationPlaceThe destination place (see places)
outboundPartialDateThe outbound date. Format yyyy-mm-dd, yyyy-mm or anytime.
inboundPartialDateThe return date. Format yyyy-mm-dd, yyyy-mm or anytime. Use empty string for oneway trip.
shortApiKeyra66933236979928

EXAMPLE REDIRECT

http://partners.api.skyscanner.net/apiservices/referral/v1.0/GB/GBP/en-GB/EDI/CDG/2017-12-12/2017-12-20?apiKey=ra66933236979928

Results payload

When getting the result back from the session polling, they will have the following parameters:

RESPONSE PARAMETERS

SessionKey The Session key to identify the session. Query A copy of the query which was submitted. Status The status of the session – ‘UpdatesPending’ or ‘UpdatesComplete’. Itineraries A list of itineraries - see below for the itinerary object. Legs Details of the legs that make up the itineraries: airports, times, overall duration, stops and carrier ids. Segements Details of the segments of each leg. Including the carrier (or marketing carrier) and the operating carrier. Carriers Details of the carriers. Agents Details of the agents who sell the tickets. Can be an airline or a travel agent. Places A list of all the places that appear in the itineraries. Currencies A list of the currencies shown in the response.

ITINERARY PARAMETERS

OutboundLegId Id of the Outbound Leg InboundLegId Id of the Inbound Leg PricingOptions pricing options with agent(s) the quote age price (total for all passengers) deeplink to the agent (the absolute URL needed to make the booking). In the case where deeplinks are not supplied, you can obtain them with a further step. Refer to the Create/Poll Booking Details documentation. BookingDetailsLink In some cases such as for group prices you will need to make a second call to retrieve the deeplinks. See the next section Get booking details for details

x
circle
Skyscanner Flight Search
$ / m
We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.
?

Oops, we are missing some details

Looks like there are a few missing details that you haven't filled in yet.
These details are important and will help us protect you and let you know about anything new.

x

Why sign up to RapidAPI?

  • integrate
    Integrate APIs into your app
    Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
  • keys
    Save all API keys in one place
  • notifications
    Get notifications about API changes
  • stats
    Get stats and monitor API connections
__SING_UP_WITH_GITHUB__
__SING_UP_WITH_FACEBOOK__
__SING_UP_WITH_GOOGLE__
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Authentication

    Authenticate
    esccloses this view