# Kiwi.com Flights Scraper — Fares, Price Calendar & Routes (`yugenox/kiwi-flights-scraper`) Actor

Scrape Kiwi.com flights: one-way and return itineraries with price, times, stops, layovers, airlines, flight numbers, bags and booking links; a cheapest-price calendar per day; and the cheapest destinations from any airport. Any currency and cabin. No login.

- **URL**: https://apify.com/yugenox/kiwi-flights-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (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 $1.50 / 1,000 results

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 Flights Scraper: fares, price calendar and cheapest destinations

Scrape **Kiwi.com** flight search results. Get every itinerary Kiwi.com shows for a route and day, with the **price, departure and arrival times (local and UTC), stops, layovers, airlines, flight numbers, operating airline, cabin, included bags, bag fees, seats left and a booking link**. One-way or return, any currency, any cabin, up to 9 passengers. Also get a **cheapest-price calendar** (the lowest fare for every day of a date range) and **"anywhere" deals** (the cheapest fare from your airport to every destination city). No login, no cookies, no account.

### What you get

| | |
|---|---|
| **Route** | From / to airport code, airport name, city and country, for each flight and for the whole trip |
| **Times** | Departure and arrival, local to the airport and in UTC; outbound, return and total duration in minutes |
| **Price** | Total price for all passengers in your currency, the same price in EUR, Kiwi.com's display price; cheapest / fastest of the search |
| **Flights** | Every flight: airline, flight number, operating airline (codeshares), cabin, duration |
| **Stops** | Number of stops, each layover's airport, length, airport change and baggage recheck |
| **Fare type** | Separate tickets (self-transfer), hidden-city and throwaway fares are flagged |
| **Bags** | Checked bags, cabin bags and personal items included; price of a checked bag per passenger |
| **Booking** | Seats left (when shown), who sells it, a Kiwi.com booking link |
| **Price calendar** | Cheapest one-way fare per day with Kiwi.com's CHEAP / AVERAGE / EXPENSIVE rating |
| **Anywhere** | Cheapest fare to every destination city (or every city in a country), with the date |

### How to use it

1. Pick **What to get**: Flights, Price calendar or Anywhere.
2. Enter **From** and **To**: airport codes (`YYZ`, `JFK`), city codes (`LON`, `NYC`) or city names (`Toronto`, `London`). Several of each are searched as every combination.
3. Set the **Departure date** (a date, or a relative date such as `30 days`, which keeps scheduled runs current). Add **Departure date to** to search a range of days, and **Return date** or **Nights** for return trips.
4. Choose passengers, cabin, currency and filters, set **Max results** and run.

#### Input examples

The 20 cheapest flights from Toronto Pearson to London (all London airports), 30 days from today:

```json
{
  "origins": ["YYZ"],
  "destinations": ["LON"],
  "maxItems": 20
}
```

Return trips New York → Paris for every departure day in the first week of March, 7 nights, 2 adults, direct only, in euros:

```json
{
  "origins": ["NYC"],
  "destinations": ["PAR"],
  "departureDate": "2027-03-01",
  "departureDateTo": "2027-03-07",
  "nights": 7,
  "adults": 2,
  "maxStops": 0,
  "currency": "EUR",
  "maxItems": 0
}
```

The cheapest one-way fare for every day of the next 3 months, Toronto → Lisbon:

```json
{
  "mode": "calendar",
  "origins": ["Toronto"],
  "destinations": ["LIS"],
  "departureDate": "1 day",
  "departureDateTo": "90 days"
}
```

Where can I fly from Toronto for the least money in mid-December? (Leave **To** empty, or give a country code such as `PT` for every city in Portugal.)

```json
{
  "mode": "explore",
  "origins": ["YYZ"],
  "departureDate": "2026-12-10",
  "departureDateTo": "2026-12-16",
  "maxItems": 50
}
```

### Output example

One flight row (trimmed: the booking link and id are shortened):

