# Kayak Flights Scraper: Flight Prices & Flight Price Tracker (`moggedhq/kayak-flights-price-scraper`) Actor

Get Kayak flight prices for JFK-LAX or LHR-JFK: airlines, times, stops, duration and booking-site quotes for a scheduled flight price tracker. $0.001 per itinerary; 1,000 cost about $1.05 with $0.04 setup and the default $0.006 start. No login. Fare and baggage details.

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

## Pricing

from $0.80 / 1,000 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 & Flight Price Tracker

For airfare analysts, travel tools and teams that monitor the same routes repeatedly. Collect a flight itinerary together with the booking sites quoting it, their prices, airline and flight numbers, local times, connections, duration, fare brands and baggage information.

The base price is **$0.001 per itinerary**, so **1,000 itineraries cost $1**, plus a **$0.04 setup charge on the first delivered itinerary** and the **$0.003 start charge per GB of run memory**. Default memory is 2 GB, making its start charge $0.006. Provider quotes are included. No Kayak login or source API key is needed.

### What you get

Each `ITINERARY` row describes one priced itinerary for the requested route, dates, cabin, passenger count and currency. A round trip is one row with two directions. Notes are separate, free rows with `recordType: "NOTE"`.

| Field | Meaning |
| --- | --- |
| `verdict` | A readable route, price and booking-site summary. |
| `origin`, `destination` | Requested three-letter airport or city codes. |
| `departDate`, `returnDate` | Resolved travel dates. Return is null for a one-way journey. |
| `airlines` | Airline names supplied for the flight segments. |
| `flightNumbers` | Airline code plus flight number, in travel order. |
| `departTime`, `arriveTime` | Outbound departure and arrival, in each airport's local time. |
| `durationMinutes` | Outbound elapsed journey duration supplied by Kayak, including connections. |
| `stops`, `stopAirports` | Largest stop count in either direction and the connection airports. |
| `price`, `currency` | Cheapest returned quote for the requested cabin and currency, per person. |
| `cabin` | Requested cabin: economy, premium, business or first. |
| `bookingProviders` | Each returned booking site's cheapest qualifying quote, including its name and price. |
| `cheapestProvider` | Booking site behind the lowest retained quote. |
| `fareType` | Published fare-brand name for the lowest quote, when supplied. |
| `deepLink` | Kayak itinerary link. Provider-specific links remain inside the provider quotes. |
| `searchedAt` | UTC observation timestamp for the source result page. |

Additional fields preserve the detail needed to compare like with like:

| Field | Meaning |
| --- | --- |
| `itineraryId` | Stable identifier based on the flights, dates and search settings, independent of the current price. |
| `adults`, `priceMode`, `totalPrice` | Passenger count, the source's per-person price mode and its quoted total. |
| `returnDepartTime`, `returnArriveTime` | Local times for the inbound direction, or null. |
| `totalDurationMinutes`, `totalStops` | Combined travel duration and connection count across both directions. |
| `legs` | Every direction and segment: airports, times, airline, flight number, elapsed duration and aircraft. |
| `fareOptions` | Retained quotes across fare variants, including provider, price, fare name, baggage and fare amenities. |
| `providerCount`, `sourceProviderCount` | Distinct retained booking sites and the source's reported provider count. |
| `sourceResultId`, `searchId`, `searchUrl` | Source identifiers and the searched page, useful when investigating a snapshot. |
| `isCheapest`, `isBest` | Kayak's own labels when present. |
| `isCheapestForSearch` | Lowest collected price within that search's returned rows. |

The **Flights** dataset view puts prices, carriers, schedules, stops and providers together. The **Cheapest** table emphasizes fare comparisons and marks the lowest collected prices. The `CHEAPEST` JSON output contains one lowest-priced itinerary per route. Every run writes `SUMMARY` with the number of searches and priced itineraries, cheapest observations, free notes and any source gaps.

### Start in three steps

1. Add routes with airport or city codes, departure dates and optional return dates.
2. Choose passengers, cabin, currency, stop limit and result caps.
3. Run the Actor, check SUMMARY and export the Flights dataset as JSON, CSV or Excel.

Use airport codes such as `JFK`, `LHR`, `DPS` or `SIN`. City codes can cover several airports; keep your selection consistent between observations.

The form prefills CPT-JNB with a 20-itinerary cap. Additional provider quotes do not create extra itinerary charges.

### Inputs

