# Kiwi.com Flight Search Scraper — Fares, Routes, Layovers (`bovi/kiwi-scraper`) Actor

Search Kiwi.com flight itineraries by route and date. Get fares, times, airlines, stops, layovers, baggage, connection flags, and booking links. Run with origins, destinations, dates, and no Kiwi.com login or API key. Pricing: $0.001 per result plus $0.00005 per Actor Start event on Free.

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

## Pricing

from $1.00 / 1,000 kiwi.com flight search scraper — fares, routes, layovers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Kiwi.com Flight Search Scraper

Extract Kiwi.com fares, times, airlines, stops, layovers, bags, connection flags, and booking links without a Kiwi.com login, account, or API key. Free billing is $0.001 per dataset result plus $0.00005 per Actor Start event.

- Schedule runs to track route fares and build price history in 37 currencies.
- Compare origins, destinations, and dates; each search gets a `searchId`.
- Find Kiwi.com self-connected trips that no airline lists.
- Assess separate tickets, layovers, airport changes, bag re-checks, Guarantee protection, and connection risk.
- Supply comparison sites or travel products with itinerary booking links.

### What you get

Source-unprovided fields are omitted from saved rows; arrays can be empty.

| Field family | Fields | Type | What it contains |
|---|---|---|---|
| Search metadata | `source`, `market`, `currency`, `collectedAt` | string; ISO 8601 string | Source, market, requested currency, and UTC collection time. |
| Search identity | `searchId`, `searchOrigin`, `searchDestination`, `requestedDepartureDate`, `requestedReturnDate` | string | Search, requested route, and dates; return date is omitted for one-way rows. |
| Trip settings | `tripType`, `cabinClass`, `adults`, `children`, `infants` | string; integer | Trip mode, cabin, and priced party. |
| Fare | `price`, `priceFormatted`, `priceEur` | number; string | Party fare, displayed fare, and euro amount. |
| Airports | `originCode`, `originName`, `originCity`, `originCountry`, `destinationCode`, `destinationName`, `destinationCity`, `destinationCountry` | string | Departure and arrival airports and locations. |
| Times | `departureLocal`, `arrivalLocal`, `departureUtc`, `arrivalUtc`, `returnDepartureLocal`, `returnArrivalLocal` | ISO 8601 string | Outbound and, for returns, inbound times. |
| Duration and stops | `durationMin`, `outboundDurationMin`, `inboundDurationMin`, `stopCount`, `outboundStopCount`, `inboundStopCount`, `segmentCount` | integer | Travel time, stops, and legs. Return-only fields are omitted for one-way rows. |
| Airlines and flights | `carrierCodes`, `carrierNames`, `flightNumbers`, `hasCodeshare` | array; boolean | Airlines, flight numbers in travel order, and codeshare status. |
| Ticket structure | `pnrCount`, `isSelfTransfer`, `isVirtualInterlining`, `isTrueHiddenCity`, `isThrowawayTicket` | integer; boolean | Separate bookings and fare characteristics. |
| Connection risk | `connectionRiskLevel`, `riskFlags` | string; array | `NONE`, `LOW`, `MEDIUM`, or `HIGH`, plus the underlying flags. |
| Connection details | `shortestLayoverMin`, `stationChanges`, `baggageRechecks`, `protectedConnections` | integer | Shortest layover, airport changes, bag re-checks, and Kiwi.com Guarantee protection. |
| Included items | `includedHandBags`, `includedCheckedBags`, `includedPersonalItem`, `seatsLeft` | integer | Included bags, personal items, and published seats left. |
| Itinerary detail | `segments`, `layovers` | array | Legs and connections with airports, times, duration, transport, baggage re-check, walking distance, and protection. |
| Seller and booking | `sellerCode`, `sellerName`, `bookingOptions`, `bookingUrl` | string; array | Seller, fare products, and itinerary booking link; booking fields can be empty or omitted when unavailable. |
| Search availability | `resultsAvailable` | integer | Itineraries Kiwi.com reports for the search. |