```json
{
  "type": "flight",
  "searchFrom": "YYZ",
  "searchTo": "LON",
  "tripType": "one-way",
  "origin": "YYZ",
  "originName": "Toronto Pearson International",
  "originCity": "Toronto",
  "originCountry": "CA",
  "destination": "LGW",
  "destinationName": "Gatwick",
  "destinationCity": "London",
  "destinationCountry": "GB",
  "departureDate": "2026-12-01",
  "departureTime": "2026-12-01T21:35:00",
  "departureTimeUtc": "2026-12-02T02:35:00Z",
  "arrivalTime": "2026-12-02T09:45:00",
  "arrivalTimeUtc": "2026-12-02T09:45:00Z",
  "durationMinutes": 430,
  "stops": 0,
  "layovers": [],
  "totalDurationMinutes": 430,
  "price": 356,
  "currency": "USD",
  "formattedPrice": "$356",
  "priceEur": 317.87,
  "carriers": ["Porter Airlines"],
  "carrierCodes": ["PD"],
  "flightNumbers": ["PD7122"],
  "cabinClasses": ["ECONOMY"],
  "segments": [
    {
      "direction": "outbound",
      "from": "YYZ",
      "fromName": "Toronto Pearson International",
      "to": "LGW",
      "toName": "Gatwick",
      "departureTime": "2026-12-01T21:35:00",
      "arrivalTime": "2026-12-02T09:45:00",
      "durationMinutes": 430,
      "carrier": "Porter Airlines",
      "carrierCode": "PD",
      "flightNumber": "PD7122",
      "operatingCarrier": "Air Transat",
      "operatingCarrierCode": "TS",
      "cabinClass": "ECONOMY",
      "transportType": "FLIGHT"
    }
  ],
  "tickets": 1,
  "selfTransfer": false,
  "hiddenCity": false,
  "throwawayTicket": false,
  "seatsLeft": 9,
  "includedCheckedBags": 0,
  "includedCabinBags": 1,
  "includedPersonalItems": 1,
  "checkedBagFee": 100.8,
  "provider": "Kiwi.com",
  "bookingUrl": "https://www.kiwi.com/en/booking/?direct=true&locale=en&currency=usd&passengers=1-0-0&token=…",
  "isCheapest": false,
  "isFastest": true,
  "cabinClass": "ECONOMY",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "itineraryId": "ItineraryOneWay:eyJwcm92aWRlcnMiOi…",
  "position": 5,
  "scrapedAt": "2026-11-01T20:51:07.789Z"
}
```

A price-calendar row:

```json
{ "type": "calendar-day", "searchFrom": "Toronto", "searchTo": "LHR", "origin": "YTO", "destination": "LHR", "destinationName": "Heathrow", "departureDate": "2026-12-01", "price": 365, "currency": "USD", "priceRating": "CHEAP" }
```

An anywhere row:

```json
{ "type": "anywhere-deal", "searchFrom": "YYZ", "searchTo": "anywhere", "origin": "YYZ", "destination": "YYC", "destinationCity": "Calgary", "destinationCountry": "CA", "departureDate": "2026-12-14", "departureTime": "2026-12-14T19:00:00", "price": 118, "currency": "USD" }
```

