Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Skyscanner API guide - LauzHack'16

Skyscanner API guide - LauzHack'16

Skyscanner Flights & Hotels API guide. Presented at Lauzhack'16
Blog post at https://esaezgil.com/events/

Enrique Saez Gil

November 19, 2016

More Decks by Enrique Saez Gil

Other Decks in Technology


  1. None
  2. Flights Hotels Car Hire

  3. None
  4. None
  5. Resources https://github.com/Skyscanner/skyscanner-python-sdk https://duckduckgo.com/?q=skyscanner+api+cheatsheet&t=h_&i a=cheatsheet https://github.com/search?o=desc&q=partners.api.skyscanner.ne t&ref=searchresults&s=indexed&type=Code&utf8=%E2%9C%93 Docs: https://support.business.skyscanner.net/hc/en- us/categories/201253249-Documentation

  6. Postman collection (Flights & Hotel queries): https://drive.google.com/open?id=0B8qoMCJeZpJATG92Z01na1cyNDA http://www.getpostman.com/

  7. Challenge: Hotels & Fights APIs

  8. Flights 1. Get API Key 2. Query Autosuggest for city/country/airport

    identifiers (SkyscannerID) 3. Query Browse Cache with SkyscannerID 4. Create the referral
  9. Get API Key http://en.business.skyscanner.net/

  10. Location Autosuggest From Paris To London For a list of

    places http://partners.api.skyscanner.net/apiservices/autosuggest/v1.0/UK/GBP/GB-EN/?query=london&apiKey={APIKey}
  11. Cheapest prices from London to Spain http://partners.api.skyscanner.net/apiservices/browseroutes/v1.0/UK/GBP/en-GB/LOND-sky/ES- sky/anytime/anytime?apiKey=sk854555384432693416428070885899&application=json

  12. Cheapest prices from London to Spain

  13. Cheapest prices London-Paris by Date http://partners.api.skyscanner.net/apiservices/browsedates/v1.0/UK/GBP/en-GB/LOND-sky/PARI-sky/2016- 12/2016-12?apiKey=sk854555384432693416428070885899&application=json

  14. Cheapest prices London-Paris by Date

  15. Grid of prices: London-Paris in January

  16. Create the referral http://partners.api.skyscanner.net/apiservices/referra l/v1.0/GB/GBP/en-GB/LOND-sky/PARI-sky/2016-12- 12/2016-12-20?apiKey=prtl674938798674 Same as for the

    Browse Cache Service
  17. Hotels 1. Query Autosuggest for city/country/airport identifiers (SkyscannerID) 2. Create

    Hotel Session 3. Create Hotels Polling 4. Create Hotel Details (with booking link)
  18. Hotel Autosuggest For a list of places http://partners.api.skyscanner.net/apiservices/hotels/autosuggest/v2/UK/EUR/en- GB/paris?apikey=prtl6749387986743898559646983194&application=json

  19. Create Hotel Session http://partners.api.skyscanner.net/apiservices/hotels/liveprices/v2/UK/EUR/en- GB/27539733/2016-12-04/2016-12- 10/2/1?apiKey=prtl6749387986743898559646983194 Check Skyscanner Docs/ Postman

  20. Hotel Prices (Polling) Check Skyscanner Docs/ Postman Collection

  21. Hotel Details (with booking link) Check Skyscanner Docs/ Postman Collection

  22. Extra: Flights Live Pricing service

  23. Questions/Help? We came from Barcelona to help you J •

    Slack #skyscanner • Come by our stand (cool merchandise included) Enrique Saez Gil @esaezgil @eqirn Software Engineer @ Manuel Miranda de Cid @argaen @blckdt Software Engineer @