### Sample output

This shortened sample keeps selected top-level fields from one real dataset record and omits nested `segments`, `layovers`, and booking-link fields.

```json
{
  "source": "kiwi",
  "collectedAt": "2026-10-28T06:44:05.902527+00:00",
  "searchId": "JFK-LAX-2026-11-27",
  "price": 249,
  "priceFormatted": "$249",
  "currency": "USD",
  "originCode": "JFK",
  "destinationCode": "LAX",
  "departureLocal": "2026-11-27T06:00:00",
  "arrivalLocal": "2026-11-27T15:37:00",
  "durationMin": 757,
  "stopCount": 1,
  "carrierNames": ["JetBlue Airways", "Frontier Airlines"],
  "flightNumbers": ["B6411", "F92263"],
  "isSelfTransfer": true,
  "connectionRiskLevel": "LOW",
  "resultsAvailable": 154
}
```

### Pricing

The Actor uses pay-per-event billing. The two live charge events are:

| Event | Condition | Free plan price |
|---|---|---:|
| `apify-default-dataset-item` | One scraped result with all fields is written to the dataset. | $0.001 per event on Free |
| `apify-actor-start` | The Actor starts running. | $0.00005 per event on Free |

A run writing 1,000 flight rows creates 1,000 `apify-default-dataset-item` events: **1,000 results = $1.00 on Free**. The same dataset-item charge means **10,000 results = $10.00 on Free**. A search with no flights writes no dataset-item event; the separate Actor Start event can still apply when the Actor starts.

The Apify Free plan includes **$5 of monthly platform usage credit**.

Only the events above are charged. This Actor does not use Pay per event + usage, so compute, proxy traffic, and storage are not billed separately.

### How to use

1. **Open** the Actor in your Apify account.
2. **Enter** one or more `origins` and `destinations` as airport codes, city codes, or place names.
3. **Choose** `oneway` or `return`, then provide future `departureDates`; return trips also need `returnDates` or `nightsMin` / `nightsMax`.
4. **Set** cabin, currency, market, locale, passenger counts, flexibility, and any route, airline, stop, duration, or fare filters.
5. **Start** the run and inspect one dataset row per saved itinerary, including fare, connection profile, details, and `bookingUrl`.
6. **Repeat** the run through Apify Schedules; daily is a suitable starting point for fare history.

Use this input as a starting example:

