# Skyscanner Flight Search Scraper (`good-apis/skyscanner-flights`) Actor

- **URL**: https://apify.com/good-apis/skyscanner-flights.md
- **Developed by:** [Danny](https://apify.com/good-apis) (community)
- **Categories:** Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 flight 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Skyscanner Flight Search Scraper

Search **Skyscanner** for real, live flight prices on any route and get back a clean list of
itineraries — cheapest first. Give it a from/to and a date; get price, airline(s), stops, departure
and arrival times, duration and flight numbers for every option.

Pay only for the itineraries you get back (**pay-per-result**).

### What you give it

| Field | Meaning |
|---|---|
| **From (origin)** | Airport code (`LHR`, `JFK`) or city code (`LOND`, `NYCA`). |
| **To (destination)** | Airport or city code. |
| **Departure date** | `YYYY-MM-DD` (must be in the future). Blank → about 4 weeks out. |
| **Return date** | `YYYY-MM-DD` for a round trip. Blank → one-way. |
| **Adults** | 1–8 passengers. |
| **Cabin class** | Economy, Premium economy, Business or First. |
| **Market** | Country that sets the currency (US→USD, UK→GBP, DE/FR/ES/IT→EUR, CA→CAD, AU→AUD, IN→INR, SG→SGD). |
| **Max results** | How many itineraries to return, cheapest first (1–200). |

### What you get (per itinerary)

| Field | Meaning |
|---|---|
| `price` | Numeric price for all passengers. |
| `price_formatted` | Price as shown, e.g. `$561`. |
| `currency` | ISO currency of the price. |
| `airlines` | Marketing airline(s) across the whole trip. |
| `stops` | Number of stops (0 = direct). |
| `outbound` | Outbound leg: origin/destination (code, name, city, country), `departure`, `arrival`, `duration_minutes`, `stops`, `airlines`, `flight_numbers`. |
| `return` | Return leg (same shape) on a round-trip search, else `null`. |
| `total_duration_minutes` | Total travel time across legs. |
| `itinerary_id` | Skyscanner itinerary identifier. |
| `pricing_option_id` | Skyscanner pricing-option identifier. |
| `booking_url` | Skyscanner results URL for the search. |

#### Example output

```json
{
  "price": 561.0,
  "price_formatted": "$561",
  "currency": "USD",
  "airlines": ["Avianca", "Vueling Airlines"],
  "stops": 2,
  "outbound": {
    "origin": {"code": "LHR", "name": "London Heathrow", "city": "London", "country": "United Kingdom"},
    "destination": {"code": "JFK", "name": "New York John F. Kennedy", "city": "New York", "country": "United States"},
    "departure": "2026-08-15T19:45:00", "arrival": "2026-08-16T09:15:00",
    "duration_minutes": 1980, "stops": 2,
    "airlines": ["Avianca", "Vueling Airlines"], "flight_numbers": ["VY8459", "AV55", "AV244"]
  },
  "return": null,
  "total_duration_minutes": 1980,
  "itinerary_id": "13554-2608151945--32090-2-…",
  "pricing_option_id": "…",
  "booking_url": "https://www.skyscanner.net/transport/flights/lhr/jfk/260815/?adultsv2=1&cabinclass=economy&rtn=0"
}
```

### Notes

- Prices are **live** — Skyscanner re-prices on every search, so the same route can change between runs.
- Currency follows the **Market** you pick.
- A route with genuinely no flights returns an empty result (a real answer, not an error).

# Actor input Schema

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

Where you're flying from — a Skyscanner place code: an airport code like 'LHR' or 'JFK', or a city code like 'LOND' (all London airports) or 'NYCA' (all New York airports).

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

Where you're flying to — an airport code like 'JFK' or a city code like 'NYCA'.

## `depart_date` (type: `string`):

Outbound date in YYYY-MM-DD form (e.g. 2026-08-15). Must be in the future. Leave blank to default to about four weeks from today.

## `return_date` (type: `string`):

Return date in YYYY-MM-DD form for a round trip. Leave blank for a one-way search.

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

Number of adult passengers (1 to 8).

## `cabin_class` (type: `string`):

Travel cabin to price.

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

Country market to price in — this sets the currency (US -> USD, UK -> GBP, DE/FR/ES/IT -> EUR, CA -> CAD, AU -> AUD, IN -> INR, SG -> SGD).

## `max_results` (type: `integer`):

How many flight itineraries to return, cheapest first (1 to 200).

## Actor input object example

```json
{
  "origin": "LHR",
  "destination": "JFK",
  "depart_date": "",
  "return_date": "",
  "adults": 1,
  "cabin_class": "economy",
  "market": "US",
  "max_results": 30
}
```

# Actor output Schema

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

All scraped items in the default dataset.

# 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 = {
    "origin": "LHR",
    "destination": "JFK",
    "max_results": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("good-apis/skyscanner-flights").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 = {
    "origin": "LHR",
    "destination": "JFK",
    "max_results": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("good-apis/skyscanner-flights").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "origin": "LHR",
  "destination": "JFK",
  "max_results": 30
}' |
apify call good-apis/skyscanner-flights --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=good-apis/skyscanner-flights",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IVLOa5mu7FNKCLBGI/builds/KdI9mvvZDb79eZduD/openapi.json
