Learn how to create a link to the flight search results page on the WayAway website.
Note: To create an affiliate link to the flight search results page, you must be registered with Travelpayouts.
The easiest way to send someone a link to the search result for flight tickets with your Travelpayouts ID is to copy a short link from the search bar and use the deep link creation form. You need to do this after the search is finished and the list of flight tickets is displayed on the page:
After that, you can send this link by email or share it in social networks.
Options for generating an affiliate link for search of flight tickets
Depending on the website that the link leads to, the request address will differ. You need to add the parameters to the address, which are described in the table below.
Please note that the first parameter is added to the address using the question mark character (?), and all the others using the & character.
Query URL: https://wayaway.io/search
Query parameters/descriptions
Name |
Description |
Default value |
origin_iata |
Departure city. Recommended values: "IATA code for city". |
|
destination_iata |
Arrival city. Recommended values: "IATA code for city". |
|
depart_date |
Departure date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). |
- |
return_date |
Return date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). |
- |
oneway |
“One way only” check box, equal to 1 or 0. |
0 |
adults |
Number of adults (over 12 years old) |
1 |
children |
Number of children (2 to 12 years old) |
0 |
infants |
Number of infants (0 to 2 years old) |
0 |
trip_class |
Ticket class (Economy: 0, Business: 1) |
0 |
currency |
Currency of search result (USD, EUR, UAH, CNY, KZT, RUB, AZN, BYN, THB, KGS, UZS) |
USD |
with_request |
Initiate search automatically (true: the search is loaded, false: the form is filled out, but search does not start) |
false |
Note:
- adults/children/infants — number of adults, children, and infants (in numbers).
No more than nine seat-occupying passengers (adults + children) can be in a single query. Infants travel without their own seats and are carried by the adults. The number of infants cannot exceed the number of adults. If the number of infants is larger than the number of adults, the excess number of infants is counted as children (with their own seats).
After you get a link to the search result page, you should use the Link Generator.
Sample search query with search initialization:
https://wayaway.io/search?origin_iata=LAX&destination_iata=NYC&adults=1&children=1&infants=0&trip_class=0&depart_date=2022-07-01&return_date=2022-07-08&with_request=true