Table of ContentsWhat are APIs?Quick ReferencesSkyscanner Flight Search APIDark Sky APICity Geo-Location Lookup APIExample Application: Combining all 3 APIsConclusion What are APIs? Application programming interfaces (APIs) are the tools which can be used by developers to perform specific tasks needed in their apps. We like to think about APIs as of the building blocks of …
Check out the Best Travel APIs available on RapidAPI to use including Skyscanner, Google, Travel Time, & More! Signup today for Free!
Browse 18+ Flight Data APIs available on RapidAPI.com. Top Flight Data APIs include Skyscanner Flight Search, TripAdvisor, AeroDataBox and more. Sign Up today for Free!
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.
POST Create sessionto create a query session for flights.
POST Create session.
GET Poll session results.
In addition to price information, your users will need a url that redirects them to where they can book their ticket.
For now, you should utilize the deeplink provided in the response of the API to redirect for booking.
We reserve the right to block users who display misuse of the API, don’t redirect properly or adhere to the use guidelines.
Users who maintain healthy traffic score as described above are entitled to 50/50 revenue share with RapidAPI for every commission generated by users of their applications. Please contact [email protected] to see if you qualify.
When getting the result back from the session polling, they will have the following 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.
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