# Skyscanner Scraper - Flights, Price Calendar & Everywhere (`topapi/skyscanner-scraper`) Actor

Scrape Skyscanner flights: every itinerary with price, all booking sites with prices and links, legs, segments, layovers, CO2. One-way, round trip, multi-city, flexible dates, 12-month price calendar, Everywhere deals, any market and currency, monitor mode. $0.90 per 1,000 itineraries.

- **URL**: https://apify.com/topapi/skyscanner-scraper.md
- **Developed by:** [Top Api](https://apify.com/topapi) (community)
- **Categories:** Travel, E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 flight itineraries

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 Scraper - Flights, Price Calendar & Everywhere

Scrape **Skyscanner flight search results** the way a visitor sees them on skyscanner.net, and get every itinerary back as
structured data: the **price**, **every booking site** selling it (airline or agent, with its price, rating, review count
and booking link), **legs and segments** with flight numbers, marketing and operating carriers, times and durations,
**layovers**, **fare policy** (changes, cancellation, refunds), **self-transfer** flags, Skyscanner's own **score and
tags** and the **CO2 estimate**.

One-way, round trip and multi-city; several routes in one run; flexible dates (every day in a range); any market,
currency and language. Two more searches in the same actor: the **12-month price calendar** (the cheapest one-way fare
for every day) and **Everywhere** (the cheapest destinations from your airport, or the cheapest cities in a country).
**Monitor mode** delivers only itineraries that are new or re-priced since your last run.

No Skyscanner account, no API key, no browser.

### What a run returns

One dataset row per itinerary (or calendar day, or destination). Filled share measured on our runs of 2026-11-16
(1,120 itineraries from 7 routes, 357 calendar days, 99 Everywhere destinations):

| Group | Fields | Filled |
|---|---|---|
| Search | `search`, `searchId`, `tripType`, `origin`, `originName`, `destination`, `destinationName`, `departureDate`, `returnDate`, `cabinClass`, `adults`, `children`, `infants`, `market`, `currency`, `locale`, `searchUrl` | 100% (`returnDate` on round trips) |
| Price | `price` (total for all travellers), `priceFormatted`, `pricePerPerson`, `pricingOptionId`, `rank` | 100% |
| Booking sites | `cheapestAgent`, `cheapestAgentId`, `cheapestAgentIsAirline`, `cheapestAgentRating`, `bookingUrl`, `agentsCount`, `agents[]` (`id`, `name`, `isAirline`, `rating`, `reviewCount`, `price`, `updateStatus`, `bookingType`, `ticketCount`, `bookingUrl`) | 100% (6,190 agent offers, every field filled) |
| Flights | `airlines`, `airlineCodes`, `flightNumbers`, `stops`, `returnStops`, `totalStops`, `isDirect`, `durationMinutes`, `outboundDurationMinutes`, `returnDurationMinutes`, `departAt`, `arriveAt`, `returnDepartAt`, `returnArriveAt` | 100% (return fields on round trips) |
| Legs | `legs[]`: `origin` / `destination` (code, entityId, name, city, country), `departure`, `arrival`, `durationMinutes`, `stopCount`, `timeDeltaInDays`, `carriers` (code, name, logoUrl), `operationType`, `segments[]` (flightNumber, marketingCarrier, operatingCarrier, origin, destination, departure, arrival, durationMinutes), `layovers[]` (airport, airportName, durationMinutes, changeOfAirport) | 100% (2,215 segments, 1,095 layovers) |
| Ranking | `score`, `isBest`, `isCheapest`, `isFastest`, `tags` | 100%; `tags` 4% (Skyscanner tags only its top few: cheapest, shortest, second_cheapest...) |
| Fare policy | `changeAllowed`, `partiallyChangeable`, `cancellationAllowed`, `refundable`, `hasFlexibleOptions`, `isSelfTransfer`, `isProtectedSelfTransfer` | 100% |
| CO2 | `emissionsKg`, `typicalEmissionsKg`, `emissionsVsTypicalPercent`, `emissionsLevel`, `isEcoContender` | 98.5% |
| Search state | `resultsComplete` (every partner had answered), `totalFound`, `matchingFilters` | 100% |
| Monitor | `changeType` (new / priceDrop / priceRise), `previousPrice`, `priceChange`, `previousScrapedAt` | with monitor mode |

**Price calendar rows** (`type: "price-day"`): `date`, `weekday`, `price`, `currency`, `priceLevel` (low / medium / high, Skyscanner's
own banding), `priceLevelLabel`, `isCheapestDay`, `isCheapestInMonth`, `percentAboveCheapest`, `searchUrl` - 100% filled.

**Everywhere / country rows** (`type: "destination"`): `destinationName`, `destinationCode`, `destinationId`, `destinationType`
(city / country), `continent`, `price`, `priceFormatted`, `isDirect`, `directPrice` (89%), `directFlightsAvailable`,
`categories` (beach, great_food, art_and_culture, nightlife_and_entertainment, outdoor_adventures, underrated_destinations),
`isPopular`, `imageUrl`, `hotelPriceFormatted` (country searches, 97%), `rank`, `searchUrl`.

Four views: **Itineraries**, **Price calendar**, **Destinations** and **Searches with no rows**.

### Input

| Field | What it does | Default |
|---|---|---|
| `mode` | `flights`, `calendar` or `everywhere`. Everywhere is also chosen when `destination` is "Everywhere" or a country. | `flights` |
| `origin`, `destination` | An IATA airport or city code (`JFK`, `LHR`, `NYC`, `LON`), a name (`Paris Orly`), a Skyscanner place id; `destination` may be a country (`Italy`) or `Everywhere`. | - |
| `departDate`, `returnDate` | `YYYY-MM-DD` or `+N` days from today; Everywhere also takes a month (`YYYY-MM`). A date in the past moves forward by whole years (`dateAdjustedFrom` says so). | in 30 days, one-way |
| `departDateEnd` | Flexible dates: every departure day up to this date (62 at most), each its own search; a return date keeps the trip length. | - |
| `routes` | Batch: `"JFK-LAX"`, `"JFK-LAX 2027-01-20 2027-01-27"`, `"London to Paris"`, or `{"origin","destination","departDate","returnDate"}`, or `{"legs":[...]}`. Routes without dates use the form's dates. | - |
| `startUrls` | Skyscanner links: `/transport/flights/{from}/{to}/{yymmdd}/{yymmdd}/` or `/transport/flights-from/{from}/`; route, dates, passengers and cabin come from the link, the market from the site (skyscanner.net = UK, .com = US, .de, .fr...). | - |
| `multiCityLegs` | Legs after From -> To: `[{"origin":"CDG","destination":"FCO","date":"2027-02-01"}]`. | - |
| `adults`, `childAges`, `infants` | Passengers (children's ages 2-17; infants under 2 on a lap). | 1 adult |
| `cabinClass` | economy, premium_economy, business, first. | economy |
| `sortBy` | best (Skyscanner's own score), cheapest, fastest, departure. | best |
| `maxStops` | any, 0 (direct), 1, 2 - per leg. | any |
| `airlines`, `excludeAirlines` | Keep itineraries flown only by these carriers (codes or names) / drop any with these. | - |
| `maxPrice`, `maxDurationMinutes`, `excludeSelfTransfer` | Filters. | - |
| `maxResultsPerSearch` | Rows kept per search after filters and sorting. A route usually has 100-600 itineraries. | 100 |
| `maxItems` | Hard cap for the whole run; never more rows are delivered or charged. | no cap |
| `maxAgentsPerFlight` | Booking sites listed per itinerary, cheapest first. | 20 |
| `calendarEndDate` | Calendar mode: last day returned (the window starts at `departDate` or today). | 12 months |
| `market`, `currency`, `locale` | Where you book from (`US`, `UK`, `DE`, `IN`...), the currency and language. Empty currency / language = the market's own. | US, USD, en-US |
| `monitorMode`, `monitorName`, `monitorDeliver`, `resetMonitor` | Deliver only rows that are new or re-priced since the last run of the same name; `monitorDeliver: drops` = new rows and price drops only. | off |
| `includeSearchSummary` | One free row per flight search: total found, matching your filters, cheapest direct / 1-stop / 2+-stop fare, fastest time. | off |
| `flattenOutput` | Nested legs, segments and booking sites as dashed spreadsheet columns (`legs-0-segments-0-flightNumber`). | off |
| `maxPollSeconds` | How long each search may take to settle. | 40 |
| `maxConcurrency` | Searches at a time (capped by memory: 2 at 128 MB). | 2-8 |
| `proxyConfiguration` | Not needed. Your own proxy URLs are used as given. | the actor's own route |

The rivals' input names work too: `departureAirport` / `arrivalAirport` / `departureDate`, `skyscannerMarket` /
`skyscannerCurrency` / `skyscannerLocale`, `resultLimit`, `resultSort`, `filterNonStop` / `filterOneStop` /
`filterTwoPlusStops`, `multiCityLeg2Destination` / `multiCityLeg2Date`, `childrenAges`, `stops`, `sort`, `maxResults`,
`maxFlights`, `legs`, `children`, `cabin`, `directOnly`, `includeRunSummary`, `year` + `month`.

### How to use it

**Cheapest flights on one route**

```json
{ "origin": "LON", "destination": "NYC", "departDate": "2027-01-15", "sortBy": "cheapest", "maxResultsPerSearch": 50 }
```

**Round trip for a family, business class, direct only**

```json
{ "origin": "JFK", "destination": "LAX", "departDate": "+60", "returnDate": "+67", "adults": 2, "childAges": [7], "infants": 1,
  "cabinClass": "business", "maxStops": "0" }
```

**Many routes in one run**

```json
{ "routes": ["JFK-MIA", "LHR-DUB", "SIN-BKK 2027-02-10"], "departDate": "+30", "maxResultsPerSearch": 100 }
```

**Cheapest day to fly in the next two months**

```json
{ "mode": "calendar", "origin": "CDG", "destination": "NYC", "departDate": "+10", "calendarEndDate": "+70", "market": "FR" }
```

**Where can I fly cheaply from Manchester in March?**

```json
{ "origin": "MAN", "destination": "Everywhere", "departDate": "2027-03", "market": "UK" }
```

**Fare alerts on a schedule:** save an input with `"monitorMode": true` and a `monitorName`, then add an Apify schedule
(daily or hourly). Each run delivers only itineraries that are new or whose price moved, with `previousPrice` and
`priceChange`; a run where nothing changed delivers nothing and charges nothing. The same works from the API
(`POST /v2/acts/<actor>/runs`), from a webhook or from an AI agent through Apify's MCP server.

### Pricing

Pay per row, no start fee:

| Event | Price | When |
|---|---|---|
| `itinerary` | **$0.0009** ($0.90 per 1,000) | each flight itinerary delivered |
| `price-day` | **$0.001** ($1 per 1,000) | each calendar day delivered |
| `destination` | **$0.0009** ($0.90 per 1,000) | each Everywhere / country destination delivered |

Searches that find nothing, rows your filters drop and rows the monitor skips are never charged; they come back as free
rows with `billed: false` and the reason in `error`. `maxItems`, `maxResultsPerSearch` and the run's maximum charge are
honoured exactly. A full route (100 itineraries) costs $0.09; a 12-month calendar (~357 days) about $0.36.

### Good to know

- **Live prices.** Each search is run live on Skyscanner and read until every partner has answered (usually 5-35 s;
  `resultsComplete: true`). A run asking for only a few rows reads for a shorter time and delivers what Skyscanner has
  by then (`resultsComplete: false`; typically 300+ of the route's itineraries are already priced).
- **Prices are for all travellers together**; `pricePerPerson` divides by adults + children.
- **Booking links** are Skyscanner's own redirect to the booking site's checkout for that itinerary and price, the same
  link Skyscanner uses for "Select".
- **The calendar** is Skyscanner's own: the cheapest one-way economy fare for 1 adult per day, as shown on its calendar,
  with its low / medium / high banding.
- **Markets differ.** The market changes which fares and booking sites Skyscanner shows; run once per market to compare.
- **Speed.** 1,059-1,120 itineraries from 7 routes took 80-125 s at the default 128 MB; 5 runs at once all delivered.
- **Restarts are safe.** If Apify moves the run to another server, rows already delivered are neither delivered nor
  charged again (tested: 1,001 and 952 unique rows = charged after a reboot).
- **Not included:** car hire and hotels.

### Output example

A real row (the JFK-LAX search of 2026-11-16; the booking link shortened):

```json
{
  "type": "itinerary", "search": "JFK-LAX 2027-01-07", "tripType": "one-way",
  "origin": "JFK", "originName": "New York John F. Kennedy", "destination": "LAX", "destinationName": "Los Angeles International",
  "departureDate": "2027-01-07", "cabinClass": "economy", "adults": 1, "children": 0, "infants": 0,
  "market": "US", "currency": "USD", "locale": "en-US", "rank": 1,
  "itineraryId": "12712-2701070900--32385-0-13416-2701071226",
  "price": 178.4, "priceFormatted": "$179", "pricePerPerson": 178.4,
  "cheapestAgent": "Delta", "cheapestAgentIsAirline": true, "cheapestAgentRating": 4.92,
  "bookingUrl": "https://www.skyscanner.net/transport_deeplink/4.0/US/en-US/USD/dela/1/12712.13416.2027-01-07/air/airli/flights?...",
  "agentsCount": 1,
  "agents": [{ "id": "dela", "name": "Delta", "isAirline": true, "rating": 4.92, "reviewCount": 4449, "price": 178.4,
               "updateStatus": "current", "bookingType": "PBOOK", "ticketCount": 1, "bookingUrl": "https://www.skyscanner.net/transport_deeplink/..." }],
  "airlines": ["Delta"], "airlineCodes": ["DL"], "flightNumbers": ["DL773"],
  "stops": 0, "totalStops": 0, "isDirect": true, "durationMinutes": 386,
  "departAt": "2027-01-07T09:00:00", "arriveAt": "2027-01-07T12:26:00",
  "legs": [{
    "origin": { "code": "JFK", "entityId": "95565058", "name": "New York John F. Kennedy", "city": "New York", "country": "United States" },
    "destination": { "code": "LAX", "entityId": "95673368", "name": "Los Angeles International", "city": "Los Angeles", "country": "United States" },
    "departure": "2027-01-07T09:00:00", "arrival": "2027-01-07T12:26:00", "durationMinutes": 386, "stopCount": 0, "timeDeltaInDays": 0,
    "carriers": [{ "code": "DL", "name": "Delta", "logoUrl": "https://logos.skyscnr.com/images/airlines/favicon/DL.png" }],
    "operationType": "fully_operated",
    "segments": [{ "flightNumber": "DL773", "marketingCarrier": { "code": "DL", "name": "Delta" }, "operatingCarrier": { "code": "DL", "name": "Delta" },
                   "origin": { "code": "JFK", "name": "New York John F. Kennedy", "city": "New York", "country": "United States" },
                   "destination": { "code": "LAX", "name": "Los Angeles International", "city": "Los Angeles", "country": "United States" },
                   "departure": "2027-01-07T09:00:00", "arrival": "2027-01-07T12:26:00", "durationMinutes": 386, "mode": "flight" }],
    "layovers": []
  }],
  "score": 0.999, "isBest": true, "isCheapest": false, "isFastest": false,
  "isSelfTransfer": false, "changeAllowed": false, "cancellationAllowed": false, "refundable": false,
  "emissionsKg": 246.63, "typicalEmissionsKg": 344.29, "emissionsVsTypicalPercent": -28.37, "emissionsLevel": "lower", "isEcoContender": true,
  "searchUrl": "https://www.skyscanner.net/transport/flights/jfk/lax/270107/?adultsv2=1&cabinclass=economy&childrenv2=&rtn=0",
  "resultsComplete": true, "totalFound": 103, "matchingFilters": 103,
  "scrapedAt": "2026-11-16T04:10:02.195Z"
}
```

A real calendar row (LHR-JFK, the cheapest day of the year on 2026-11-16): `{"type":"price-day","origin":"LHR","destination":"JFK","date":"2026-12-11","weekday":"Friday","price":334.97,"currency":"USD","priceLevel":"low","isCheapestDay":true,"isCheapestInMonth":true,"percentAboveCheapest":0}`.

### FAQ

**Which airports and cities can I use?** Anything Skyscanner's own search box knows: IATA airport codes, city codes
(NYC, LON, PAR), names in most languages, and countries for Everywhere-style searches. A name Skyscanner does not know
ends the search with a free `error` row that says so.

**How many itineraries does a route have?** Usually 100-600 for a busy route (LON-NYC: ~600; JFK-LAX: ~100-580 depending
on the day), fewer for regional routes. `totalFound` on every row says how many the search returned.

**Can I compare markets?** Run the same input with different `market` values; each row carries its market and currency.

**Is it the same as Skyscanner's website?** Yes: the same search, the same itineraries, prices and booking sites a
visitor on that market sees, read from Skyscanner's own search service.

# Actor input Schema

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

flights = every itinerary for a route and date (price, every booking site with its price and link, legs, segments, layovers, CO2). calendar = the cheapest one-way fare for every day of the next 12 months. everywhere = the cheapest destinations from your origin (also chosen automatically when Destination is "Everywhere" or a country).

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

Airport or city: an IATA code (JFK, LHR, NYC, LON), a name (London, Paris Orly) or a Skyscanner place id.

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

Airport or city, a country (Italy) for its cheapest cities, or "Everywhere" for the cheapest destinations.

## `departDate` (type: `string`):

YYYY-MM-DD, or +N for N days from today (+30). Empty = in 30 days. For Everywhere a month (YYYY-MM) also works. A past date moves forward by whole years.

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

YYYY-MM-DD or +N days. Empty = one-way.

## `departDateEnd` (type: `string`):

Search every departure day from Departure date to this date (up to 62 days). A return date keeps the same trip length.

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

Several searches in one run: strings like "JFK-LAX" or "JFK-LAX 2027-01-20 2027-01-27", or objects {"origin":"JFK","destination":"LAX","departDate":"2027-01-20","returnDate":"2027-01-27"}, or {"legs":\[...]} for multi-city. Passengers, cabin, filters and market apply to all.

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

Paste skyscanner.\* /transport/flights/{from}/{to}/{yymmdd}/{yymmdd}/ or /transport/flights-from/{from}/ links; route, dates, passengers and cabin are read from the link.

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

Extra legs after From -> To, e.g. \[{"origin":"LHR","destination":"CDG","date":"2027-02-01"}]. A leg without a date departs 3 days after the previous one.

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

1-9. Prices are for all travellers together; pricePerPerson divides by adults + children.

## `childAges` (type: `array`):

One age (2-17) per child, e.g. \[5, 9].

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

Babies under 2 on a lap; Skyscanner prices them with the adults.

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

Economy, premium economy, business or first.

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

best = Skyscanner's own ranking score.

## `maxStops` (type: `string`):

Stops allowed on each leg.

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

IATA codes or names (BA, UA, Ryanair): keeps itineraries flown only by these marketing carriers.

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

IATA codes: drops itineraries with any segment sold by these carriers.

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

Drops itineraries (and destinations, calendar days) above this price.

## `maxDurationMinutes` (type: `integer`):

Drops itineraries with any leg longer than this.

## `excludeSelfTransfer` (type: `boolean`):

Drops self-transfer itineraries (separate tickets you connect yourself).

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

Itineraries (or destinations) kept per search, after filters and sorting. Skyscanner returns the whole result set (often 300-600 itineraries); a calendar search returns every day in its window.

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

Hard cap for the whole run; never more rows are delivered or charged. Empty = no cap.

## `maxAgentsPerFlight` (type: `integer`):

How many booking sites (airline and agents, cheapest first, each with price, rating and booking link) each itinerary lists.

## `calendarEndDate` (type: `string`):

calendar mode: last day to return (YYYY-MM-DD or +N). The window starts at Departure date (or today).

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

Two-letter country code: US, UK, DE, FR, IN, AU... It changes which fares and booking sites Skyscanner shows. Empty = US (or the site of a pasted URL).

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

ISO code (USD, GBP, EUR...). Empty = the market's own currency.

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

e.g. en-US, en-GB, de-DE. Empty = the market's own.

## `monitorMode` (type: `boolean`):

Remembers each row's price between runs and delivers only rows that are new or whose price changed, with previousPrice and priceChange. Unchanged rows are not delivered or charged. For scheduled fare tracking.

## `monitorName` (type: `string`):

Keeps separate memories for separate schedules (letters, digits, dashes).

## `monitorDeliver` (type: `string`):

In monitor mode: deliver every price change, or only drops (new rows are always delivered).

## `resetMonitor` (type: `boolean`):

Forget the monitor memory first, so this run delivers every row as new.

## `includeSearchSummary` (type: `boolean`):

One unbilled row per flight search: total found, matching your filters, cheapest direct / 1-stop / 2+-stop fare, fastest time.

## `flattenOutput` (type: `boolean`):

Nested legs, segments and booking sites become dashed columns (legs-0-segments-0-flightNumber).

## `maxPollSeconds` (type: `integer`):

Skyscanner streams partner prices in over 5-35 s; each search is read until it settles or this time passes (empty = 40). A run of only a few rows reads for less, so its compute stays under what it bills; those rows carry resultsComplete: false.

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

Empty = 3 at 256 MB, 5 at 512 MB, 8 at 1 GB+.

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

Leave empty: the actor picks its exits (direct, then fresh Apify datacenter sessions, then residential). Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "mode": "flights",
  "origin": "LON",
  "destination": "NYC",
  "departDate": "+30",
  "adults": 1,
  "cabinClass": "economy",
  "sortBy": "best",
  "maxStops": "any",
  "excludeSelfTransfer": false,
  "maxResultsPerSearch": 20,
  "maxAgentsPerFlight": 20,
  "monitorMode": false,
  "monitorDeliver": "changes",
  "resetMonitor": false,
  "includeSearchSummary": false,
  "flattenOutput": false
}
```

# Actor output Schema

## `itineraries` (type: `string`):

No description

## `calendar` (type: `string`):

No description

## `destinations` (type: `string`):

No description

## `summary` (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 = {
    "origin": "LON",
    "destination": "NYC",
    "departDate": "+30",
    "maxResultsPerSearch": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("topapi/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 = {
    "origin": "LON",
    "destination": "NYC",
    "departDate": "+30",
    "maxResultsPerSearch": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("topapi/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 '{
  "origin": "LON",
  "destination": "NYC",
  "departDate": "+30",
  "maxResultsPerSearch": 20
}' |
apify call topapi/skyscanner-scraper --silent --output-dataset

```

## MCP server setup

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