# KAYAK Flights Scraper (`automly/kayak-flights-scraper`) Actor

Scrape KAYAK flight prices by route and date: price per seller, airline, flight numbers, times, stops, layovers, aircraft, fare, bags and booking link. One-way or round trip, any cabin, many routes per run.

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

## Pricing

from $0.65 / 1,000 flights

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

### What is KAYAK Flights Scraper?

**KAYAK Flights Scraper** lets you **scrape flight prices from KAYAK and export them in bulk**: the price, **who sells the ticket** (airline or travel agency) and every other seller's price for the same trip, airlines, flight numbers, departure and arrival times, duration, stops and layovers, aircraft, fare type, bag fees and a booking link. Enter a route and dates (or paste KAYAK search links), click **Start**, and download the results as Excel, CSV or JSON.

- ✈️ **Any route, one way or round trip**, in economy, premium economy, business or first
- 💵 **Every seller's price** for each trip, not only the cheapest one
- 🧳 **Fare type and bag fees** with each price
- 🗓️ **Dates that never go stale**: leave the date empty and the trip leaves a set number of days after each run
- 🗺️ **Many routes in one run**, or KAYAK search links pasted as they are
- 🔓 **No login:** no KAYAK account needed

### What can KAYAK Flights Scraper do?

- **Compare fares** for a route: one row per trip with its cheapest seller, plus the full list of sellers and their prices
- **Track prices over time**: schedule the same routes daily; with **Days from today** the departure moves with the calendar
- **Filter like on KAYAK**: nonstop only, up to 1 or 2 stops, chosen airlines, sorted by best, cheapest or fastest
- **Search for families and groups**: adults, children and lap infants, with the per-person and the total price
- **Separate-ticket trips** come with each ticket's seller, price and link
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from KAYAK?

| | | |
|---|---|---|
| 💵 Price per person and total price | 🏷️ Seller and fare type | 🔗 Booking link and KAYAK link |
| ✈️ Airline(s) and flight numbers | 🕒 Departure and arrival times | ⏱️ Duration in minutes |
| 🔁 Stops and layovers (airport, minutes) | 🛩️ Aircraft | 💺 Cabin per flight |
| 🧳 Carry-on and checked bag fees | 🏪 Every seller's offer | 🎫 Separate tickets, when sold that way |

### How to scrape KAYAK flights

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **KAYAK Flights Scraper**.
3. Enter **From** and **To** as airport or city codes (`JFK`, `LHR`, `NYC`), and a **Departure date** (or leave it empty to use **Days from today**).
4. Add a **Return date** or a **Trip length** for a round trip, and set travellers, cabin and filters.
5. Click **Start**, then download the results as Excel, CSV, JSON or HTML.

### How much does it cost to scrape KAYAK?

