Learn how to create a link to a pre-filled search form for flight tickets on WayAway.
To create an affiliate link to the flight search form, you must be registered with Travelpayouts.
Query URL: https://wayaway.io/
Be sure to use the deep link creation form tool so that clicks get into our statistics system.
Query parameters/descriptions
Name |
Description |
Default value |
origin_iata |
Departure city. Recommended values: "IATA code for city". |
determined by the user's IP. |
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 |
with_request |
Initiate search automatically (true: the search is loaded, false: the form is filled out but search does not start) |
false |
currency |
Currency |
USD |
locale |
Language |
en |
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 results page, you should use the deep link creation form.
Creating a URL that leads to a search form and automatically fills in part of the form, without initializing a search:
https://wayaway.io/?origin_iata=LAX&destination_iata=NYC&adults=1&children=0&infants=0&trip_class=0