Sign In 

Search Gateway: Air

The Air Search Gateway permits the initiation of a air search query on the Kayak website. When executed, the user's browser is directed to the Kayak website within which a query is performed as an anonymous user. The user can traverse result links and book flights.

The base URL for this query is http://www.kayak.com/s/search/air. The table below shows the arguments which are to be GET'd.

External Variable Semantics Range Default Example
ai Affiliate identifier provided by Kayak.com. Character string. No embedded whitespace or special characters. Empty string.
p Optional Sub-Affiliate identifier. This is a pass-thru value from Kayak's perspective; used by affiliate for internal promotion tracking if desired. Character string. No embedded whitespace or special characters. Empty string.
do Answers the question: "Should we do the search as opposed to just pre-populating the search form?". y,n,on,off y
ft Flight-type indicating oneway or roundtrip. ow,rt rt
ns Answers the question "Is a non-stop flight preferred?" y,n,on,off n
cb Cabin Class is used to indicate one of economy, business or first. e, b, f e
pa Number of Travelers 1,2,3,4,5,6 1
l1 Origin airport/location. If it's 3 characters, we'll assume it's a 3 character airport code. Otherwise, we assume a comma separated list of City, State, Country.  
t1 Outbound departure time can be specified as any, morning, afternoon or evening. a,r,m,n,e,l (for Any, Early, Morning, Noon, Evening, Late) a
df Date format for dates in this request. us1, mdy, dmy, ymd us1
d1 Outbound departure Date. Format specified by field df. (MM/DD/YYYY) 14 days from now.
r1 Answers the question "Show regional/nearby airports for outbound flights?" y,n,on,off n
l2 Destination airport/location. If it's 3 characters, we'll assume it's a 3 character airport code. Otherwise, we assume a comma separated list of City, State, Country.  
t2 Return departure time can be specified as any, morning, afternoon or evening. a,r,m,n,e,l (for Any, Early, Morning, Noon, Evening, Late) a
d2 Return departure Date Format specified by field df. (MM/DD/YYYY) 21 days from now.
r2 Answers the question "Show regional/nearby airports for return flights?" y,n,on,off n
b Brand identifier used to preset the search-results filter so that only this brand is initially shown in the results. 2 character airline code.  
 
About  |  Advertise  |  Blog  |  Destinations  |  Help  |  Labs
©2008 Kayak.com