The Flight Search web service returns flight offers live from our travel partners. This service will help you bring travel to live on your site by providing your users with the opportunity to find available flights to an exhaustive list of destinations all over the world.
The Flight Search web service supports the following request parameters:
Name | Type | Summary |
---|---|---|
from | string (required) | The departure city. |
to | string (required) | The destination city. |
dep_day | integer (required) 1-31 |
The departure day. |
dep_month | integer (required) 1-12 |
The departure month. |
dep_year | integer (required) | The departure year. |
ret_day | integer (optional) 1-31 |
The return day if applicable. |
ret_month | integer (optional) 1-12 |
The return month if applicable. |
ret_year | integer (optional) | The return year if applicable. |
num_adults | integer (required) 1-5 |
The number of adults on this flight. |
num_children | integer (required) 0-5 |
The number of children on this flight. |
num_babies | integer (required) 0-2 |
The number of babies on this flight. |
direct | string (optional) true or false |
The type of flight. It is set to “Direct=true” for direct flights only. |
airline | string (optional) | The name of the airline. This parameter is only used in DK, NL and FR |
ticketclass | string (required) economy or business |
The ticket class. |
useAirportCode | bool (optional) true or false |
If set to true, the query will only use airports code. |
sort | string (optional) | Sort the results by:
|
results | integer (optional) | The number of results to return in each request |
start | integer (optional) | The start index of the first result to return. |
searchId | string (optional) | The search ID identifying the search. This is needed for paging |
userIp | string (optional) | The client user IP (mandatory to have all merchants) |
userAgent | string (optional) | The client user User-Agent (ENCODED IN BASE64) |
Name | Summary |
---|---|
FlightSearch | Root container for all API calls. Contains Journey elements. Including the xml schema and namespace definitions.Attributes:
|
//
The following is a sample response when you search for a paris/moscou flight with the service.