# Kayak Scraper - Flight Prices, Airlines & Booking Links (`neverempty/kayak-flights-scraper`) Actor

Kayak flight search by route and date: every itinerary with the lowest price, seller, airlines, flight numbers, times, stops, layovers and booking link. Date ranges, round trips, cabin, stops and airline filters. One row per itinerary; no start fee.

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

## Pricing

from $0.69 / 1,000 flight returneds

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 Prices, Airlines & Booking Links

Get **Kayak flight prices for a route and date** as clean JSON: one row per itinerary with the lowest price and who sells it, airlines, flight numbers, local departure and arrival times, duration, stops, layover airports and minutes, every segment with its aircraft, baggage fees and a booking link. Search one date or a **range of departure dates** in one run, one way or round trip, with cabin, stops, airline and price filters.

- **No start fee.** You pay only for the flight rows that come back.
- **One row per itinerary.** The row price is the lowest of all sellers. Turn on `includeAllProviders` to add every seller with its own price and booking link.
- **Date range in one run.** Every departure date from `departureDate` to `departureDateTo` (up to 31 dates). For round trips the length of stay is kept: departing a day later returns a day later.
- **Up to 500 itineraries per date**, in the order you choose: cheapest, best, fastest or earliest.
- **No charge when nothing can be returned.** A date with no flights, an input the site does not accept or a run that hit its maximum charge comes back as a free row that says why.

Set it up in a minute: no login, cookies or API key needed. Built for fare trackers, travel apps, analysts and AI agents that need Kayak prices as data.

### What you get

One row per itinerary per departure date:

```json
{
  "status": "ok",
  "departureDate": "2026-12-15",
  "returnDate": null,
  "origin": "JFK",
  "destination": "LAX",
  "price": 169,
  "currency": "USD",
  "priceScope": "one-way-per-person",
  "travelers": 1,
  "cabinClass": "economy",
  "cheapestProvider": "American Airlines",
  "providerCount": 4,
  "airlines": [
    "American Airlines"
  ],
  "flightNumbers": [
    "AA 171"
  ],
  "departureLocal": "2026-12-15T06:05:00",
  "arrivalLocal": "2026-12-15T09:30:00",
  "durationMinutes": 385,
  "stops": 0,
  "outbound": {
    "from": "JFK",
    "to": "LAX",
    "departure": "2026-12-15T06:05:00",
    "arrival": "2026-12-15T09:30:00",
    "durationMinutes": 385,
    "stops": 0,
    "layovers": [],
    "segments": [
      {
        "airlineCode": "AA",
        "airline": "American Airlines",
        "flightNumber": "AA 171",
        "from": "JFK",
        "to": "LAX",
        "departure": "2026-12-15T06:05:00",
        "arrival": "2026-12-15T09:30:00",
        "durationMinutes": 385,
        "aircraft": "Airbus A320"
      }
    ]
  },
  "inbound": null,
  "carryOnBag": "Included",
  "checkedBag": "Not Included (+$55)",
  "isBest": true,
  "isCheapest": true,
  "bookingUrl": "https://www.kayak.com/book/flight?code=2rAiL414KC.sIt2B02c_I...",
  "checkedAt": "2026-11-15T02:46:13.362Z"
}
```

Columns: `status`, `departureDate`, `returnDate`, `origin`, `destination`, `price`, `currency`, `priceScope` (`one-way-per-person` or `round-trip-per-person`), `travelers`, `cabinClass`, `cheapestProvider`, `providerCount`, `airlines`, `flightNumbers`, `departureLocal`, `arrivalLocal`, `durationMinutes`, `stops`, `outbound` and `inbound` (each with `layovers` and `segments`), `carryOnBag`, `checkedBag`, `isBest`, `isCheapest`, `bookingUrl`, `offers` (with `includeAllProviders`), `searchUrl`, `checkedAt`.

Prices are per traveler, in US dollars, as Kayak shows them. Local times carry no time zone, exactly as the airports show them.

Rows that are not flights are free and have a `status` and a `note`:

| status | meaning |
| --- | --- |
| `no-flights` | Nothing was found for that date and filters (an airport code the site does not know also ends here). |
| `bad-input` | The input is not valid, or the site does not accept the airport code or the date. |
| `blocked` | The site showed a check page. The Actor does not solve or bypass check pages; it stops and does not search the remaining dates. |
| `unreadable` | The site could not be read for that date. |
| `budget-reached` | The run reached the maximum charge you set; nothing more was returned. |

### Input

