# KAYAK Scraper - Flight Deals by Route & Hotel Prices by City (`scrapewise/kayak-scraper`) Actor

Scrape KAYAK flight route pages and hotel city pages: cheapest round-trip, one-way, nonstop and last-minute fares with dates, airline, stops and times, plus hotels with price, stars, rating, reviews, address and amenities. 17 country sites. Error rows are free.

- **URL**: https://apify.com/scrapewise/kayak-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Travel, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 result delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## KAYAK Scraper: flight deals by route and hotel prices by city

KAYAK Scraper reads **KAYAK's public route and city pages** and turns them into clean rows, without a KAYAK account
or cookies. Give it flight routes like `NYC-LAX` and it returns the recent cheapest round-trip, one-way,
nonstop and last-minute fares KAYAK found on that route: airline, price, travel dates, departure and arrival times,
duration, stops and layover airports, plus the route's typical price range and its low and high season. Give it cities
like `Paris` and it returns the hotels KAYAK features there, with nightly price, stars, guest rating, number of
reviews, address, coordinates, neighborhood, phone and description.

It is used to track airfare levels on the routes a travel business sells, to feed fare alerts and deal newsletters, to
compare hotel prices across neighborhoods, to build hotel lists for a destination guide, and to give AI travel agents
fresh price context.

### At a glance

| What | Price |
|---|---|
| Fare or hotel delivered | **US$ 0.90 per 1,000 rows** (US$ 0.0009 each) |
| Run start | US$ 0.005 per run |

- 10 routes with about 40 unique fares each = 400 rows = **US$ 0.37**.
- One big city with its neighborhood pages = about 300 hotels = **US$ 0.28**.
- Error rows and duplicates are never charged. `maxItems` is a hard cap, and a spending limit set on the run stops it
  cleanly with everything delivered so far.
- 17 KAYAK country sites: pick the one that gives you the currency you want (USD, GBP, EUR, CAD, AUD, INR...).

### Quick start

Fares on two routes:

```json
{
  "routes": ["NYC-LAX", "LON-NYC"],
  "maxItems": 100
}
```

Hotels in two cities, priced in pounds:

```json
{
  "hotelCities": ["Paris", "Barcelona"],
  "site": "kayak.co.uk",
  "maxItems": 400
}
```

Links copied from KAYAK work too, from any country site:

```json
{
  "startUrls": [
    { "url": "https://www.kayak.com/flight-routes/Chicago-CHI/Miami-MIA" },
    { "url": "https://www.kayak.com/Rome-Hotels.25465.hotel.ksp" }
  ]
}
```

With an empty input the Actor runs the example (route NYC-LAX and hotels in London) so you can see the output.

### Input

| Field | What it does |
|---|---|
| `routes` | One route per line as ORIGIN-DESTINATION with IATA airport or metro codes (`NYC-LAX`, `LHR-CDG`, `LON-NYC`). City names also work: `Chicago to Miami`. |
| `hotelCities` | One city per line in English (`Paris`, `New York`, `Tokyo`). |
| `includeNeighborhoods` | For hotel cities, also open KAYAK's neighborhood pages (about 30 to 40 in a big city) to collect several hundred hotels instead of about 60. Default on. |
| `startUrls` | KAYAK flight route pages or hotel city and neighborhood pages. |
| `site` | KAYAK country site to read, which sets the currency (default `kayak.com`, USD). |
| `maxItems` | Cap for the whole run, fares plus hotels (default 50; 0 = no cap). |
| `proxyConfiguration` | Apify Proxy by default. |

`origin` + `destination`, `cities`, `city`, `urls` and `maxResults` are accepted too, so inputs written for other
travel tools keep working.

### Output

Every row has `type`: `flightDeal`, `hotel` or `error`.

#### Flight deal fields

| Field | Example |
|---|---|
| `dealType` | `cheapestRoundTrip`, `cheapestOneWay`, `cheapestNonstop` or `lastMinute` |
| `airline`, `airlineCode` | JetBlue, B6 |
| `price`, `currency`, `priceFormatted` | 366, USD, $366 (per person) |
| `isRoundTrip`, `cabinClass`, `travellers` | true, economy, 1 |
| `originCode`, `originName`, `originCity` | JFK, New York John F Kennedy Intl, New York |
| `destinationCode`, `destinationName`, `destinationCity`, `destinationCountry` | LAX, Los Angeles, Los Angeles, United States |
| `departDate`, `departDateTime` | 2026-12-05, 2026-12-05T20:37 |
| `returnDate`, `returnArrivalDateTime` | 2026-12-11, 2026-12-11T21:31 (round trips) |
| `outbound`, `inbound` | date, departure and arrival time, duration, stops, layover airport codes and names |
| `totalStops` | 0 |
| `searchUrl` | KAYAK search for those exact dates, ready to open |
| `routeUrl` | KAYAK page of the airport pair |
| `routeCheapestPrice`, `routeCheapestDescription` | 191, One-way flight from New York LaGuardia Airport to Los Angeles |
| `typicalRoundTripPriceMin` / `Max` | 307 / 545 |
| `typicalNonstopPriceMin` / `Max` | 311 / 552 |
| `lowSeasonMonth`, `highSeasonMonth` | October, March |
| `routeOrigin`, `routeDestination` and their names | the route you asked for (NYC, LAX) |

