# Kayak Flights Scraper - Flight Prices, Airlines & Booking Sites (`hexagone-data/kayak-flights-scraper`) Actor

Scrape Kayak flight search results: every itinerary with its flight prices, airlines, flight numbers, stops, baggage and ALL booking sites with their airfare, from the cheapest seller to the booking link. Routes, dates +N, 7 Kayak sites and currencies. Pay per itinerary.

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

## Pricing

from $0.70 / 1,000 flight itineraries

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 Flights Scraper - Flight Prices, Airlines & Booking Sites

Get the flight prices Kayak shows for a route and dates, one row per itinerary, with **every booking site that sells it**, not just the
cheapest one. On 612 itineraries captured on 12 November 2026 (13 searches, 7 Kayak sites), **198 had 20 booking offers or more** (up to
37\): each of them comes with all its offers, in Kayak's order, each with its provider, price per person, total price, booking link and
baggage status.

Each row also gives:

- **flight numbers** (`AA1`), **aircraft** and cabin of every segment, operating airline when it differs;
- **stops, layover airports and minutes**, airport changes (`ORY-CDG`) and self-transfer layovers;
- **carry-on and checked bag** status of the offer (included, fee, unavailable, unknown), free cancellation flag;
- **split tickets** ("hacker fares") detailed ticket by ticket (provider, price, link, route), seen on 27 of the 612 itineraries;
- the **price per person and the total** for all travellers, as the card shows them, in the currency of the site;
- **7 Kayak sites**: kayak.com (USD), kayak.co.uk (GBP), kayak.de, kayak.fr, kayak.es (EUR), ca.kayak.com (CAD), kayak.com.au (AUD);
- for each search, **the number of itineraries Kayak announces next to the number delivered**, so you know when a list is complete.

One-way and round-trip, airport or city codes (NYC, LON, PAR), adults, children, cabin, sort, nonstop only, several routes per run,
or Kayak search URLs pasted from your browser. Dates can be relative (`+30` = 30 days after the run date), which keeps a scheduled
price watch valid every day.

### Try it

The form is prefilled: **JFK to LAX, departure in 30 days, 20 itineraries**. Press Start: the first 20 itineraries of Kayak's "Best"
list arrive with all their booking offers. Change the route and dates, or set both `maxResultsPerSearch` and `maxItems` to 0 to get
the whole list (a busy route can list more than 1,500 itineraries, and `maxItems` stops the run at 1,000 by default).

### What to paste

**A route from the form**: `origin`, `destination`, `departureDate`, and `returnDate` for a round trip (leave it empty for one-way).

```json
{"origin": "NYC", "destination": "LON", "departureDate": "+45", "returnDate": "+52", "adults": 2, "cabinClass": "economy"}
```

**Several routes** in one run, each searched on its own (the passenger, cabin, sort and nonstop options apply to all of them):

```json
{"routes": [
  {"origin": "SFO", "destination": "HNL", "departureDate": "2027-03-10", "returnDate": "2027-03-17"},
  {"origin": "MAD", "destination": "MEX", "departureDate": "+60"}
], "childrenAges": [8], "sortBy": "price"}
```

**A Kayak search URL** copied from your browser, filters included. It is opened as pasted (passengers, cabin, sort and the filters in
the URL are read by Kayak itself):

```json
{"searchUrls": ["https://www.kayak.co.uk/flights/LHR-BCN/2026-12-18/2adults?sort=bestflight_a",
                "https://www.kayak.com/flights/LAX-SYD/2027-01-15?sort=bestflight_a&fs=stops=0"]}
```

**Dates**: `YYYY-MM-DD`, or `+N` for N days after the day the run starts (UTC). A date in the past, a return before the departure or
the same origin and destination are refused for that route, with the reason, and the rest of the run goes on. Far dates are not
refused by this actor: Kayak judges them. Measured on 12 November 2026 (JFK-LAX): 345 days ahead Kayak listed flights, 360 days ahead
it found none ("no flights available on your chosen dates": `no_results`), 400 days ahead it sent the search back to its form
(`invalid_search`). Neither is charged.

**Sites and currencies**: pick `site` for your routes; a pasted URL keeps its own site, written as in this table (`kayak.com` and
`www.kayak.com` are the same search, read once).

