Widgets

Following are instructions for including the KAYAK search widget on your site:

1. We offer a number of different official premade KAYAK widgets. Please select a widget type, or refer to our API documentation to create a widget of your own.


2. Enter your affiliate information to be embedded into the widget.

Parameter Description Value
ai Affiliate identifier provided by Kayak.com.
Please, no embedded whitespace or special characters.
p Optional Sub-Affiliate identifier. This is a pass-through value from Kayak's perspective; it can be used by you for internal promotion tracking if desired.
Please, no embedded whitespace or special characters.

3. Customize the widget by setting additional parameters.

Parameter Description Value
cars Answers the question "Show cars search?"
cruises Answers the question "Show cruises search?"
deals Answers the question "Show deals search?"
flights Answers the question "Show flights search?"
hotels Answers the question "Show hotels search?"
vacations Answers the question "Show vacations search?"
tab Answers the question "Which search to display initially?"
l1 Pre-filled origin location.
String to insert as a default value in search forms. If the string is "!", we will attempt to determine the nearest airport based on the user's IP address.
l2 Pre-filled destination location.
String to insert as a default value in search forms. If the string is "!", we will attempt to determine the nearest airport based on the user's IP address.
clickTAG Redirect URL.
If provided, widget searches will be sent through this URL with the search URL passed as a GET parameter named "url".

Double Encoded

4. Create your widget. Press the "Create Widget" button below to get the code for your widget and see an interactive sample. Paste the code below into your webpage where you want the widget to appear.




Search Gateways

We offer a set of APIs for conducting Kayak searches. The following pages describe each one:


About  |  Advertise  |  Privacy  |  Destinations  |  Feedback  |  iPhone  |  Android  |  BlackBerry  |