# Kiwi.com Flights Scraper (`nice_dev/kiwi-flights-scraper`) Actor

Scrape Kiwi.com flights: every itinerary of a search with total price incl. bags, seats left, layovers, self-transfer and Kiwi Guarantee, plus price calendar and cheapest destinations. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/kiwi-flights-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Travel, MCP servers, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

### ✈️ What is Kiwi.com Flights Scraper?

**Kiwi.com Flights Scraper** extracts **flights and fares from [Kiwi.com](https://www.kiwi.com)**: **every itinerary of a search with its total price for all passengers, bags included, the price of each extra bag, the seats left, every layover, separate tickets and the Kiwi.com Guarantee**, plus a **price calendar** (the cheapest price of each day) and the **cheapest destinations** from a city. It works as a **Kiwi.com API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type a **city** (`Prague`), an **airport** (`PRG`) or a **country** (`Spain`), pick the dates, click **Start**, and download the itineraries in JSON, CSV or Excel. No login, nothing to set up. You can also paste the Kiwi.com search links you already have. Three modes in one Actor: every itinerary of a search, a price calendar, and the cheapest destinations.

### 📋 What data can you extract from Kiwi.com?

One row per itinerary, per day or per destination, 68 fields:

| Category | What you get |
| --- | --- |
| 💰 **Real total price** | the price for all passengers with the bags you asked for, the same in euros, the price per adult, Kiwi.com's warning when a price is likely to change — `64 EUR` |
| 🧳 **Bags** | cabin bags, checked bags and personal items included, the price of adding a checked or cabin bag, its weight, the all-in price with a checked bag, every bag option on sale — `+75 EUR for a 15 kg bag` |
| 🎟️ **Seats left** | seats still sold at this price, when Kiwi.com shows it |
| 🛡️ **Kiwi.com offers** | both ways to book (Basic and Guarantee) with their price and booking link, the Guarantee fee, automatic check-in, airline partnerships |
| ✈️ **Flights** | every flight of the trip with its number, airline and operating airline, cabin class, times and duration |
| 🔁 **Layovers** | airport and city of each change, its length, overnight, change of airport, bags to collect and check in again, covered by the Guarantee or not |
| ⚠️ **Ticket type** | separate tickets (self-transfer), hidden-city and throwaway fares, number of booking references |
| 🕒 **Times** | local departure and arrival, the same in UTC, total travel time, number of stops |
| 📍 **Airports** | code, name, city, country and coordinates of both ends |
| 📅 **Price calendar** | the cheapest price of each day of a window, with Kiwi.com's rating (cheap, average, expensive) |
| 🌍 **Cheapest destinations** | the cheapest itinerary to every city you can reach from a departure, anywhere or in one country |
| 🔎 **Search** | the search the row comes from, its rank in the sort you chose, how many itineraries Kiwi.com found |
| 📊 **Route summary** (option) | cheapest itinerary and day, lowest, median, average and highest price, cheapest direct flight, airlines seen |
| 🚦 **Connection risk** (option) | a low, medium or high risk level for every itinerary with a layover, with its reasons |
| 📉 **Price changes** (option) | previous price, change in currency and in percent since your last run |

Every field, with an example, is listed in the **Output** section below.

### ✅ Why use Kiwi.com Flights Scraper?

- 📈 **The whole search, not the first 50**: up to 1,000 itineraries per search, in the order you choose. Kiwi.com often finds hundreds (124 for one day from Prague to Barcelona, thousands of combinations for a round trip with flexible nights, of which the first 1,000 are delivered): `resultsAvailable` tells how many it found.
- 🧳 **The real price with bags**: ask for 2 adults, a child and 2 checked bags, and `price` is the total Kiwi.com charges for exactly that, with the price of each extra bag beside it.
- 🛡️ **Both Kiwi.com offers**: Basic and Guarantee, with the Guarantee fee and every layover detailed (overnight, change of airport, bags to collect, protected or not).
- 🗓️ **Three modes**: every itinerary, price calendar (one-way or round trip), cheapest destinations from a city.
- 🏙️ **Places as you type them**: city names, airport codes, countries, Kiwi.com ids, or the search links you copy from kiwi.com.
- 🔔 **Monitoring built in**: tick **Only new rows** and each run returns (and charges) only what it has not delivered before, and with **Price changes** you also get the itineraries whose price moved.
- 🔌 API, scheduling, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Kiwi.com flights

1. Create a free Apify account.
2. Open **Kiwi.com Flights Scraper**, choose what to scrape in **What to scrape** and type the departure in **From** (e.g. `Prague`).
3. Type the arrival in **To** (e.g. `Barcelona`), or leave it empty in the cheapest destinations mode. Pick the dates, or leave them empty: the departure is then 7 days from today.
4. Or paste your own Kiwi.com search links into **Kiwi.com search links**, or ready-made routes (`PRG-BCN`) into **Routes**.
5. Set **Max rows** (100 by default, 0 = no limit) and click **Start**, then download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Kiwi.com?

This Actor uses **pay per event** pricing: you pay per row saved, plus a small fee per run start. The exact prices, including the plans with lower prices, are on the **Pricing** tab of the Actor. Platform usage (compute, proxy) is included.

| What is charged | When |
| --- | --- |
| Run start | once per run |
| Itinerary | each itinerary saved (flights mode) |
| Calendar day | each day saved (calendar mode) |
| Destination fare | each destination saved (cheapest destinations mode) |
| Route summary (option) | each summary row, one per search, only with **Route summary** ticked |
| Connection risk (option) | each itinerary that gets a risk level, only with **Connection risk** ticked |
| Price change (option) | each row that comes back because its price moved, only with **Price changes** ticked |

- The three options are off by default: you pay for them only when you tick them.
- Cap the cost with **Max rows**, **Max rows per search** and, through the API, the run option `maxTotalChargeUsd`.

### ⚙️ Input

Itineraries from Prague to Barcelona, 14 days from today (the default form):

```json
{
    "mode": "flights",
    "origin": "Prague",
    "destination": "Barcelona",
    "departureDate": "14 days",
    "maxItems": 50
}
```

A family of 2 adults and a child with 2 checked bags, at most one stop, no separate tickets, cheapest first, with the connection risk:

```json
{
    "origin": "Prague",
    "destination": "London",
    "departureDate": "3 weeks",
    "adults": 2,
    "children": 1,
    "checkedBags": 2,
    "maxStops": 1,
    "excludeSelfTransferFares": true,
    "sortBy": "price",
    "includeConnectionRisk": true,
    "maxItems": 200
}
```

A price calendar of a 4-night round trip from London to Barcelona, in pounds:

```json
{
    "mode": "calendar",
    "origin": "London",
    "destination": "Barcelona",
    "tripType": "roundTrip",
    "departureDate": "1 month",
    "departureDateTo": "2 months",
    "nightsMin": 4,
    "nightsMax": 4,
    "currency": "GBP"
}
```

A multi-city trip, Prague to Barcelona then Barcelona to Rome, priced as one itinerary (2 to 8 trips, one per line, each with its date):

```json
{
    "tripType": "multiCity",
    "multiCityLegs": ["PRG-BCN 2026-12-15", "BCN-FCO 2026-12-20"],
    "sortBy": "price",
    "maxItems": 100
}
```

The cheapest destinations in Spain from Prague, a monitor that only returns what changed, with a route summary:

```json
{
    "mode": "destinations",
    "origin": "Prague",
    "destination": "Spain",
    "departureDate": "2 weeks",
    "departureDateTo": "6 weeks",
    "maxPrice": 150,
    "onlyNew": true,
    "trackPriceChanges": true,
    "priceChangeThreshold": 5,
    "includeRouteSummary": true,
    "stateKey": "prg-spain"
}
```

Or with your own Kiwi.com links and routes:

```json
{
    "startUrls": [
        {
            "url": "https://www.kiwi.com/en/search/results/prague-czechia/barcelona-spain/2027-03-12/no-return"
        }
    ],
    "routes": ["PRG-BCN", "VIE-BCN 2027-03-12 2027-03-19"],
    "maxItemsPerQuery": 100
}
```

| Field | Notes |
| --- | --- |
| `mode` | What to scrape: `flights` (one row per itinerary of each search), `calendar` (one row per day, the cheapest price of the day and Kiwi.com's rating), `destinations` (the cheapest itinerary to every city reachable from the departure). |
| `origin`, `destination`, `origins`, `destinations` | A city (`Prague`, `London` = all its airports), an airport code (`PRG`), a country (`Spain`) or a Kiwi.com id (`City:prague_cz`). Several places separated by commas in **From** or **To** are searched together as one area (`Prague, Vienna`), like on kiwi.com; the lists run one search per line. Every departure is searched to every arrival (max 500 searches per run). Empty **To** in the cheapest destinations mode = anywhere; required in the other modes. |
| `routes` | Ready-made routes, one per line: `PRG-BCN`, `PRG-BCN 2026-12-15` (one-way) or `PRG-BCN 2026-12-15 2026-12-20` (round trip). Codes, city names or Kiwi.com ids; the dates of a route replace the dates of the form. Max 500 routes. |
| `startUrls` | Kiwi.com search links copied from the address bar (`https://www.kiwi.com/en/search/results/prague-czechia/barcelona-spain/2026-12-15/no-return`): their places, dates and passengers are used, the filters of the form still apply. Up to 500 links; each different link is one search, max 500 searches per run. |
| `tripType` | `oneWay`, `roundTrip` or `multiCity`. A round trip returns the outbound and return flights together in one row, with `inbound` filled. `multiCity` prices the trips of **Multi-city trips** as one itinerary (itineraries only). |
| `multiCityLegs` | Only with the Multi-city trip type: the trips in travel order, one per line, each with its date: `PRG-BCN 2026-12-15`, or a window of days `PRG-BCN 2026-12-15 2026-12-17`. 2 to 8 trips; a trip must not end before the previous one starts. The places and dates of the form are then ignored; the date flexibility widens every trip. |
| `departureDate`, `departureDateTo`, `returnDate`, `returnDateTo` | A date (`2026-12-15`) or a period from the run date (`7 days`, `2 weeks`, `1 month`): a scheduled task always looks the same distance ahead. Every day between the first and the last departure day is searched at once. Empty first departure day = 7 days from today. Empty last day = the same day for itineraries, 2 months later for the calendar, 1 month later for the cheapest destinations. Kiwi.com sells about 12 months ahead. |
| `nightsMin`, `nightsMax` | Round trip without return dates: shortest and longest stay in nights, 0 to 60 (for example `3`). Empty = 2 to 7 nights. |
| `dateFlexibilityDays` | Widen every departure and return date by 0 to 7 days before and after (for example `3`, like Kiwi.com's ±3 days). |
| `adults`, `children`, `infants` | Passengers: adults 12 or older (`2`), children 2-11, infants under 2 on an adult's lap (at most one per adult). Adults and children: 9 at most. |
| `cabinBags`, `checkedBags` | Bags to include in the price, for the whole party: at most one cabin bag and two checked bags per adult or child (for example `2`). The price of every row then includes them. |
| `cabinClass` | `ECONOMY`, `PREMIUM_ECONOMY`, `BUSINESS` or `FIRST_CLASS`. |
| `currency` | Currency code of every price (`EUR`, `USD`, `GBP`, `CZK`). |
| `market` | Country of the Kiwi.com site the prices are asked for (`gb`, `us`, `de`): some fares and payment fees differ by country. |
| `locale` | Language of the place names and of the booking links (`en`, `de`, `fr`…). |
| `maxItems`, `maxItemsPerQuery` | Most rows for the whole run (`100` by default, `0` = no limit) and for EACH search (no per-search cap by default; for example `50`, so that the first search cannot use up the whole budget). Route summary rows are not counted. |
| `sortBy` | Order asked to Kiwi.com, which decides which itineraries come first when a cap applies: `best` (Kiwi.com's recommended order), `price`, `duration`, `departure` or `popularity`. |
| `maxStops` | Most stops per direction (`0` = direct only); in a multi-city search, per trip. |
| `maxPrice`, `minPrice` | Highest and lowest total price, all passengers and bags included, in the chosen currency (for example `150`). |
| `maxDurationHours` | Longest travel time per direction, layovers included, in hours (for example `10`); in a multi-city search, per trip. |
| `includeAirlines`, `excludeAirlines` | 2-letter airline codes (`FR`, `W6`): keep only the itineraries flown by these airlines, or leave out every itinerary with a flight by one of them. |
| `excludeSelfTransferFares`, `excludeHiddenCityFares`, `allowOvernightLayovers` | Leave out the itineraries made of separate tickets, the hidden-city and throwaway fares, or (unticked) the layovers through the night. |
| `minLayoverHours`, `maxLayoverHours` | Shortest and longest layover between two flights, in hours (for example `2`). |
| `departureTimeFrom`, `departureTimeTo` | Earliest and latest local departure time of the outbound trip (`06:00`, `12:00`). An earliest time later than the latest one (`22:00` → `05:00`) keeps the night flights. |
| `daysOfWeek` | Keep only the outbound departures on these days (`SATURDAY`, `SUNDAY`); in a multi-city search, the departure of the first trip. |
| `excludeKeywords` | Drop the rows whose airport, city, country, layover or airline name contains one of these WHOLE words (case and accents ignored): `Ryanair` drops every itinerary with a Ryanair flight, `London` every one that leaves from, arrives at or changes planes in London. |
| `includeRouteSummary` | Option, off by default: one extra row per search with the cheapest itinerary and day, lowest, median, average and highest price, cheapest direct flight, number of itineraries and airlines seen. Computed from the rows already read. Charged per summary row. |
| `includeConnectionRisk` | Option, off by default: a low, medium or high risk level and its reasons for every itinerary with a layover (short connection, change of airport, bags to collect and check in again, separate tickets without the Guarantee, overnight or very long layover). Charged per itinerary that gets a level. |
| `stateKey`, `onlyNew`, `trackPriceChanges`, `priceChangeThreshold`, `resetState` | Monitoring. Only new rows: only the rows no earlier run delivered under this memory key (`prg-spain`, one key per schedule). Price changes (option, needs Only new rows): a row already delivered comes back when its price moved by at least the threshold, in percent (3 by default). Reset memory forgets the memory. |
| Advanced | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

One real itinerary, shortened (the booking token of the link, the bag and booking options, the flights and the fields of the other modes are left out):

```json
{
    "recordType": "flight",
    "id": "VY1199-PRG-BCN-2026-11-21T21:30",
    "url": "https://www.kiwi.com/en/booking/?direct=true&locale=en&currency=eur&passengers=1-0-0&token=…&searchType=oneWay&searchBags=0.0",
    "scrapedAt": "2026-11-07T19:54:22.978Z",
    "searchUrl": "https://www.kiwi.com/en/search/results/prague-czechia/barcelona-spain/2026-11-21/no-return?adults=1&children=0&infants=0&cabinBags=0&checkedBags=0&cabinClass=ECONOMY&currency=EUR&market=gb#flights|",
    "searchFrom": "Prague (City:prague_cz)",
    "searchTo": "Barcelona (City:barcelona_es)",
    "searchDepartureDate": "2026-11-21",
    "resultsAvailable": 123,
    "tripType": "oneWay",
    "rank": 1,
    "price": 64,
    "currency": "EUR",
    "priceEur": 64,
    "priceMayChange": false,
    "pricePerAdult": 64,
    "passengers": "1-0-0",
    "route": "PRG-BCN",
    "origin": {
        "code": "PRG",
        "name": "Václav Havel Airport Prague",
        "city": "Prague",
        "cityId": "City:prague_cz",
        "country": "CZ",
        "countryName": "Czechia",
        "latitude": 50.1008333,
        "longitude": 14.26
    },
    "destination": {
        "code": "BCN",
        "name": "Barcelona–El Prat",
        "city": "Barcelona",
        "cityId": "City:barcelona_es",
        "country": "ES",
        "countryName": "Spain",
        "latitude": 41.2969444,
        "longitude": 2.07833333
    },
    "departureLocal": "2026-11-21T21:30:00",
    "departureUtc": "2026-11-21T20:30:00Z",
    "arrivalLocal": "2026-11-21T23:59:00",
    "arrivalUtc": "2026-11-21T22:59:00Z",
    "departureDate": "2026-11-21",
    "departureTime": "21:30",
    "durationMinutes": 149,
    "stops": 0,
    "airlines": ["VY"],
    "airlineNames": ["Vueling"],
    "flightNumbers": ["VY1199"],
    "layovers": [],
    "seatsLeft": null,
    "includedCabinBags": 0,
    "includedCheckedBags": 0,
    "includedPersonalItem": 1,
    "checkedBagFee": 75,
    "checkedBagWeightKg": 15,
    "cabinBagFee": 59,
    "priceWithCheckedBag": 139,
    "provider": "KIWI-BASIC",
    "partnerships": [],
    "guaranteePrice": 74.29,
    "guaranteeFee": 10,
    "automaticCheckin": true,
    "isSelfTransfer": false,
    "isHiddenCity": false,
    "isThrowaway": false,
    "pnrCount": 1
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 68 fields

Fields that do not apply to the kind of row (an itinerary, a calendar day, a destination fare or a route summary) are `null`, never missing.

| Fields | What you get |
| --- | --- |
| `recordType`, `id`, `url`, `scrapedAt` | `flight`, `calendarDay`, `destinationFare` or `routeSummary`; a stable id built from the flights and days (`VY1199-PRG-BCN-2026-11-21T21:30`, with `#throwaway` or `#hidden-city` added to such a ticket; a calendar day `PRG-BCN-2026-12-15` or, for a round trip, `PRG-BCN-2026-12-15-2026-12-20`; a destination fare, the same with its day(s); a route summary `PRG-BCN-summary-2026-12-15`), the key of Only new rows; the kiwi.com booking page (the search page for a calendar day); ISO timestamp |
| `searchUrl`, `searchFrom`, `searchTo`, `searchDepartureDate`, `searchReturnDate`, `resultsAvailable` | the search the row comes from: its kiwi.com page, departure and arrival as you typed them with their Kiwi.com id, dates or nights asked, how many itineraries Kiwi.com found for it |
| `tripType`, `rank` | `oneWay`, `roundTrip` or `multiCity`; position of the row in its search, in the order asked |
| `price`, `currency`, `priceEur`, `pricePerAdult`, `passengers` | total price for all passengers with the asked bags, its currency, the same in euros, the price per adult when only adults travel, adults-children-infants (`1-0-0`) |
| `priceBeforeDiscount`, `discountPercent`, `priceMayChange` | cheapest destinations only, when Kiwi.com shows a discount: the price before it and the discount in percent; Kiwi.com's warning that the price is likely to change at booking |
| `route`, `origin`, `destination` | `PRG-BCN` (`PRG-BCN-FCO` for a multi-city trip: every airport it goes through); departure and arrival airport (multi-city: the first departure and the final arrival): code, name, city, Kiwi.com city id, country code and name, latitude and longitude |
| `departureLocal`, `departureUtc`, `arrivalLocal`, `arrivalUtc`, `departureDate`, `departureTime` | outbound departure and arrival, local time and UTC; local departure day and time |
| `durationMinutes`, `stops`, `airlines`, `airlineNames`, `flightNumbers` | outbound travel time with layovers, number of stops (`0` = direct), airline codes and names and flight numbers of every flight |
| `outbound`, `inbound`, `returnDate`, `nightsAtDestination` | round trips: each direction with its airports and their cities, times, duration and stops; return day; nights at the destination |
| `trips` | multi-city trips: one entry per trip, in travel order, with its airports and their cities, local and UTC times, duration and stops (`null` for the other kinds of row). In a multi-city row `durationMinutes` and `stops` are the totals of all the trips, from the first departure to the final arrival |
| `segments`, `layovers` | every flight (multi-city: `direction` is `trip1`, `trip2`…) with its number, airline, operating airline, cabin class and times; every change between two flights with its airport, city, length, overnight, change of airport, bags to collect, distance and Guarantee cover |
| `seatsLeft` | seats left at this price when Kiwi.com shows it (low numbers only) |
| `includedCabinBags`, `includedCheckedBags`, `includedPersonalItem` | bags included in the price, for all passengers together |
| `checkedBagFee`, `checkedBagWeightKg`, `cabinBagFee`, `bagOptions`, `priceWithCheckedBag` | price of adding a checked bag (and its weight) or a cabin bag for one passenger, every bag tier on sale with its price, weight and size, the all-in price with a checked bag for each passenger |
| `provider`, `bookingOptions`, `partnerships`, `guaranteePrice`, `guaranteeFee`, `automaticCheckin` | Kiwi.com fare family (`KIWI-BASIC`), every way to book with its price and link, airline programs, price of the same trip with the Kiwi.com Guarantee and its fee, automatic check-in |
| `isSelfTransfer`, `isHiddenCity`, `isThrowaway`, `pnrCount`, `kiwiItineraryId` | separate tickets (a multi-city itinerary is one ticket per trip: it is flagged only when it needs more tickets than trips), hidden-city fare, throwaway fare, number of booking references, Kiwi.com's own id of the itinerary (it changes from one search to the next) |
| `priceRating` | calendar days: Kiwi.com's rating `cheap`, `average` or `expensive` |
| `connectionRiskLevel`, `riskFlags` | connection risk (option): `low`, `medium` or `high`, and its reasons (`shortConnection`, `airportChange`, `bagRecheck`, `selfTransferUnprotected`, `overnightLayover`, `longLayover`) |
| `previousPrice`, `priceChange`, `priceChangePct` | price changes (option): the price at the earlier run, the change, the change in percent |
| `summary` | route summary rows (option): number of itineraries and direct ones, cheapest price, itinerary and day, cheapest direct price, median, average and highest price, fastest travel time, airlines, days |

### 💡 Tips

#### How to get more results

Set **Max rows** to `0` for no limit. A search returns up to 1,000 itineraries; `resultsAvailable` tells how many Kiwi.com found, so you see what a cap cut off. Widen the dates (**Departure to**, **Flexible dates**), leave **To** empty in the cheapest destinations mode, or list several departures in **More departures**.

#### How to reduce costs

The price is per row, so the levers are **Max rows**, **Max rows per search**, the sort (with `price`, the cheapest come first under a cap), the filters (price, stops, travel time, airlines, layovers, hours, days, words: they are sent to Kiwi.com and also applied to every itinerary), and **Only new rows** for recurring runs: you never pay twice for the same row. Rows a filter drops are not saved.

#### Several searches in one run

Fill **More departures**, **More arrivals**, **Routes** and **Kiwi.com search links**: the Actor runs one search per departure and arrival, route and link, all the days of the date range in one search (3 departures × 4 arrivals = 12 searches, up to 500 per run). Set **Max rows per search** to give every search its own cap: without it the first searches can use up the whole **Max rows** budget. Each search is complete on its own: a flight found by two searches that overlap (**Barcelona** and **Spain**) comes once in each, with its own `searchUrl`, so leave out the arrivals another one already covers.

#### Monitoring: only the new rows

Tick **Only new rows** and schedule the Actor. The first run returns everything; each later run skips the rows already delivered: they are not saved and not charged. A row is the same flights on the same days in the same search (or the same calendar day, or the same destination). The memory lives in a named key-value store of your account (`kiwi-flights-scraper-seen`, up to 150,000 rows per key) and is only updated with rows that really reached the dataset, so a failed run never hides anything. Give each schedule its own **Memory key** (two schedules sharing a key would hide each other's rows), and tick **Reset memory** once to start over.

#### Monitoring: price drops and rises

Tick **Price changes** as well (it needs **Only new rows**) and set the threshold in percent (3 by default). The first run delivers every row and remembers its price. Each later run returns, besides the new rows, the rows already delivered whose price has moved by at least the threshold: `previousPrice`, `priceChange` and `priceChangePct` are filled. A row whose price moved less is skipped and costs nothing. Schedule it daily on the routes you follow to catch the drops.

#### The real price of a trip with bags

Set **Cabin bags** and **Checked bags** for the whole party: Kiwi.com then prices every itinerary with them, and `price` is the total you would pay. Without bags, `priceWithCheckedBag` still gives the all-in price with one checked bag per passenger, and `bagOptions` every bag on sale.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one row per Kiwi.com itinerary, calendar day or destination. Actor id: `nice_dev/kiwi-flights-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/kiwi-flights-scraper`.

Smallest input, for a cheap first call:

```json
{
    "origin": "Prague",
    "destination": "Barcelona",
    "maxItems": 10
}
```

Key output fields: `route`, `flightNumbers`, `departureLocal`, `arrivalLocal`, `price`, `currency`, `stops` and `url`.

Cost: pay per row plus a fee per run start, see the pricing section above. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Kiwi.com?

The Actor only reads the flights and fares that Kiwi.com shows publicly to any anonymous visitor. It logs in to nothing. The data is prices, times and airports: no personal data. You are responsible for using the data in compliance with Kiwi.com's Terms of Use and applicable law. This Actor is not affiliated with Kiwi.com.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the site turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds).

#### Which currency are the prices in?

Every price is in the `currency` you set (euros by default), and `priceEur` gives the same price in euros. The prices are those of the Kiwi.com site of the `market` you set.

#### Is the data safe to open in Excel or to show on a web page?

The values are airport names, codes, times and prices written by Kiwi.com: no text written by other users. As with any data from a third party, escape the fields before showing them on a web page.

#### Known limitations

- Flights only: the train and bus combinations of Kiwi.com are not searched.
- Multi-city trips: itineraries only (no calendar, no cheapest destinations), up to 1,000 itineraries per search, read in one call. `maxStops` and `maxDurationHours` are checked on each trip, the departure time on the first departure. Kiwi.com ignores `maxDurationHours`, `daysOfWeek`, the layover lengths and the overnight layovers there: the Actor applies them itself on the 1,000 itineraries of the sort chosen, so fewer rows than `maxItems` can remain (the run log says so). The cap `maxItems` is applied after Kiwi.com's sort, the cheapest first with `sortBy` `price`.
- Kiwi.com filters departure times by whole hours: the Actor checks the exact minutes on every itinerary, so a window `08:00` → `12:00` keeps 12:00 and drops 12:30.
- In the calendar and cheapest destinations modes, the filters on stops, airlines and layovers (and, for the calendar, travel time and departure times) are applied by Kiwi.com alone: a day or a destination is priced with the cheapest trip that matches, and the run log says so. A departure window through midnight is ignored in the calendar mode.
- The prices of the calendar and of the cheapest destinations come from Kiwi.com's price cache: they can move within the same day (72, 77 then 106 € for one day of one route, read the same day) and can differ from the itinerary you get when you open the day. Use the `flights` mode for the bookable price of a given day.
- Kiwi.com shows the seats left only when few remain: `seatsLeft` is `null` otherwise.
- Adults and children: 9 at most per search; one infant per adult.
- A departure more than about 12 months ahead has no flights: Kiwi.com does not sell them yet.
- `kiwiItineraryId` changes from one search to the next: use `id` to follow an itinerary.
- `onlyNew` remembers rows, not their content: without **Price changes** an itinerary whose price changed is not returned again.
- Two runs sharing the same `stateKey` at the same time may both return the same new row.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new request is made, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the rows already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved every 5 rows written, at each checkpoint and when the run ends or stops itself: resurrect the stopped run and the rows it had saved meanwhile join the memory; leave it stopped for good, and the next run may return up to 4 rows of that run once more.

#### Something doesn't work?

The last line of the log counts the rows saved, filtered out and the requests that failed after every retry. Those requests are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A place Kiwi.com does not know is named in the log, and its searches are skipped.

If Kiwi.com changes its pages, you are told instead of paying for blank rows. If the first 20 rows read all lack a field every row of their kind always has (price, airports, times, travel time, stops, flights, booking options), the run saves nothing more, stops and fails, and its last message names the missing field: at most those first rows are charged. A run of fewer rows (a scheduled `onlyNew` run that finds a few new itineraries, a small **Max rows**) is checked at its end, from 5 rows: its rows are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which requests failed and why.

# Actor input Schema

## `mode` (type: `string`):

`flights`: one row per itinerary of each search (one-way, a round trip outbound + return, or a multi-city itinerary), with its price for all passengers, bag fees, seats left, layovers and booking link — every result Kiwi.com returns, not just the first 50. `calendar`: one row per day with the cheapest price of that day and Kiwi's rating (cheap / average / expensive). `destinations`: the cheapest itinerary to every city reachable from the origin (leave **To** empty for anywhere, or give a country).

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

Departure: a city (`Prague`, `London` = all its airports), an airport code (`PRG`, `LHR`), a country (`Spain`) or a Kiwi id (`City:prague_cz`, `Station:airport:LHR`). Several, separated by commas: searched together as one departure area, like on kiwi.com.

## `origins` (type: `array`):

Several departures searched separately in one run, one per line. Added to **From**: every departure is searched to every destination (departures × destinations, at most 500 searches).

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

Arrival: a city, airport code, country or Kiwi id, several separated by commas (one arrival area). Empty in `destinations` mode = anywhere. Required in the other modes.

## `destinations` (type: `array`):

Several arrivals searched separately in one run, one per line. Added to **To**.

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

Ready-made routes, one per line: `PRG-BCN`, optionally with their own dates `PRG-BCN 2026-12-15` (one-way) or `PRG-BCN 2026-12-15 2026-12-20` (round trip). Codes, city names or Kiwi ids; the route dates replace the dates below for that route.

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

Search links copied from the kiwi.com address bar (`https://www.kiwi.com/en/search/results/prague-czechia/barcelona-spain/2026-12-15/no-return`). The places, dates and passengers of the link are used; the filters of this form still apply. Up to 500 links; each different link is one search, max 500 searches per run.

## `tripType` (type: `string`):

`roundTrip` searches outbound + return together (one row = one round trip, with `inbound` filled), using the return dates or the nights below. `multiCity` prices 2 to 8 trips in a row as ONE itinerary (only with **What to scrape** = Flights): write them in **Multi-city trips**, the places and dates of this form are then ignored.

## `multiCityLegs` (type: `array`):

Only with **Trip type** = Multi-city: the trips in travel order, one per line, each with its date: `PRG-BCN 2026-12-15`, or a window of days `PRG-BCN 2026-12-15 2026-12-17` (any day of the window). 2 to 8 trips; each trip must not end before the previous one starts. Codes, city names or Kiwi ids. One row = the whole journey, priced as one itinerary. **Date flexibility** widens every trip.

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

First departure day: a date (`2026-12-15`) or a period from the run date (`7 days`, `2 weeks`, `1 month`) — a saved task then always looks the same distance ahead. Empty = 7 days from today.

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

Last departure day (included), a date or a period from the run date: every day of the window is searched at once (Kiwi's flexible search). Empty = the same day as **Departure from** in `flights` mode, 2 months after it in `calendar` mode, 1 month after it in `destinations` mode.

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

Round trip only: first return day, a date or a period from the run date. Empty = use the nights below.

## `returnDateTo` (type: `string`):

Round trip only: last return day (included). Empty = the same day as **Return from**.

## `nightsMin` (type: `integer`):

Round trip without return dates: shortest stay, in nights. Empty = 2 when no return date is given.

## `nightsMax` (type: `integer`):

Round trip without return dates: longest stay, in nights. Empty = 7 when no return date is given.

## `dateFlexibilityDays` (type: `integer`):

Widen every departure and return date by this many days before and after (like Kiwi's ±3 days). 0 = the exact days.

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

Passengers aged 12 or more.

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

Passengers aged 2-11. Adults + children: 9 at most.

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

Under 2, on an adult's lap: at most one per adult.

## `cabinBags` (type: `integer`):

Cabin bags to include in the price (at most one per adult or child). Kiwi then prices every itinerary WITH these bags: `price` becomes the real total, bags included.

## `checkedBags` (type: `integer`):

Checked bags to include in the price (at most two per adult or child).

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

Travel class asked to Kiwi.com.

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

3-letter code of the prices (`EUR`, `USD`, `GBP`, `CZK`).

## `market` (type: `string`):

2-letter country code of the Kiwi.com site the prices are asked for (`gb`, `us`, `de`, `fr`): some fares and payment fees differ by country.

## `locale` (type: `string`):

Language of the place names and of the booking links.

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

Most rows saved for the whole run (after filters): itineraries, calendar days or destinations. 0 = no limit. Rows of the paid options (route summary) are not counted.

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (departure × arrival, route or pasted link), so that the first search cannot use up the whole **Max rows**. Applied after the sort below. 0 = no cap per search.

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

Order asked to Kiwi.com, which decides which itineraries come first when a cap applies: `best` = Kiwi's recommended order (price, duration and quality), `price` = cheapest first, `duration` = fastest first, `departure` = earliest departure first, `popularity` = Kiwi's most booked first.

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

Most stops per direction: 0 = direct only. Empty = any.

## `maxPrice` (type: `number`):

Highest total price (all passengers, chosen bags included), in the chosen currency. Empty = no limit.

## `minPrice` (type: `number`):

Lowest total price, in the chosen currency. Empty = no limit.

## `maxDurationHours` (type: `integer`):

Longest travel time per direction, layovers included, in hours. Empty = any.

## `includeAirlines` (type: `array`):

2-letter airline codes (`FR`, `W6`, `LH`): keep only itineraries flown by these airlines only. Empty = all.

## `excludeAirlines` (type: `array`):

2-letter airline codes to leave out: no itinerary with a flight by one of them.

## `excludeSelfTransferFares` (type: `boolean`):

Leave out Kiwi's itineraries made of separate tickets where you change planes on your own (`isSelfTransfer`). Fewer, often pricier results.

## `excludeHiddenCityFares` (type: `boolean`):

Leave out the fares where you get off at a stop (hidden city) or skip the last flight (throwaway ticket).

## `allowOvernightLayovers` (type: `boolean`):

Untick to leave out itineraries with a layover through the night.

## `minLayoverHours` (type: `integer`):

Shortest layover between two flights, in hours. Empty = Kiwi's own minimum.

## `maxLayoverHours` (type: `integer`):

Longest layover between two flights, in hours. Empty = any.

## `departureTimeFrom` (type: `string`):

Earliest local departure time of the outbound trip, `HH:MM` (`06:00`). Empty = any.

## `departureTimeTo` (type: `string`):

Latest local departure time of the outbound trip, `HH:MM` (`12:00`). Empty = any.

## `daysOfWeek` (type: `array`):

Keep only the outbound departures on these days. Empty = every day.

## `excludeKeywords` (type: `array`):

Drop the rows whose departure or arrival airport, city or country, layover airport code or city, or airline name contains one of these WHOLE words (case and accents ignored): `Ryanair` drops every itinerary with a Ryanair flight, `London` every one that leaves from, arrives at or changes planes in London. A calendar day or a cheapest fare knows only the places of the search.

## `includeRouteSummary` (type: `boolean`):

Add one row per search (`recordType` = `routeSummary`): cheapest itinerary and day, lowest, median, average and highest price, cheapest direct flight, number of itineraries, airlines seen. Computed from the rows already read (no extra request). Charged per summary row.

## `includeConnectionRisk` (type: `boolean`):

Add `connectionRiskLevel` (`low`, `medium`, `high`) and `riskFlags` to every itinerary with a layover: short connection, airport change, bags to collect and check in again, separate tickets without Kiwi's guarantee, overnight layover, very long layover. Charged per itinerary that gets a risk level.

## `onlyNew` (type: `boolean`):

Skip the rows a previous run (same **Memory key**) already delivered: not saved, not charged. A row = the same flights on the same days (or the same calendar day, or the same destination).

## `trackPriceChanges` (type: `boolean`):

Needs **Only new rows**. A row already delivered comes back when its price has moved by at least the threshold below since the run that delivered it, with `previousPrice`, `priceChange` and `priceChangePct`. Charged per row that comes back.

## `priceChangeThreshold` (type: `number`):

Used with **Price changes**: 3 means a price going from 100 to 103 or to 97.

## `stateKey` (type: `string`):

Name of the memory used by **Only new rows**. Give each schedule / task its own key (e.g. `prg-bcn`). Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget the rows delivered under this **Memory key** before the run: this run returns (and charges) every row again. Untick it afterwards.

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

Proxy for the Kiwi.com searches. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

Maximum number of searches processed in parallel.

## `maxRequestsPerMinute` (type: `integer`):

Most requests to Kiwi.com in any 60 seconds, all of them counted (page, places, searches and their follow-up calls). A budget, not an even pace.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests, in milliseconds. 0 = no gap.

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. A request Kiwi.com turns away is retried on a new session up to 10 times without using up these retries.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## Actor input object example

```json
{
  "mode": "flights",
  "origin": "Prague",
  "origins": [],
  "destination": "Barcelona",
  "destinations": [],
  "routes": [],
  "startUrls": [],
  "tripType": "oneWay",
  "multiCityLegs": [],
  "departureDate": "14 days",
  "dateFlexibilityDays": 0,
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinBags": 0,
  "checkedBags": 0,
  "cabinClass": "ECONOMY",
  "currency": "EUR",
  "market": "gb",
  "locale": "en",
  "maxItems": 50,
  "maxItemsPerQuery": 0,
  "sortBy": "best",
  "includeAirlines": [],
  "excludeAirlines": [],
  "excludeSelfTransferFares": false,
  "excludeHiddenCityFares": false,
  "allowOvernightLayovers": true,
  "daysOfWeek": [],
  "excludeKeywords": [],
  "includeRouteSummary": false,
  "includeConnectionRisk": false,
  "onlyNew": false,
  "trackPriceChanges": false,
  "priceChangeThreshold": 3,
  "stateKey": "default",
  "resetState": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 4,
  "maxRequestsPerMinute": 60,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "flights",
    "origin": "Prague",
    "destination": "Barcelona",
    "departureDate": "14 days",
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/kiwi-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 = {
    "mode": "flights",
    "origin": "Prague",
    "destination": "Barcelona",
    "departureDate": "14 days",
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/kiwi-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 '{
  "mode": "flights",
  "origin": "Prague",
  "destination": "Barcelona",
  "departureDate": "14 days",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/kiwi-flights-scraper --silent --output-dataset

```

## MCP server setup

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