#### Hotel fields

| Field | Example |
|---|---|
| `hotelId`, `name`, `url` | 53345, Tribe Paris Batignolles, KAYAK hotel page |
| `stars`, `propertyType` | 4, Hotel |
| `rating`, `ratingLabel`, `reviewCount` | 8.2 (out of 10), Excellent, 1839 |
| `price`, `currency`, `priceFormatted`, `priceUsd` | 231.99, USD, $232, 231.99 (recent nightly price) |
| `priceRangeMin`, `priceRangeMax` | lowest and highest nightly price seen (expert picks) |
| `address`, `street`, `postalCode`, `locality`, `country` | 176 Rue Cardinet, 75017, Paris, France |
| `neighborhood`, `city`, `cityId` | Batignolles, Paris, France, 36014 |
| `latitude`, `longitude` | 48.89054, 2.31753 |
| `phone` | the hotel's front desk number |
| `features`, `amenities` | WIFI, PETS; fitness center, restaurant, bar... (when KAYAK lists them) |
| `nearbyLandmark`, `distanceToLandmark` | Eiffel Tower, Paris; 0.2 mi |
| `description`, `descriptionSource` | hotel description and who wrote it |
| `imageUrl`, `images` | main photo, more photos for expert picks |
| `ratingBucket` | high, average or low, for hotels KAYAK only shows in its rating groups |
| `kayakLists` | the KAYAK lists the hotel appears in: recommended, best, cheapest, topRated, nearLandmarks, neighborhoodBest... |

Every row also has `site`, `sourceUrl`, `sourceQuery`, `scrapedAt`, `errorCode` and `error`.

#### Example flight row

```json
{
  "type": "flightDeal",
  "dealType": "cheapestNonstop",
  "airline": "JetBlue",
  "airlineCode": "B6",
  "price": 366,
  "currency": "USD",
  "isRoundTrip": true,
  "cabinClass": "economy",
  "originCode": "JFK",
  "destinationCode": "LAX",
  "departDate": "2026-12-05",
  "returnDate": "2026-12-11",
  "outbound": { "date": "Dec 5", "departureTime": "8:37 pm", "arrivalTime": "11:56 pm",
                "duration": "6h 19m", "stops": 0, "stopAirports": [] },
  "inbound": { "date": "Dec 11", "departureTime": "1:05 pm", "arrivalTime": "9:31 pm",
               "duration": "5h 26m", "stops": 0, "stopAirports": [] },
  "totalStops": 0,
  "searchUrl": "https://www.kayak.com/flights/JFK-LAX/2026-12-05/2026-12-11",
  "routeCheapestPrice": 191,
  "typicalRoundTripPriceMin": 307,
  "typicalRoundTripPriceMax": 545,
  "lowSeasonMonth": "October",
  "highSeasonMonth": "March",
  "site": "kayak.com",
  "sourceQuery": "NYC-LAX"
}
```

#### Example hotel row

```json
{
  "type": "hotel",
  "hotelId": "53345",
  "name": "Tribe Paris Batignolles",
  "stars": 4,
  "rating": 8.2,
  "ratingLabel": "Excellent",
  "reviewCount": 1839,
  "price": 231.98691,
  "currency": "USD",
  "priceFormatted": "$232",
  "address": "176 Rue Cardinet, Paris, France",
  "postalCode": "75017",
  "neighborhood": "Batignolles",
  "latitude": 48.89054,
  "longitude": 2.31753,
  "features": ["WIFI", "PETS"],
  "descriptionSource": "accorhotels.com",
  "kayakLists": ["recommended", "best", "ranked"],
  "sourceQuery": "Paris"
}
```

### How the data is chosen

- **Fares** are the deals KAYAK publishes on each route page, found by its users' searches in recent days. A route
  gives about 40 unique fares across the four deal types, with future travel dates. They are not a live search for
  dates you pick: use `searchUrl` to open the exact search on KAYAK.