| site | currency |
|---|---|
| www.kayak.com | USD |
| www.kayak.co.uk | GBP |
| www.kayak.de, www.kayak.fr, www.kayak.es | EUR |
| www.ca.kayak.com | CAD |
| www.kayak.com.au | AUD |

`maxResultsPerSearch` (default 50, 0 = all) keeps the first N itineraries of each search in Kayak's order; `maxItems` (default 1,000,
0 = no limit) caps the whole run. For every itinerary of every search, set both to 0.

### Output

One row per itinerary and per search. Real row from a capture of 12 November 2026 (kayak.co.uk, 2 adults), **shortened: 2 of its 26
booking offers shown**:

```json
{
  "searchUrl": "https://www.kayak.co.uk/flights/LHR-BCN/2026-12-18/2adults?sort=bestflight_a",
  "site": "www.kayak.co.uk", "tripType": "one_way", "origin": "LHR", "destination": "BCN",
  "departureDate": "2026-12-18", "returnDate": null, "adults": 2, "children": 0, "cabinClass": "economy", "sortBy": "best",
  "rank": 20, "resultId": "7e0f611a21d054be4287e2a85cb4912a",
  "price": 148, "currency": "GBP", "priceLabel": "£148", "totalPrice": 295, "totalPriceLabel": "£295", "priceMode": "per-person",
  "fareName": "Basic", "provider": "Booking.com", "providerCode": "BOOKINGFLIGHTS",
  "bookingUrl": "https://www.kayak.co.uk/book/flight?code=vREiFkhbgH.HceeID8kIYIMlOqRgOKZ7A.19634...",
  "splitTickets": [], "freeCancellation": false, "carryOnBag": "UNKNOWN", "checkedBag": "UNKNOWN",
  "isBest": false, "isCheapest": false, "selfTransfer": false, "includesTrain": false,
  "stops": 1, "outboundDurationMinutes": 305, "returnDurationMinutes": null, "airlines": ["Eurowings"], "airlineCodes": ["EW"], "flightNumbers": ["EW9463", "EW9442"],
  "departAt": "2026-12-18T12:40:00", "arriveAt": "2026-12-18T18:45:00",
  "legs": [{
    "origin": "LHR", "destination": "BCN", "departAt": "2026-12-18T12:40:00", "arriveAt": "2026-12-18T18:45:00",
    "durationMinutes": 305, "stops": 1, "airlines": ["Eurowings"],
    "layovers": [{"airport": "DUS", "changeAirport": null, "minutes": 90, "selfTransfer": false}],
    "segments": [
      {"airline": "Eurowings", "airlineCode": "EW", "flightNumber": "EW9463", "isTrain": false, "operatedBy": null, "origin": "LHR",
       "destination": "DUS", "departAt": "2026-12-18T12:40:00", "arriveAt": "2026-12-18T15:05:00", "durationMinutes": 85,
       "aircraft": "Airbus A320neo", "cabin": "Economy"},
      {"airline": "Eurowings", "airlineCode": "EW", "flightNumber": "EW9442", "isTrain": false, "operatedBy": null, "origin": "DUS",
       "destination": "BCN", "departAt": "2026-12-18T16:35:00", "arriveAt": "2026-12-18T18:45:00", "durationMinutes": 130,
       "aircraft": "Airbus A321-100/200", "cabin": "Economy"}]
  }],
  "bookingOptions": [
    {"provider": "Booking.com", "providerCode": "BOOKINGFLIGHTS", "price": 148, "currency": "GBP", "priceLabel": "£148", "totalPrice": 295,
     "bookingUrl": "https://www.kayak.co.uk/book/flight?code=...", "freeCancellation": false, "carryOnBag": "UNKNOWN",
     "checkedBag": "UNKNOWN", "splitTickets": []},
    {"provider": "eDreams", "providerCode": "EDREAMSAIR", "price": 149, "currency": "GBP", "priceLabel": "£149", "totalPrice": 298,
     "bookingUrl": "https://www.kayak.co.uk/book/flight?code=...", "freeCancellation": false, "carryOnBag": "UNKNOWN",
     "checkedBag": "UNKNOWN", "splitTickets": []}
  ],
  "bookingOptionsCount": 26, "providersCount": 13,
  "kayakUrl": "https://www.kayak.co.uk/flights/LHR-BCN/2026-12-18/f7e0f611a21d054be4287e2a85cb4912a/2adults?viewRank=26",
  "scrapedAt": "2026-11-12T13:51:18Z"
}
```