| Input | Example and behavior |
| --- | --- |
| `routes` | An array of route objects. Each requires `origin`, `destination` and `departDate`; `returnDate` is optional. Up to 200 routes. |
| `adults` | Adult passengers, from 1 to 9; default 1. |
| `cabin` | `economy`, `premium`, `business` or `first`; default economy. |
| `currency` | Three-letter display currency, such as USD, EUR, GBP or ZAR; default USD. |
| `maxStops` | Omit for any number. Set 0 for nonstop, 1 for up to one connection per direction, or 2 for up to two. |
| `sort` | `cheapest`, `best` or `quickest`; default cheapest. |
| `maxResultsPerSearch` | Maximum distinct priced itineraries per route, from 1 to 1,000; default 20. |
| `maxItems` | Maximum distinct itineraries across the entire run, from 1 to 10,000; default 20. |
| `proxyConfiguration` | Automatic proxy selection by default, with support for an explicit proxy country, group, custom URLs or disabled proxy. |

Dates accept `YYYY-MM-DD` or `today+N`, measured from the run's UTC date. They resolve once per run and survive restarts. Use fixed dates to follow a particular departure.

A small rolling search:

```json
{
  "routes": [
    {"origin": "JFK", "destination": "LAX", "departDate": "today+60"}
  ],
  "currency": "USD",
  "sort": "cheapest",
  "maxResultsPerSearch": 20,
  "maxItems": 20
}
```

Two routes with a shared global cap:

```json
{
  "routes": [
    {"origin": "JFK", "destination": "LHR", "departDate": "today+45", "returnDate": "today+52"},
    {"origin": "BOS", "destination": "LHR", "departDate": "today+45", "returnDate": "today+52"}
  ],
  "adults": 2,
  "cabin": "business",
  "currency": "GBP",
  "maxStops": 1,
  "maxResultsPerSearch": 50,
  "maxItems": 100
}
```

Caps are maximums. Sort applies before the cap, and identical itineraries across overlapping inputs are charged once per run.

### Read a fare correctly

`price` is the source's displayed per-person fare. A round-trip price covers both directions. `totalPrice` retains the source's total for the passenger selection; it is not invented by multiplying a rounded display price. Times retain the source airport-local representation; store each time with its date and airport.

The same flights can have different baggage, seat-selection or refund conditions. `bookingProviders` keeps each returned seller's lowest qualifying quote; `fareOptions` keeps the variants. Missing metadata stays null. Unknown baggage does not mean a free bag.

For separate-ticket journeys, supplied split-ticket details remain under the quote. One search result does not imply a protected connection. Check the current provider offer before purchase.

The Actor collects offers without reservations, inventory holds or a final checkout calculation. Ads and non-flight content are excluded from charged rows.

### Verified output

Cloud tests on 13 November 2026 returned 1,000 unique priced itineraries in each of two bulk runs. Ten delivered rows matched contemporaneous live cards for price, airline, times, duration, stops and fare brand. A save-before-charge reboot retained unique rows and single charges.

The signed-out JFK-LAX search for 20 January 2027 returned this connection via BOS:

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departDate": "2027-01-20",
  "returnDate": null,
  "airlines": ["JetBlue"],
  "flightNumbers": ["B6418", "B6487"],
  "departTime": "2027-01-20T12:35:00",
  "arriveTime": "2027-01-20T18:44:00",
  "durationMinutes": 549,
  "stops": 1,
  "stopAirports": ["BOS"],
  "price": 151,
  "currency": "USD",
  "fareType": "Main Base",
  "providerCount": 7
}
```

That search included a $151 agency quote, a $154 airline quote and higher fare variants. Observed fares can change.

### Pricing and spending limits

One itinerary is one distinct combination of flights and search settings. Its available provider quotes are included in that charge. Notes, failed source requests, empty searches, retries and repeated rows have no itinerary fee. There is no additional default dataset-row fee.

| Tier | Price per itinerary |
| --- | --- |
| Base | $0.001 |
| Bronze | $0.00095 |
| Silver | $0.0009 |
| Gold and higher | $0.0008 |

Add one $0.04 setup charge on the first delivered itinerary, plus $0.003 per GB of memory at start (minimum one start unit). At the default 2 GB, 20 itineraries cost about $0.07, 100 about $0.15, and 1,000 about $1.05 at base pricing. Empty searches have no setup or itinerary fee; the platform start charge still applies. More memory increases that start charge.

Set Apify's maximum total charge to control a larger job. The Actor checks the remaining itinerary allowance before searching and before saving additional results. Once the allowance is exhausted, it stops collecting more and records the spending-limit status in SUMMARY. Your global `maxItems` cap is a separate control.

### Monitor prices every day

Save the route list and settings as an Apify task. Create a schedule in Apify Console, select that task, set the timezone and recurrence, and connect a completed-run webhook to your database or workflow.

Use fixed departure dates to follow a particular journey. Use relative dates for a rolling departure window. Keep passenger count, cabin, currency, airports and stop filters unchanged when comparing snapshots. Join by `itineraryId` and use `searchedAt` for the observation time. Each new run collects fresh prices and charges for the itineraries it delivers again.

Store provider quotes and fare conditions alongside the primary price. A different cheapest seller or different baggage inclusions can explain a price movement.

Check SUMMARY before accepting a scheduled snapshot as complete. A source refusal produces a visible free note. An empty filtered search is reported as no matches. Missing observations should remain gaps in your history. Old fares are not substituted for a new search.

### API and automation

Use your Apify token to run the Actor, read the dataset and fetch the `SUMMARY` key-value-store record. Keep NOTE rows separate from itinerary observations.

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/kayak-flights-price-scraper").call(run_input={
    "routes": [{"origin": "DPS", "destination": "SIN", "departDate": "today+60"}],
    "maxItems": 20
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("recordType") == "ITINERARY":
        print(row["price"], row["currency"], row["cheapestProvider"])
```