- **Hotels** come from the city page (about 60 hotels in a big city) and, with `includeNeighborhoods`, from each
  neighborhood page (about 20 more each). Every hotel is delivered once per run even when it appears in several lists;
  `kayakLists` says where it showed up.

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `INVALID_ROUTE` | The route is not written as ORIGIN-DESTINATION |
| `LOCATION_NOT_FOUND` | KAYAK did not recognise the city or airport |
| `NOT_FOUND` | KAYAK has no page for this route or city |
| `NO_RESULTS` | The page has no recent fares or no hotels |
| `INVALID_URL` | Not a KAYAK route or hotel page link |
| `INVALID_INPUT` | A field has a wrong value |
| `BLOCKED` | KAYAK refused every attempt for this page; run it again in a few minutes |

### Integrations, scheduling and AI agents

- **Schedule** the same routes daily or weekly in [Apify schedules](https://docs.apify.com/platform/schedules) to
  build a fare history and spot price drops.
- **Export** as JSON, CSV, Excel or XML, or read the dataset from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier or Google Sheets through
  [Apify integrations](https://docs.apify.com/platform/integrations), for example to post new cheap fares to a
  Slack channel.
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp)
  in Claude, ChatGPT, Cursor or any MCP client: "find the cheapest nonstop fares from London to New York and the
  best rated hotels under US$ 250 in Manhattan".

### FAQ

**Do I need a KAYAK account?** No. Everything comes from public KAYAK pages, without login or cookies.

**Can I search fares for my own dates?** Not in this version. The fares are the recent deals KAYAK shows on each
route page, each with its own dates and a `searchUrl` that opens that search on KAYAK.

**Which currency do I get?** The one of the KAYAK site you pick in `site`: kayak.com gives USD, kayak.co.uk GBP,
kayak.de EUR, kayak.ca CAD, kayak.com.au AUD and so on.

**Are the prices per person?** Fares are per person in economy unless `cabinClass` says otherwise. Hotel prices are
KAYAK's recent nightly price for the property.

**How many hotels can I get from one city?** About 60 from the city page and several hundred with the neighborhood
pages in a big city like Paris, London or New York.

**Is it legal?** The Actor reads public pages only. Phone numbers and addresses are the hotels' own business details;
no traveller data is collected. You are responsible for how you use the data under the laws that apply to you.

**Something broke or a field is missing?** Open an issue on the Actor page; issues are answered within a day.

### Limitations

- No live search for chosen dates, car rentals or package deals yet.
- Fares and prices are the ones KAYAK shows at the moment of the run and change often.
- Some fields (amenities, landmark distance, extra photos) appear only for hotels in the lists that carry them.

### Changelog

- **16 Oct 2026:** first version: route fares with dates, stops and times, route price insights, hotels by city and
  neighborhood, 17 KAYAK country sites.

# Actor input Schema

## `routes` (type: `array`):

One route per line as ORIGIN-DESTINATION with IATA airport or city codes (NYC-LAX, LHR-CDG, LON-NYC). City names also work, for example 'Chicago to Miami'. Each route returns KAYAK's recent cheapest round-trip, one-way, nonstop and last-minute fares with dates, airline, stops and times.

## `hotelCities` (type: `array`):

One city per line in English, for example 'Paris' or 'New York'. Each city returns the hotels KAYAK features for it, with price, stars, rating, reviews, address, coordinates and amenities.

## `includeNeighborhoods` (type: `boolean`):

For hotel cities, also open KAYAK's neighborhood pages (about 35 in a big city) to collect more hotels than the city page lists.

## `startUrls` (type: `array`):

Optional. Links to KAYAK flight route pages (https://www.kayak.com/flight-routes/New-York-NYC/Los-Angeles-LAX) or hotel city/neighborhood pages (https://www.kayak.com/Paris-Hotels.36014.hotel.ksp), from any KAYAK country site.

## `site` (type: `string`):

Which KAYAK site to read for routes and cities. It sets the currency: kayak.com USD, kayak.co.uk GBP, kayak.de EUR, kayak.ca CAD and so on.

## `maxItems` (type: `integer`):

Maximum number of rows (fares plus hotels) for the whole run. 0 means no limit.

## `proxyConfiguration` (type: `object`):

Apify Proxy by default.

## Actor input object example

```json
{
  "routes": [
    "NYC-LAX",
    "LON-NYC"
  ],
  "hotelCities": [
    "London"
  ],
  "includeNeighborhoods": true,
  "startUrls": [],
  "site": "kayak.com",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "routes": [
        "NYC-LAX",
        "LON-NYC"
    ],
    "hotelCities": [
        "London"
    ],
    "startUrls": [],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/kayak-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "routes": [
        "NYC-LAX",
        "LON-NYC",
    ],
    "hotelCities": ["London"],
    "startUrls": [],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/kayak-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "routes": [
    "NYC-LAX",
    "LON-NYC"
  ],
  "hotelCities": [
    "London"
  ],
  "startUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/kayak-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/kayak-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8PYbNIIhnYuQZsbaQ/builds/UXFowvXTb2PAx3IA8/openapi.json