| field | what it does |
| --- | --- |
| `origin`, `destination` | IATA airport or city codes (`JFK`, `NYC`, `LON`). Several codes separated by commas are searched together (up to 5). Both empty runs the example JFK to LAX. |
| `departureDate` | `YYYY-MM-DD`, or `+N` for N days from today (UTC). Empty = `+30`. A schedule with `+N` never runs out of dates. |
| `departureDateTo` | Optional end of a date range (up to 31 dates). |
| `returnDate` | Optional. Makes it a round trip. |
| `adults`, `children` | Travelers (at most 9). Prices stay per traveler. |
| `cabinClass` | `economy`, `premium-economy`, `business`, `first`. |
| `maxStops` | `any`, `nonstop`, `1`, `2`. |
| `airlines` | Optional 2-letter codes, for example `AA, DL`. |
| `maxPrice` | Optional price cap per traveler (USD). |
| `maxFlightsPerDate` | 1 to 500, default 50. |
| `sortBy` | `cheapest`, `best`, `fastest`, `earliest`. |
| `includeAllProviders` | Adds the list of every seller to each row. |

Example: nonstop flights, New York to Los Angeles, ten days of departures:

```json
{
  "origin": "NYC",
  "destination": "LAX",
  "departureDate": "+30",
  "departureDateTo": "+39",
  "maxStops": "nonstop",
  "maxFlightsPerDate": 20
}
```

### Pricing

Pay per event: **only the `flight-returned` event**, one per flight row. No start fee. The price per 1,000 rows goes down with your Apify plan. Free rows (`no-flights`, `bad-input`, `blocked`, `unreadable`, `budget-reached`) are never charged. Set the maximum charge per run in the run options; the Actor stops cleanly when it is reached.

### Good to know

- Results are what the site shows at the moment of the run; fares change. `checkedAt` tells when a row was read.
- The `2` option for `maxStops` keeps itineraries with at most 2 stops on each flight.
- Up to 31 departure dates per run. Dates run one after the other.
- This is an unofficial tool and is not affiliated with Kayak. It reads the public flight results, the same ones a person sees without logging in.

### Support

Something not working, or a column you need? Message us from the Actor's Issues tab. We read every message and fix what is broken.

# Actor input Schema

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

IATA airport or city code to fly from, for example JFK or NYC. Several codes separated by commas are searched together (JFK, EWR, LGA; up to 5). Leave both From and To empty to run the example route JFK to LAX.

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

IATA airport or city code to fly to, for example LAX or LON. Several codes separated by commas are searched together (up to 5).

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

YYYY-MM-DD (for example 2026-12-10), or +N for N days from today in UTC (+30 = 30 days from today, so a schedule never runs out of dates). Empty = +30.

## `departureDateTo` (type: `string`):

Optional. Search every departure date from Departure date to this date, one search per date (up to 31 dates in one run). YYYY-MM-DD or +N days from today.

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

Optional. Makes it a round trip: each row is a full itinerary with the outbound and the return flight and the round-trip price per traveler. With a date range the length of stay is kept. YYYY-MM-DD or +N days from today. Empty = one way.

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

Number of adults (1 to 9). Empty = 1. Prices are per traveler, as the site shows them.

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

Number of children (1 to 8; at most 9 travelers with adults). Empty = 0.

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

Cabin class to search.

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

Only itineraries with at most this many stops on each flight.

## `airlines` (type: `string`):

Optional. Only these airlines, as 2-character codes separated by commas, for example AA, DL, UA.

## `maxPrice` (type: `integer`):

Optional. Only itineraries at or under this price per traveler (USD).

## `maxFlightsPerDate` (type: `integer`):

At most this many itineraries per departure date, in the order of Sort by. One page of the site holds 50; 500 is the most per date.

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

Which itineraries come first (and survive the max per date).

## `includeAllProviders` (type: `boolean`):

Adds an offers list to each row: every seller that sells this itinerary, with its price and booking link. The row price is always the lowest of them.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30",
  "cabinClass": "economy",
  "maxStops": "any",
  "maxFlightsPerDate": 50,
  "sortBy": "cheapest",
  "includeAllProviders": false
}
```

# Actor output Schema

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

One row per Kayak itinerary: lowest price and seller, airlines, flight numbers, local times, duration, stops, layovers, every segment with aircraft, baggage fees and a booking link. A date with no flights, an input the site does not accept, a check page or a run that hit its maximum charge comes back as a free row that says why.

# 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"
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/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",
}

# Run the Actor and wait for it to finish
run = client.actor("neverempty/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"
}' |
apify call neverempty/kayak-flights-scraper --silent --output-dataset

```

## MCP server setup

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