You pay per flight saved; see the **Pricing** tab for your plan's price. Searches with no flights and airport codes KAYAK does not know cost nothing. **Max flights per search** keeps the cost of a run under control, and you can also set a maximum cost per run.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **From** / **To** | Airport or city codes, e.g. `JFK` and `LAX`, or `NYC` for every New York airport |
| **Departure date** / **Return date** | Dates as `YYYY-MM-DD`; no return date = one way |
| **Days from today** | Departure this many days after the run, when no date is given (default 21) |
| **Trip length (days)** | Return this many days after departure, when no return date is given |
| **Adults**, **Children (2-11)**, **Lap infants** | Travellers; prices stay per person, `totalPrice` covers everyone |
| **Cabin** | Economy, premium economy, business or first |
| **Sort by** | Best (KAYAK's ranking), cheapest or fastest |
| **Stops** | Any, nonstop only, up to 1 or up to 2 stops |
| **Airlines only** | Two-letter airline codes, e.g. `AA`, `DL` |
| **Max flights per search** | Most trips taken from each search |
| **More routes** | Several searches in one run |
| **KAYAK search links** | Searches made on kayak.com, read with their dates, travellers, cabin, order and filters |

New York to Los Angeles, leaving 3 weeks from today, the 50 best trips:

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "maxResults": 50
}
```

Three routes in one run, nonstop only, cheapest first, round trips of 7 days:

```json
{
  "routes": [
    { "origin": "JFK", "destination": "LHR", "departureDate": "2027-03-15", "returnDate": "2027-03-22" },
    { "origin": "BOS", "destination": "CDG" },
    { "origin": "SFO", "destination": "NRT", "departureDate": "2027-04-02" }
  ],
  "tripDays": 7,
  "maxStops": "nonstop",
  "sortBy": "cheapest"
}
```

A search link from kayak.com:

```json
{
  "searchUrls": ["https://www.kayak.com/flights/JFK-LAX/2027-03-15/2027-03-22/business/2adults?sort=price_a"]
}
```

### ⬆️ Output

Every trip is one row. A row (shortened):

```json
{
  "price": 196,
  "currency": "USD",
  "priceLabel": "$196",
  "totalPrice": 196,
  "seller": "Expedia",
  "sellerCode": "EXPEDIAAIR",
  "fareName": "Basic",
  "bookingUrl": "https://www.kayak.com/book/flight?code=...",
  "splitTickets": [],
  "airline": "Frontier",
  "airlines": ["Frontier"],
  "airlineCodes": ["F9"],
  "flightNumbers": ["F91483", "F93174"],
  "stops": 0,
  "departAt": "2026-12-20T07:45:00",
  "arriveAt": "2026-12-20T09:49:00",
  "durationMinutes": 184,
  "returnDepartAt": "2026-12-25T20:59:00",
  "returnArriveAt": "2026-12-26T00:26:00",
  "returnDurationMinutes": 147,
  "legs": [
    {
      "origin": "ORD",
      "destination": "DEN",
      "departAt": "2026-12-20T07:45:00",
      "arriveAt": "2026-12-20T09:49:00",
      "durationMinutes": 184,
      "stops": 0,
      "layovers": [],
      "segments": [
        {
          "airline": "Frontier",
          "airlineCode": "F9",
          "flightNumber": "F91483",
          "origin": "ORD",
          "destination": "DEN",
          "departAt": "2026-12-20T07:45:00",
          "arriveAt": "2026-12-20T09:49:00",
          "durationMinutes": 184,
          "aircraft": "Airbus A321neo",
          "cabinClass": "economy"
        }
      ]
    }
  ],
  "sellersCount": 14,
  "offers": [
    { "seller": "Expedia", "sellerCode": "EXPEDIAAIR", "price": 196, "currency": "USD", "priceLabel": "$196", "totalPrice": 196, "fareName": "Basic", "bookingUrl": "https://www.kayak.com/book/flight?code=...", "tickets": [] },
    { "seller": "Frontier", "sellerCode": "F9", "price": 198, "currency": "USD", "priceLabel": "$198", "totalPrice": 198, "fareName": "Basic", "bookingUrl": "https://www.kayak.com/book/flight?code=...", "tickets": [] }
  ],
  "carryOnBag": "fee",
  "checkedBag": "fee",
  "checkedBagPrice": 166,
  "isBest": true,
  "isCheapest": true,
  "position": 1,
  "origin": "ORD",
  "destination": "DEN",
  "departureDate": "2026-12-20",
  "returnDate": "2026-12-25",
  "tripType": "round_trip",
  "cabinClass": "economy",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "resultId": "e6a21bdbe4a9275ef46e33e442174b49",
  "kayakUrl": "https://www.kayak.com/flights/ORD-DEN/2026-12-20/2026-12-25/fe6a21bdbe4a9275ef46e33e442174b49?viewRank=1",
  "searchUrl": null,
  "scrapedAt": "2026-11-14T05:00:29Z"
}
```

Times are local to each airport. On a round trip, `price` covers both directions and `stops` is the most stops on either one; `legs` holds each direction with its flights and layovers. `position` follows the **Sort by** order.

### How can I use KAYAK flight data?

- **Fare monitoring:** daily prices for the routes you care about, and which seller moved
- **Travel agencies:** check who undercuts the airline before you quote a client
- **Market research:** which airlines fly a route, how often, with how many stops and at what price
- **Price alerts and dashboards:** feed scheduled runs into Google Sheets or your own database

### Scrape more travel data

| Actor | What it gets |
|---|---|
| [Google Flights Scraper](https://apify.com/automly/google-flights-scraper) | Flights and prices from Google Flights |
| [Skyscanner Scraper](https://apify.com/automly/skyscanner-flight-scraper) | Flight prices from Skyscanner |
| [Google Hotels Scraper](https://apify.com/automly/google-hotels-scraper) | Hotel prices from Google Hotels |
| [Booking Scraper](https://apify.com/automly/booking-scraper) | Hotels, prices and ratings from Booking.com |

### ❓FAQ

#### Do I need a KAYAK account?

No. The scraper collects what KAYAK shows to anyone without signing in.

#### How many flights does one search return?

As many as KAYAK lists for that search, usually 50 to 300 trips, read in pages of 50 up to **Max flights per search**. Like KAYAK's own page, the list leaves out nearby airports you did not ask for and trips KAYAK hides as much longer than the rest; search a city code (`NYC`, `LON`) to include every airport of a city.

#### Why are prices different from what I see on KAYAK?

Fares change by the minute and sellers update them all day. Prices are what KAYAK showed at `scrapedAt`, in US dollars, per person. Run again (or schedule runs) for fresh prices.

#### Why did a search return nothing?

The airport or city code does not exist on KAYAK, or KAYAK has no flight for that route and date. Either is listed in the run report under `notFound`, costs nothing, and the run still finishes successfully. Dates in the past are refused before the run starts.

#### Can I scrape the same route every day?

Yes. Leave **Departure date** empty and set **Days from today** (and **Trip length** for a round trip), then schedule the task: every run searches the same distance ahead.

#### Which links can I paste?

KAYAK flight search links such as `https://www.kayak.com/flights/JFK-LAX/2027-03-15/2027-03-22?sort=price_a`, including the cabin, travellers and filters KAYAK puts in them. momondo and Cheapflights search links work too and are searched on KAYAK.

