# Skyscanner Flight Scraper — Cheap Airfares & Multi-City (`madeingermany/skyscanner-scraper`) Actor

Extract detailed flight itineraries from Skyscanner: prices, airlines, schedules, and routes. Search with a flights link or parameters.

- **URL**: https://apify.com/madeingermany/skyscanner-scraper.md
- **Developed by:** [Made In Germany](https://apify.com/madeingermany) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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

## Skyscanner Flight Scraper — Cheap Airfares & Multi-City

High-performance, pure HTTP Apify Actor designed to extract real-time flight itineraries, airfares, carrier schedules, routes, and booking deals from **Skyscanner.com** (`memo23/skyscanner-scraper` alternative).

***

### ✈️ What It Does

- **Extract Real-Time Fares**: Pulls the lowest fares across airlines and online travel agencies (OTAs).
- **Comprehensive Route Matrix**: Scrapes one-way, return/round-trip flights, and multi-city combinations.
- **Flight & Airline Details**: Captures departure and arrival timestamps, flight durations, stop counts, layover details, operating airlines, and flight numbers.
- **OTA Deals & Booking Quotes**: Extracts individual seller quotes (Expedia, Trip.com, official airlines, etc.) with ratings and deep links.
- **Pure HTTP Fast-Path**: Bypasses heavy headless browser overhead using Crawlee and `got-scraping` with TLS Chrome fingerprinting and HTTP/2 framing.

***

### 💰 Pricing (Pay-Per-Event)

This actor operates on a pay-as-you-go **Pay-Per-Event (PPE)** pricing model. You only pay for what you extract:

| Event Name | Purpose | Price (USD) | Description |
|---|---|---|---|
| **`apify-actor-start`** | Actor Start | `$0.007` | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| **`apify-default-dataset-item`** | result | `$0.001` | Single result in the default dataset. |
| **`additional-data`** | Additional data | `$0.001` | Charged for additional data / booking quotes. |

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `startUrls` | Array | No | `[{"url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/"}]` | Direct Skyscanner search URLs to scrape. |
| `searchQuery` | String | No | `"London to New York 2026-10-15"` | Free-text search string (e.g. `London to New York 2026-10-15`). |
| `departureAirport`| String | No | `LHR` | 3-letter IATA code of departure airport. |
| `arrivalAirport` | String | No | `JFK` | 3-letter IATA code of destination airport. |
| `departureDate` | String | No | `2026-10-15` | Date of departure (`YYYY-MM-DD` or `YYMMDD`). |
| `returnDate` | String | No | `null` | Return date for round-trip flights. |
| `cabinClass` | String | No | `economy` | Cabin tier: `economy`, `premium_economy`, `business`, or `first`. |
| `adults` | Integer | No | `1` | Number of adult passengers. |
| `currency` | String | No | `USD` | ISO 4217 currency code (e.g. `USD`, `GBP`, `EUR`). |
| `market` | String | No | `US` | Market country code (e.g. `US`, `GB`, `DE`). |
| `maxItems` | Integer | No | `50` | Maximum number of flight itineraries to save. |
| `proxy` | Object | No | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Apify proxy configuration. |

#### Sample Input JSON

```json
{
  "startUrls": [
    {
      "url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/"
    }
  ],
  "cabinClass": "economy",
  "adults": 1,
  "currency": "USD",
  "maxItems": 10,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### 📤 Output Dataset Format

Each item pushed to the default dataset contains full flight metadata:

```json
{
  "id": "skyscanner-lhr-jfk-20261015-1",
  "price": 418,
  "priceFormatted": "USD 418",
  "currency": "USD",
  "outboundOrigin": "LHR",
  "outboundDestination": "JFK",
  "carriers": ["British Airways"],
  "departureTime": "2026-10-15T08:25:00Z",
  "arrivalTime": "2026-10-15T11:15:00Z",
  "duration": "7h 50m",
  "durationMinutes": 470,
  "stops": 0,
  "isDirect": true,
  "cabinClass": "economy",
  "tripType": "one_way",
  "deepLink": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/",
  "bookingDeals": [
    {
      "agentName": "British Airways",
      "price": 418,
      "priceFormatted": "USD 418",
      "rating": 4.5,
      "bookingUrl": "https://www.skyscanner.net/transport/flights/lhr/jfk/"
    },
    {
      "agentName": "Trip.com",
      "price": 410,
      "priceFormatted": "USD 410",
      "rating": 4.2,
      "bookingUrl": "https://www.skyscanner.net/transport/flights/lhr/jfk/"
    }
  ],
  "tags": ["Cheapest", "Best"],
  "scrapedAt": "2026-09-28T03:30:00.000Z"
}
```

***

### ⚡ Why Use This Scraper?

1. **Zero Browser Bloat**: Uses pure HTTP requests via `got-scraping` with TLS fingerprint impersonation. Runs with minimal memory and maximum speed.
2. **Transparent Pay-Per-Event (PPE)**: Never pay for idle execution. Only pay $0.001 per extracted result!
3. **Multi-Route & Flexible Input**: Accepts raw Skyscanner URLs, IATA codes, or natural language prompts.
4. **Resilient Data Extraction**: Built-in retry mechanisms and exit IP rotation to defeat anti-bot blocking.

# Actor input Schema

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

One or more Skyscanner search URLs (e.g. https://www.skyscanner.net/transport/flights/lhr/jfk/261015/).

## `searchQuery` (type: `string`):

Free-text search query if not providing a direct URL, e.g. 'London to New York 2026-10-15'.

## `departureAirport` (type: `string`):

Origin IATA code, e.g. LHR. Used when not provided in startUrls.

## `arrivalAirport` (type: `string`):

Destination IATA code, e.g. JFK. Used when not provided in startUrls.

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

Date of flight departure, e.g. 2026-10-15 or 261015.

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

Return date for round-trip flights, e.g. 2026-10-22 or 261022.

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

Flight cabin class.

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

Number of adult passengers (12+).

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

ISO 4217 Currency code (e.g. USD, GBP, EUR).

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

ISO country code for the market (e.g. US, GB, DE).

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

Maximum number of flight itineraries to output.

## `proxy` (type: `object`):

Apify Proxy configuration. Residential proxies are recommended for Skyscanner.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/"
    }
  ],
  "searchQuery": "London to New York 2026-10-15",
  "cabinClass": "economy",
  "adults": 1,
  "currency": "USD",
  "market": "US",
  "maxItems": 50,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/"
        }
    ],
    "searchQuery": "London to New York 2026-10-15"
};

// Run the Actor and wait for it to finish
const run = await client.actor("madeingermany/skyscanner-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 = {
    "startUrls": [{ "url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/" }],
    "searchQuery": "London to New York 2026-10-15",
}

# Run the Actor and wait for it to finish
run = client.actor("madeingermany/skyscanner-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 '{
  "startUrls": [
    {
      "url": "https://www.skyscanner.net/transport/flights/lhr/jfk/261015/"
    }
  ],
  "searchQuery": "London to New York 2026-10-15"
}' |
apify call madeingermany/skyscanner-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,madeingermany/skyscanner-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/2xylct6tFAbq4NXHC/builds/OnQDg1ECeIOU3pQAe/openapi.json
