Getting Started

For partners integrating KAYAK Affiliate APIs in Sandbox environment

Overview

Authentication

To access the API, clients must provide an API key in the apiKey query parameter of the request. Your API key will be mailed to you upon signing up.

The API key is delivered only by email and cannot be viewed anywhere in the system, so keep that email safe for future reference.

curl --location 'https://sandbox-en-us.kayakaffiliates.com/api/affiliate/autocomplete/v1/flights?apiKey={API_KEY}&searchTerm=Boston'

Sandbox Environment

The Sandbox environment is designed for testing and development purposes. It simulates the behavior of the production API but with important limitations and obfuscated data to ensure safe experimentation.

Base URL

https://sandbox-en-us.kayakaffiliates.com

Key limitations

Sandbox environment limitations

  • The sandbox supports only the US market.
  • Prices are mocked and do not reflect real market conditions.
  • Images and other media assets may be placeholders and not accurate representations.
  • Some fields (for example, license numbers, ratings, and coordinates) may be mocked or synthetic.
  • Deeplinks to provider sites use synthetic click pages rather than real redirects.
  • CompareTo Ads, Inline Ads, and Static Data Feed APIs return static, unchanging responses.
  • Sandbox API keys are valid for 3 months from issuance. After they expire they no longer work. To keep using the sandbox, request a new sandbox key the same way you requested the first one.

Simulating empty results

Use the sandbox-api-empty:true header to simulate no-results in the sandbox; particularly useful for APIs returning static responses.

Rate limiting

The Sandbox enforces lower rate limits than production. Current per-API limits are listed below and may change at any time.

APIRate limit
Autocomplete API100 / hour
Hotel Search API250 / hour
Flight Search API250 / hour
Car Search API250 / hour
Static Data Feed API50 / hour
CompareTo Ads API50 / hour
Inline Ads API50 / hour
Price Insights API50 / hour

Search API requirements

Search APIs include Flight Search API, Hotel Search API, Car Search API, CompareTo Ads API and Inline Ads API.

userTrackId parameter

Search APIs additionally require the userTrackId parameter.

The userTrackId is a unique identifier per end user and should not be confused with the unique identifier per affiliate or affiliate code. Incorrectly setting this parameter can lead to rate limiting and blocking of requests.

Bad userTrackId usageGood userTrackId usage
  • userTrackId is constant value (e.g., test);
  • userTrackId is rotated and shared across multiple users;
  • userTrackId uniqueness is weak.
  • userTrackId is generated using UUID (e.g. 550e8400-e29b-41d4-a716-446655440000);
  • userTrackId is unique per user per session.

User-Agent header

The User-Agent header must always identify your actual requesting client and platform. Always send the exact User-Agent your client would naturally send — for example:

  • Desktop browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
  • Mobile web browser: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1

x-original-client-ip header

x-original-client-ip header should contain the user’s IP address. It is used to identify and take measures against bots. Both IPv4 and IPv6 formats are allowed.

For usages when it is impossible to acquire the user’s IP address this restriction can be lifted.

The KAYAK Affiliate Network lets you link from any brand you likeEnhance and monetize your travel content with flights, hotels, cars and more!

KAYAK logo
HotelsCombined logo
Momondo logo
Cheapflights logo
Cookie preferences