# Actor input Schema

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

Airport or city code to fly from, e.g. JFK, LHR or NYC (all New York airports). Leave empty when you use routes or search links.

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

Airport or city code to fly to, e.g. LAX, CDG or LON.

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

Date to fly out, e.g. 2027-03-15. Leave empty to search the day set in 'Days from today', so a saved or scheduled run never asks for a past date.

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

Date to fly back for a round trip, e.g. 2027-03-22. Leave empty for a one-way trip (or set 'Trip length').

## `daysFromToday` (type: `integer`):

Used when no departure date is given, e.g. 21: the trip leaves 21 days after the day of the run.

## `tripDays` (type: `integer`):

Used when no return date is given, e.g. 7: a round trip coming back 7 days after departure. 0 = one way.

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

Adult passengers, e.g. 2. Prices stay per person; totalPrice covers everyone.

## `children` (type: `integer`):

Children aged 2 to 11, e.g. 1.

## `infants` (type: `integer`):

Infants under 2 on an adult's lap, e.g. 1. At most one per adult.

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

Cabin to search, e.g. business.

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

Order of the results, e.g. cheapest. The first rows of each search follow it.

## `maxStops` (type: `string`):

Most stops per direction, e.g. nonstop.

## `airlines` (type: `array`):

Only trips flown by these airlines, by two-letter code, e.g. AA, DL or B6. Leave empty for all airlines.

## `maxResults` (type: `integer`):

Most trips to take from each search, e.g. 100. KAYAK shows up to a few hundred per search, in pages of 50.

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

Several searches in one run, e.g. \[{"origin": "JFK", "destination": "LHR", "departureDate": "2027-03-15", "returnDate": "2027-03-22"}, {"origin": "BOS", "destination": "CDG"}]. Each item takes origin, destination, departureDate and returnDate (dates optional); a route may also set its own adults, children, infants, cabinClass and sortBy. The settings above apply to the rest.

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

Searches you already made on KAYAK, e.g. https://www.kayak.com/flights/JFK-LAX/2027-03-15/2027-03-22/business/2adults?sort=price_a. Route, dates, cabin, travellers, order and KAYAK's filters are read from each link.

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

The default works for most runs.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "daysFromToday": 21,
  "tripDays": 0,
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "economy",
  "sortBy": "best",
  "maxStops": "any",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `flights` (type: `string`):

No description

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

No description

## `report` (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 = {
    "origin": "JFK",
    "destination": "LAX",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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",
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/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",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/kayak-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automly/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/fECcHzyHNY2GqarTW/builds/j66sIJ9gnG0uJypO9/openapi.json