Schedules, webhooks, Make, Zapier, n8n and spreadsheet workflows can consume the dataset. CSV is useful for the main itinerary fields; use JSON to preserve nested legs, provider quotes and fare options.

### Use with AI agents (MCP)

Connect an agent to `https://mcp.apify.com`. Ask for Kayak flight prices by route and date, and provide the airport codes, dates, adults, cabin, currency and result cap. Ask it to inspect the input schema before starting, read SUMMARY after completion, preserve null fields and compare the same fare conditions across providers.

For example: collect 20 JFK-LAX itineraries 60 days ahead, in USD for one adult, with the returned booking-site quotes included.

### Limits

Fares and availability can change after collection and when a provider opens its checkout. Booking links can expire. Provider coverage varies by route and market, and a source provider count can exceed the quotes retained for your requested cabin. The Actor exposes returned public quotes, not every seller or every seat in the market.

Results are current observations, with no historical backfill. Dates must be within the next 330 days. This input supports one-way and round-trip searches, not multi-city journeys, children, infants, baggage filters or bookings. Fare variants outside the requested cabin are excluded. Missing metadata remains null.

Source outages, bot checks and changes to public search can prevent a result. Retries cannot guarantee access. The Actor does not sign in, use account cookies or solve CAPTCHAs. Parseable invalid inputs produce free notes; schema-invalid input can be rejected by Apify before a run starts.

### FAQ

**Are booking sites charged separately?** No. All retained provider quotes belong to one itinerary charge.

**Is the price per person?** Yes. `totalPrice` preserves the source total for your passenger selection, and a round-trip fare covers both directions.

**Why does a provider have several fares?** Different inclusions can produce several quotes for the same flights. `bookingProviders` keeps that site's lowest qualifying quote, while `fareOptions` retains the variants.

**What does stops mean on a round trip?** It is the larger connection count of the two directions. `totalStops` is the combined count, and `legs` shows each direction separately.

**Why are there fewer rows than my cap?** Availability, filters, matching cabin quotes and source pagination all limit the result set. SUMMARY distinguishes source gaps from an empty matching search.

**What happens after a run restarts?** Saved search pages and delivered itinerary identities are recovered. Previously delivered itineraries are not charged again within that run.

# Actor input Schema

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

Routes with origin and destination IATA codes, departDate and optional returnDate. Dates accept YYYY-MM-DD or today+N for rolling monitoring. Up to 200 routes.

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

Adults in each search. Prices remain per person; totalPrice contains the source total.

## `cabin` (type: `string`):

Cabin to request from Kayak.

## `currency` (type: `string`):

Three-letter display currency, such as USD, EUR or GBP.

## `maxStops` (type: `integer`):

Omit for any number of stops. Zero means nonstop; one allows one connection per direction.

## `sort` (type: `string`):

Kayak result order, applied before the result cap.

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

Distinct priced itineraries per route and date. Available booking quotes are included in each itinerary.

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

Global cap across all routes. Duplicate itineraries are delivered and charged once.

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

Automatic default: datacenter Chrome first, then US residential retries. Explicit disable, groups, country or custom proxy URLs are preserved.

## Actor input object example

```json
{
  "routes": [
    {
      "origin": "CPT",
      "destination": "JNB",
      "departDate": "today+60"
    }
  ],
  "adults": 1,
  "cabin": "economy",
  "currency": "USD",
  "sort": "cheapest",
  "maxResultsPerSearch": 20,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `cheapest` (type: `string`):

No description

## `summary` (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": [
        {
            "origin": "CPT",
            "destination": "JNB",
            "departDate": "today+60"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/kayak-flights-price-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": [{
            "origin": "CPT",
            "destination": "JNB",
            "departDate": "today+60",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/kayak-flights-price-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": [
    {
      "origin": "CPT",
      "destination": "JNB",
      "departDate": "today+60"
    }
  ]
}' |
apify call moggedhq/kayak-flights-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/kayak-flights-price-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/mbvlHEIeB5ALuIFhb/builds/Mhm5CH80QqMmTkYrH/openapi.json