The headline price is the offer shown on the card (Kayak's "winning" offer); `bookingOptions` lists all of them. Times are the local
time of each airport, as on the site. An unknown value is `null`, never invented. Ads mixed into Kayak's list are never delivered.
Every field is described in the dataset schema (Output tab).

### Run summary

The `OUTPUT` record (and the readable `SUMMARY` page) has one line per search: `searchUrl`, `status`, `reason`, and the counts
`itinerariesAnnounced` (what Kayak announces with its filters, the "160 of 286 flights" of the page), `itinerariesTotalUnfiltered`
(the 286), `itinerariesDistinct`, `itinerariesDelivered`, `pagesRead`, `missing`, plus `failedPages`, `botChecks` and a plain-English
`detail`.

| status | meaning |
|---|---|
| `done` | every itinerary Kayak announced was read |
| `max_results_reached` | stopped by `maxResultsPerSearch`, `maxItems` or your maximum charge, with the numbers |
| `no_results` | Kayak found no flight for this search (with its filters): a real zero |
| `partial_collection` | a page failed, repeated itineraries or ended before the announced count, or Kayak did not give its count (`count_not_given`); the gap is counted when known |
| `blocked` | none of the 3 fresh browser sessions could read the list and Kayak's bot check (captcha page, or the page refused with HTTP 403/429) came back on at least one; `botChecks` says on how many; not an empty search, nothing charged for it |
| `invalid_search` | refused before opening (past date, code, URL form, more than 9 travellers), or Kayak sent the search back to its form (unknown code, date too far ahead) |
| `failed` | the page could not be read (browser, network, page never finished); not an empty search, nothing charged for it |
| `not_processed` | not opened: `maxItems`, your maximum charge or the run's time limit was reached first; the run message names it |

The run ends SUCCEEDED when at least one search was read, FAILED with the reason when none could be.

### Pricing

Pay per event: **$1.00 per 1,000 itineraries** ($0.001 per itinerary delivered, with all its booking offers). Plus a
**$0.005 start fee per run**: Apify charges the start per GB of memory, $0.0025 per GB, and this Actor runs a real browser with
2 GB.
Apify subscribers pay less automatically, on every event: 10% off on the Bronze plan, 20% on Silver, 30% on Gold and above.

| Itineraries | Price (start fee included) |
|---|---|
| 20 | $0.025 |
| 1,000 | $1.005 |

Only itineraries written to your dataset are paid: ads, blocked searches, empty searches and refused inputs add nothing. Your maximum
charge per run is respected: the run stops cleanly before the itinerary that would exceed it.

### Known limits

- **One route per search**: no multi-city searches (a multi-city URL is refused with the reason), no Momondo.
- **Prices move during the day**: a row is what Kayak showed at `scrapedAt`. Booking links carry Kayak session tokens; how long they
  stay valid is not measured.
- **Nearby airports are unchecked, as on the site**: the list is Kayak's default filtered list ("160 of 286 flights");
  `itinerariesTotalUnfiltered` gives the larger count.
- **Kayak's bot check**: every search gets a fresh browser session; a session that meets the check (captcha page, or the page refused
  with HTTP 403/429) is dropped at once for a new one. After 3 sessions without the list, the search is `blocked` (not an empty search,
  not charged) and the run goes on with the next one. If every search is blocked, try again later or use a residential proxy.
- **Speed** (measured on Apify, 12 November 2026): one search at a time. A run of 10 searches of 50 itineraries took 1,201 s, about
  120 s per search; reading whole lists took 458 s for 3 searches (153 s per search), and one list of 1,576 itineraries took 149 s.
  About one search in three or four (4 of 14 in these runs, 5 waits in all) waited 90 s for Kayak and was read on a later fresh browser
  session: more time, no extra cost per itinerary.
