Table of Contents
Last year, we wrote a blog post about the Google Flights API (QPX Express API). In that post, we highlighted what we love about the API, explained how to make an API call, and discussed some relevant project ideas. After hearing about the Google Flights API’s depreciation on April 10th, 2018, as travel lovers we started looking for a replacement travel API provider for our developer community. That’s where the Skyscanner API steps in to save the day as a QPX Express API alternative!
We are extremely excited to announce our new partnership with Skyscanner. For the first time ever, developers will be able to access and implement Skyscanner’s Flight Search directly into their applications through a public API, exclusively listed on RapidAPI.
Skyscanner Travel APIs directly connect you to all the data you need to build an innovative website or app. Your customers will be able to take advantage of the best deals on flights, hotels or car hire from wherever they are in the world – either as three independent travel solutions or integrated together.
As a leader in the travel space, our partnership with Skyscanner is especially strategic for us at RapidAPI.
What Data is Available With the Skyscanner Flight Search API?
Over the past 16 years, the Skyscanner team has been building and developing one of the best all-in-one travel apps in the world. Their platform aggregates travel information from across the internet and puts it into one place for users to consume and plug into their products.
Skyscanner offers an unprecedented dataset via their Developer API, and we can’t wait to see what our community builds on top of it. All of Skyscanner’s amazing flight data api will now be available to developers directly on the RapidAPI platform via a single click.
The main function of the Sky Scanner API is searching for flights. This can be done in two ways: cached search and live search.
Cached search is much simpler to use, and is free. It searches through the existing data on the Skyscanner platform, giving you a good estimate of available routes (using the Browse Routes endpoint) and flight prices (using the Browse Quotes endpoint).
Live search is a little more complex, but it lets you perform a real-time query of all the different airlines and booking agents to get real booking options. To use that, you’ll need to create a search session with the details of the flight you’re searching. The search results will load in the background, and you can poll them.
In both approaches, you can query flights between any two locations in the world at any dates. The information returned by the API will include flight dates, carriers, and prices.
How to Use the Skyscanner Flight Search API
Step 0: Setup a RapidAPI Account
Step 1: Make an API Request
As soon as you are signed in to an account on RapidAPI, you will instantly be able to make requests to the API. It’s really that simple! A great way to test out the functionality of an API is to use the RapidAPI website to make a test API call from within the browser.
To do this, navigate to the Skyscanner Flight Search functions page, select the endpoint you want to call, and click the “Test Function” button.
Once you’ve made a test API call, you are ready to add the API to your project. Every API on RapidAPI has a code snippet provided to help get you started. Just copy to code snippet directly into your program and select the Unirest Library for the programming language your application is using. Unirest is a set of lightweight HTTP libraries available in multiple languages, which makes connecting to the Skyscanner API a breeze.
Prepare for takeoff…
We cannot wait to see our community begin using the Skyscanner API and all of the amazing functionality it has to offer. Please leave comments, questions and any ideas you have on how you might use the Skyscanner Flight Search API in the comments down below — we’d love your feedback!
How do I get a Skyscanner API Key?
Ready to get started?