Flights To Anywhere, Never Made Easier

by

Flights To API

As a travel agency or company that promotes air fare, sometimes you need a simple tool that can help you market great deals and drive traffic to your business. The first step in that process is highlighting low fares to popular destinations around the world.

The Flights To API is a simple, straightforward service that brings back the lowest fares associated with a specific destination. You can create a landing page that advertises fares to a popular destination. For the traveler, they can quickly see the lowest fares and continue to navigate to bookable flight options for their travel needs.

Cheapest Flights to Paris, POS Germany

Cheapest Flights to Paris, POS Germany

 

This data can then be used in email campaigns and landing pages. For example, email campaigns highlighting “Flights to London starting at $350” could be an enticing subject line and the body of the email could include the links to the subsequent flights. This structure could guarantee success of your email campaign with high open-rates and click-throughs to your site.

The only required parameters are the destination and POS (country in which the fare will be ticketed). And viola, the API will return up to 20 of the lowest fares with fare information and a shop link that invokes an InstaFlights Search request (this will provide you the full itineraries for any fares you see in the response).

 

Sample request and response from the API

{
   "DestinationLocation": "PAR",
   "FareInfo": [{
       "CurrencyCode": "EUR",
       "LowestFare": {
           "AirlineCodes": ["4U"],
           "Fare": 97.14
       },
       "OriginLocation": "BER",
       "DepartureDateTime": "2016-03-29T00:00:00",
       "ReturnDateTime": "2016-03-29T00:00:00",
       "Links": [{
           "rel": "shop",
           "href": "https://api.test.sabre.com/v1/shop/flights?origin=BER&destination=PAR&departuredate=2016-03-29&returndate=2016-03-29&pointofsalecountry=DE"
       }]
   }, {
       "CurrencyCode": "EUR",
       "LowestFare": {
             "AirlineCodes": ["4U"],
             "Fare": 97.75
         },
        "OriginLocation": "HAM",
         "DepartureDateTime": "2015-10-01T00:00:00",
         "ReturnDateTime": "2015-10-01T00:00:00",
         "Links": [{
             "rel": "shop",
             "href": "https://api.test.sabre.com/v1/shop/flights?origin=HAM&destination=PAR&departuredate=2015-10-01&returndate=2015-10-01&pointofsalecountry=DE"
         }]
     }, {
         "CurrencyCode": "EUR",
         "LowestFare": {
             "AirlineCodes": ["LH"],
             "Fare": 104.12
         },
         "OriginLocation": "FRA",
         "DepartureDateTime": "2016-03-12T00:00:00",
         "ReturnDateTime": "2016-03-13T00:00:00",
         "Links": [{
             "rel": "shop",
             "href": "https://api.test.sabre.com/v1/shop/flights?origin=FRA&destination=PAR&departuredate=2016-03-12&returndate=2016-03-13&pointofsalecountry=DE"
         }]
     }, {
         "CurrencyCode": "EUR",
         "LowestFare": {
             "AirlineCodes": ["LH"],
             "Fare": 114.82
         },
         "OriginLocation": "MUC",
         "DepartureDateTime": "2016-03-12T00:00:00",
         "ReturnDateTime": "2016-03-13T00:00:00",
         "Links": [{
             "rel": "shop",
             "href": "https://api.test.sabre.com/v1/shop/flights?origin=MUC&destination=PAR&departuredate=2016-03-12&returndate=2016-03-13&pointofsalecountry=DE"
         }]
     }],
     "Links": [{
         "rel": "self",
         "href": "https://api.test.sabre.com/v1/shop/flights/cheapest/fares/PAR?pointofsalecountry=DE"
     }, {
         "rel": "linkTemplate",
         "href": "https://api.test.sabre.com/v1/shop/flights/cheapest/fares/<destination>?pointofsalecountry=<pointofsalecountry>"
     }]
 }

You can see more details about this API and the other Air Shopping APIs powered by the Travel Insight Engine by checking out our technical documentation and playing around in the API Explorer.

 

Leave a Reply

Your email address will not be published. Required fields are marked *