Every row has the same columns (fields that don't apply to a row type are empty), so CSV and Excel exports line up.

### Pricing

Pay per result:

- **$1.50 per 1,000 rows** ($0.0015 per flight, calendar day or anywhere destination),
- **$0.30 per 1,000 searches** ($0.0003 per route and day, price-calendar window or anywhere search Kiwi.com answered),
- **$0.0025 per run** (Actor start).

The 20 cheapest flights for one route and day cost about **$0.03**. A whole month of daily searches for one route (31 searches, up to ~1,500 flights) costs about $2.26; the same month as a price calendar (31 rows) costs about $0.05. Results left out by your filters, duplicates, failed searches and anything over **Max results** are never charged.

### Tips

- **Max results** is shared fairly between your searches (routes × days), so a 7-day range with Max results 70 gives the 10 best of each day in your sort order. Set it to `0` for everything (Kiwi.com shows up to ~50 flights per route and day).
- City codes (`LON`, `NYC`, `PAR`, `TYO`) cover all of a city's airports; an airport code covers only that airport.
- Use relative dates (`30 days`, `2 weeks`) for scheduled runs, so a daily fare tracker always looks the same distance ahead.
- For fare monitoring, the **Price calendar** is the cheapest way to watch a route: one search returns up to 92 days. Its days always come in order from the first date: when Max results is smaller than the number of days, the range is shortened (the status message says so), never split into gaps.
- Turn off **Include self-transfer and hidden-city fares** if you only want classic single-ticket itineraries.
- Prices are live search results and can change between the search and booking; booking links are valid for a limited time.

### Use cases

- **Fare alerts and price tracking**: daily price calendars for the routes your customers follow.
- **Travel agencies and deal newsletters**: find the cheapest destinations from a home airport and the cheapest days to fly.
- **Market and route research**: which airlines fly a route, how many stops, codeshares, typical durations and prices by day.
- **Travel apps and websites**: structured, ready-to-use flight options with booking links.

### FAQ

**Do I need a Kiwi.com account or an API key?** No. The scraper reads the same public search results any visitor gets on Kiwi.com. It never logs in, never books and never touches an account.

**Why do I get about 50 flights per day?** That is what Kiwi.com shows for one route and departure day. Search a range of days, more airports or more routes to get more rows.

**Which proxy should I use?** Keep the default (Apify Proxy, datacenter). It comes with every Apify plan, including the free one.

**What if Kiwi.com doesn't know a place I typed?** The run skips it and says so in the status message. Use an airport code (`YYZ`), a city code (`LON`) or a city name in English.

**Is it legal to scrape Kiwi.com?** This Actor only collects publicly available data: flight search results that anyone can see on Kiwi.com without an account, such as routes, schedules, airlines and prices. Collecting publicly available data is generally legal, but you're responsible for how you use it, including following Kiwi.com's terms. If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?** No. Flight results describe flights and prices, not people. The scraper never logs in, never sees bookings, accounts or passenger details, and it follows the robots.txt rules of the server it reads from.

*This Actor is not affiliated with, endorsed by or sponsored by Kiwi.com.*

# Actor input Schema

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

Flights: every itinerary Kiwi.com shows for each route and departure day (up to ~50 per day) — price, times, stops, layovers, airlines, flight numbers, bags and a booking link. Price calendar: the cheapest one-way price for every day of a date range, with Kiwi.com's cheap / average / expensive rating. Anywhere: the cheapest fare from your origin to every destination city (leave Destinations empty, or give countries/cities to narrow it).

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

Where you fly from: airport codes (YYZ, JFK), city codes (LON, NYC) or city names (Toronto, London). Each origin is searched against each destination. Up to 10.

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

Where you fly to: airport codes, city codes or city names. Leave empty for "anywhere" (the cheapest fare to every destination city); in Anywhere mode a country code (PT, GB) lists every city in that country. Up to 10.

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

The day you fly out (YYYY-MM-DD) or a relative date like "30 days" (relative dates keep a scheduled run current). Empty = 30 days from today. In Price calendar and Anywhere mode this is the first day of the range.

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

Flights: also search every day up to this date (max 31 days, one search per day). Price calendar: the end of the range (default 30 days, max 365). Anywhere: the cheapest fare anywhere in this window (max 92 days).

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

Flights only: set it to get return trips (both directions, one price). With a range of departure days, every search keeps the same number of nights.

## `nights` (type: `integer`):

Flights only: return this many nights after each departure day (0–60). Ignored when Return date is set.

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

Passengers aged 12+ (1–9). Prices are for all passengers together.

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

Passengers aged 2–11.

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

Passengers under 2 (at most one per adult).

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

Cabin class to search.

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

0–2. When set, prices include that many checked bags per adult and child (as Kiwi.com prices them).

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

3-letter currency code for all prices, e.g. USD, EUR, GBP, CAD, AUD, INR.

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

2-letter country code of the Kiwi.com market to price for, e.g. us, gb, ca, de. Fares can differ slightly between markets.

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

Which flights come first (and which are kept when Max results cuts a day short): cheapest, Kiwi.com's "best" mix of price and duration, fastest or earliest departure.

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

0 = direct flights only, 1 = up to one stop… Empty = any number of stops.

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

Only keep results at or under this total price (in your currency). Results over it are not saved and not charged.

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

2-letter airline codes (e.g. AC, WS, BA). Flights mode: keep itineraries where every flight is sold by one of them.

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

2-letter airline codes to leave out (flights mode).

## `includeSelfTransfer` (type: `boolean`):

Kiwi.com's cheaper combinations of separate tickets (self-transfer) and hidden-city / throwaway fares. Rows say which ones they are (selfTransfer, hiddenCity, throwawayTicket). Turn off for classic single-ticket itineraries only.

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

Maximum rows for the whole run, shared fairly between your searches (routes × days). Kiwi.com shows up to ~50 flights per route and day. Price calendar: each route keeps consecutive days from the first date (the range is shortened to fit). 0 = everything.

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

Apify Proxy (datacenter) is the default and comes with every Apify plan.

## `_noResidential` (type: `boolean`):

Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group.

## Actor input object example

```json
{
  "mode": "flights",
  "origins": [
    "YYZ"
  ],
  "destinations": [
    "LON"
  ],
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "economy",
  "checkedBags": 0,
  "currency": "USD",
  "market": "us",
  "sortBy": "price",
  "includeSelfTransfer": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "_noResidential": false
}
```

# Actor output Schema

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

All scraped rows.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, searches, counts, requests and proxy use.

# 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": [
        "YYZ"
    ],
    "destinations": [
        "LON"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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 = {
    "origins": ["YYZ"],
    "destinations": ["LON"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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