```json
{
  "origins": ["JFK"], "destinations": ["LAX"],
  "tripType": "oneway", "departureDates": ["2027-01-15"],
  "cabinClass": "ECONOMY", "currency": "USD", "market": "US", "locale": "en",
  "maxResults": 50, "maxResultsPerSearch": 50, "sortBy": "price",
  "excludeSelfTransferFares": false
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `origins` (array, required) | Departure airports, city codes, or names; multiple values compare departure points. | `JFK` |
| `destinations` (array, required) | Arrival airports, city codes, or names. | `LAX` |
| `tripType` (string) | Selects `oneway` or `return`. | `oneway` |
| `departureDates` (array) | Future `YYYY-MM-DD` dates; each is searched separately. Empty uses 30 days from today. | 30 days from today |
| `returnDates` (array) | Return dates paired with departure dates for return trips. | Not set |
| `nightsMin` / `nightsMax` (integer) | Selects a return date within a trip-length range; each can be 0 to 60. | Not set |
| `dateFlexibilityDays` (integer) | Widens each date by 0 to 7 extra days. | `0` |
| `adults` / `children` / `infants` (integer) | Priced party: adults 1 to 9, children 0 to 8, infants 0 to 8 and no more than adults. | `1` / `0` / `0` |
| `cabinClass` (string) | Selects `ECONOMY`, `PREMIUM_ECONOMY`, `BUSINESS`, or `FIRST_CLASS`. | `ECONOMY` |
| `currency` (string) | Fare currency; 37 currencies are supported, including `USD`, `EUR`, `GBP`, and `JPY`. | `USD` |
| `market` (string) | Search market, such as `US`, `GB`, `DE`, or `CA`. | `US` |
| `locale` (string) | Language for translated airline and airport names, such as `en`, `de`, `fr`, or `ja`. | `en` |
| `maxResults` (integer) | Maximum flights saved across all searches; accepted range 1 to 100,000. | `50` |
| `maxResultsPerSearch` (integer) | Maximum itineraries per route and date; accepted range 1 to 1,000. | `50` |
| `sortBy` (string) | Orders by `price`, `duration`, `quality`, `departure`, or `arrival`. | `price` |
| `maxStops` (integer) | Limits stops from 0 through 3; `0` means non-stop only. | Not set |
| `maxDurationHours` (integer) | Drops trips longer than 1 to 72 hours. | Not set |
| `maxPrice` (integer) | Keeps fares at or below the selected amount in the selected currency. | Not set |
| `includeAirlines` / `excludeAirlines` (array) | Restricts or excludes airlines by two-character codes. | Not set |
| `excludeSelfTransferFares` (boolean) | When `true`, keeps only trips sold as one ticket. | `false` |
| `includeGroundTransport` (boolean) | When `true`, allows train and bus legs. | `false` |
| `proxyConfiguration` (object) | Configures Apify Proxy; it can be switched off for a direct connection. | Apify residential proxy |

### Limits and edge cases

| Condition | What the buyer sees | What to do |
|---|---|---|
| An origin or destination is missing | The Actor fails before searching. | Provide at least one value in each array. |
| A date is invalid or in the past | It is skipped with a log warning; if no departure date remains, 30 days from today is used. | Use future `YYYY-MM-DD` dates. |
| A return date comes before departure | The pair is skipped and a warning is logged. | Supply a return date on or after departure. |
| A return search has neither `returnDates` nor trip length | Setup reports the missing input and the run fails. | Add return dates or `nightsMin` / `nightsMax`. |
| A place name cannot be resolved | The search is logged as failed and no airport is guessed. | Use a code or more specific place name. |
| Origin and destination are the same | The search is skipped. | Check the route values. |
| Kiwi.com returns no itineraries | The search logs that no flights were found and writes no rows. | Check dates, cabin, filters, market, and route. |
| A search fails after others succeed | The failed search is logged and remaining searches continue. | Review the search error and retry valid inputs. |
| A run is aborted, times out, or fails after rows were saved | Saved rows remain; incomplete searches leave no rows. | Inspect the dataset and run status. |
| The output limit is reached | Saving stops at `maxResults`, from 1 to 100,000 overall; each search observes `maxResultsPerSearch`, from 1 to 1,000. | Increase limits only when needed. |
| A fare or availability changes after collection | The dataset is a snapshot; nothing is booked, held, or reserved. | Confirm the fare through the supplied booking link. |
| A connection has a risk label | It summarizes published facts, not a prediction. | Review `riskFlags`, `layovers`, and connection fields. |

### FAQ

#### How much does it cost to scrape Kiwi.com flight search results?

The Free-plan dataset-item charge is $0.001 per result and the Actor Start charge is $0.00005 per event. **1,000 results = $1.00 on Free**, before the Actor Start event.

#### Why did my search return no rows?

Kiwi.com may publish no itinerary for the route and date, or filters may remove the fares. Invalid or past dates are skipped, and failed place lookups appear in the log. Check the route, future dates, cabin, fare, airline, and stop filters.

#### Why isn't my search working?

Confirm that `origins` and `destinations` are present, return searches include return dates or a trip length, and place names resolve to the intended airports. The default input uses an Apify residential proxy; `proxyConfiguration` can instead connect directly.

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

The Actor extracts public data from Kiwi.com’s web search interface. Kiwi.com’s source terms and applicable law depend on the buyer’s use case, so review those terms and laws before using the output.

# Actor input Schema

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

Where the trip starts. Use airport codes (JFK, LHR), city-wide codes (NYC, LON) or plain names ("London Heathrow", "Milan"). A name that names a whole city searches every airport of it; a name two airports answer equally well ("Houston", "Frankfurt") is refused with both codes named rather than one being chosen for you. Add several to compare departure points in one run.

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

Where the trip ends. Use airport codes (LAX, CDG), city-wide codes (PAR, MIL) or plain names ("Los Angeles", "Rome"). Same rule as the departure places: a city name searches the whole city, and a name two airports answer equally well is refused with both codes named.

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

One-way, or a return trip. A return trip needs either return dates or a trip length in nights.

## `departureDates` (type: `array`):

Outbound dates in YYYY-MM-DD form. Every date is searched separately. Dates in the past are skipped. Leave empty to search 30 days from today.

## `returnDates` (type: `array`):

Return dates in YYYY-MM-DD form, for return trips only. Each one is paired with each departure date; pairs that come back before they leave are skipped.

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

An alternative to fixed return dates: let the search pick the return date, as long as the trip lasts at least this many nights.

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

The upper end of the trip length when you let the search pick the return date.

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

Widen each date into a window of this many extra days, to catch a cheaper departure a day or two either way. 0 means the exact dates only.

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

Adult travellers. Fares are for the whole party, exactly as the source prices them.

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

Children aged 2-11 travelling in their own seat.

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

Infants under 2 travelling on an adult's lap. Cannot exceed the number of adults.

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

The cabin to price. Higher cabins return far fewer options on most routes.

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

The currency to price fares in. Every row also carries the currency it was actually served in, so you always know what a number means.

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

The market the search is prepared for. Fares and availability can differ between markets, and every row records which one it came from.

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

Language for airline and airport names where the source translates them.

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

Maximum number of flights to save in total, across all searches.

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

How many itineraries to keep for each route and date, up to 1,000. The total is still capped by Max results.

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

Which itineraries come back first when a search returns more than you asked for.

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

Leave empty for any number of stops. Set 0 for non-stop only, 1 for at most one connection.

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

Drop itineraries longer than this door-to-door. Leave empty for no limit.

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

Only keep fares at or below this amount, in the currency you selected. Leave empty for no limit.

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

Two-character airline codes to restrict the search to, for example BA or LH. Leave empty for all airlines.

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

Two-character airline codes to leave out of the results.

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

Leave off to see everything the source sells, including cheaper trips stitched together from separate tickets. Turn on to keep only trips booked as one ticket, where the airline is responsible for missed connections.

## `includeGroundTransport` (type: `boolean`):

Some cheap trips include a train or coach leg between airports. Off by default, so results are flights only.

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

Optional. Apify Proxy settings. Turn the proxy off to connect directly.

## Actor input object example

```json
{
  "origins": [
    "JFK",
    "EWR"
  ],
  "destinations": [
    "LAX"
  ],
  "tripType": "oneway",
  "departureDates": [
    "2026-11-25",
    "2026-11-26"
  ],
  "returnDates": [
    "2026-11-29"
  ],
  "dateFlexibilityDays": 0,
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "ECONOMY",
  "currency": "USD",
  "market": "US",
  "locale": "en",
  "maxResults": 50,
  "maxResultsPerSearch": 50,
  "sortBy": "price",
  "includeAirlines": [
    "BA",
    "LH"
  ],
  "excludeAirlines": [
    "FR"
  ],
  "excludeSelfTransferFares": false,
  "includeGroundTransport": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with one row per itinerary.

# 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 = {
    "origins": [
        "JFK"
    ],
    "destinations": [
        "LAX"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/kiwi-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 = {
    "origins": ["JFK"],
    "destinations": ["LAX"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/kiwi-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 '{
  "origins": [
    "JFK"
  ],
  "destinations": [
    "LAX"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/kiwi-scraper --silent --output-dataset

```

## MCP server setup

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