- **Memory**: 2 GB. Measured: at 1 GB the browser was killed on a list of 1,576 itineraries; at 2 GB the run peaked at 1.3 GB.
- **Rank after a platform restart**: `rank` is the position in Kayak's list when the row was read. If Apify moves the run to another
  server in the middle of a search, that search is read again and only the itineraries not yet delivered are added (never twice, never
  charged twice); if Kayak reordered its list in between, two rows of that search can share a rank.
- One origin and one destination code per search (a city code like NYC covers its airports); at most 9 travellers.

### Support

Questions, a route that does not work, a field you need: open an issue on the Actor's page, with the run link.

If this actor saved you time, a short review on its Store page helps others find it.

This Actor is not affiliated with, endorsed by or sponsored by KAYAK or Booking Holdings. It reads the public search results a
visitor sees, without any account.

# Actor input Schema

## `origin` (type: `string`):

3-letter IATA code of an airport (JFK, LHR, CDG) or a city with several airports (NYC, LON, PAR, TYO).

## `destination` (type: `string`):

3-letter IATA code of an airport (LAX, BCN) or a city (LON, PAR).

## `departureDate` (type: `string`):

YYYY-MM-DD, or +N for N days after the day the run starts (UTC): +30 keeps a scheduled run always 30 days ahead. Past dates are refused; far dates are judged by Kayak (no flights yet, or sent back to its form).

## `returnDate` (type: `string`):

YYYY-MM-DD or +N. Leave empty for a one-way search.

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

Several routes in one run, each searched on its own: \[{"origin": "NYC", "destination": "LON", "departureDate": "+45", "returnDate": "+52"}, {"origin": "SFO", "destination": "HNL", "departureDate": "2027-03-10"}]. The passenger, cabin, sort and nonstop options below apply to every route.

## `searchUrls` (type: `array`):

Flight search URLs copied from your browser, filters included, e.g. https://www.kayak.com/flights/JFK-LAX/2026-12-15?sort=price_a or https://www.kayak.co.uk/flights/LHR-BCN/2026-12-18/2adults. Each is opened as pasted (passengers, cabin, sort and filters are read by Kayak from the URL). Multi-city URLs are not supported.

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

Site used for the routes above: prices, currency and labels are those of this site. A pasted URL keeps its own site.

## `adults` (type: `integer`):

Adult travellers (1 to 9). Price is per person as on the card; totalPrice is for all travellers.

## `childrenAges` (type: `array`):

Age of each child, 2 to 11, e.g. \[8] or \[5, 9]. At most 9 travellers in all.

## `cabinClass` (type: `string`):

Cabin class searched.

## `sortBy` (type: `string`):

Order of the itineraries, as Kayak sorts them; rank follows it.

## `nonstopOnly` (type: `boolean`):

Keep only nonstop itineraries (Kayak's own Stops filter).

## `maxResultsPerSearch` (type: `integer`):

The first N itineraries of each search, in Kayak's order. 0 = all of them (a busy route can list 1,500+ itineraries; set Max itineraries in the run to 0 too).

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

Stop after this many itineraries for the whole run. 0 = no limit.

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

Apify datacenter proxy by default; each search gets a fresh browser session and a fresh proxy session. Residential without a country uses the country of the Kayak site.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30",
  "site": "www.kayak.com",
  "adults": 1,
  "cabinClass": "economy",
  "sortBy": "best",
  "nonstopOnly": false,
  "maxResultsPerSearch": 20,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `itineraries` (type: `string`):

All itineraries, one row per itinerary and search, with every booking offer.

## `itinerariesOverview` (type: `string`):

Rank, route, dates, price, booking site, airlines, flight numbers, stops, duration, times, link.

## `summary` (type: `string`):

Readable per-search summary: status, itineraries delivered vs announced by Kayak, reason for anything missing.

## `summaryJson` (type: `string`):

The same summary as JSON (OUTPUT record).

# 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 = {
    "origin": "JFK",
    "destination": "LAX",
    "departureDate": "+30",
    "maxResultsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hexagone-data/kayak-flights-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 = {
    "origin": "JFK",
    "destination": "LAX",
    "departureDate": "+30",
    "maxResultsPerSearch": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("hexagone-data/kayak-flights-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 '{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30",
  "maxResultsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call hexagone-data/kayak-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hexagone-data/kayak-flights-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/94bfGeQ5sG5m3xWjy/builds/JpBj801UCEw6LdFQa/openapi.json
