# Google Flights Search Scraper (`alpha-scraper/google-flights-search-scraper`) Actor

\[ 1k / 1$ ] Google Flights scraper: search by route and date and extract every flight option with airline, price, times, duration, stops, layovers, CO2 and baggage links. Set passengers, cabin, nonstop, currency and region.

- **URL**: https://apify.com/alpha-scraper/google-flights-search-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Google Flights Search Scraper

Google Flights Search Scraper is an Apify Actor that collects travel data from Google Flights and returns it as clean, structured records.
Set passengers, cabin, nonstop, currency and region.
Instead of copying Google Flights pages by hand, you enter your keywords, choose a few options, and receive one JSON record for every travel record that Google Flights returns.

**Who is it for?** travel-fare and hotel-price analysts; travel agencies and meta-search builders; revenue and pricing managers in hospitality.
**What problem does it solve?** Collecting Google Flights information by hand is slow and hard to repeat. Google Flights Search Scraper returns the same documented Google Flights fields every time, ready for spreadsheets, databases and dashboards.
**What data do you get?** 32 documented Google Flights fields per record, exported as JSON, CSV, Excel, XML, HTML or RSS.
**What is the easiest way to start?** Open Google Flights Search Scraper on Apify, keep the pre-filled input, lower `maxItems`, and press Start.

> **📌 Google Flights Search Scraper at a glance**
>
> - **Platform:** Google Flights
> - **Category:** travel
> - **Input fields:** 11 · **Output fields:** 32
> - **Listed price:** $1.00 per 1,000 results

### ✨ Google Flights Search Scraper Key Features

The Actor turns Google Flights travel records into structured data with a short list of inputs and a documented output.
Here is what Google Flights Search Scraper offers:

- **Keyword input:** Google Flights Search Scraper accepts one or many entries in `queries` and processes each entry on its own.
- **Result limit:** `maxItems` caps the Google Flights records per run, so test runs of Google Flights Search Scraper stay small and costs predictable.
- **Structured output:** 32 documented Google Flights fields in a consistent JSON structure.
- **Export anywhere:** download the Google Flights data as JSON, CSV, Excel, XML, HTML or RSS, or read the dataset through the Apify API.
- **Run summary:** a `RUN_SUMMARY` record and the status message report counts and the first problem of every run of the Actor.
- **Departure Date** (`departureDate`): Empty means 30 days from today.
- **Return Date** (`returnDate`): Return day (YYYY-MM-DD) that turns the search into a round trip ('returning <date>' is added to the search…
- **Adults** (`adults`): Number of adult passengers (Google Flights allows up to 9 travellers in total).

> **💡 Why use Google Flights Search Scraper?**
>
> - You work with documented Google Flights fields instead of raw pages.
> - You can repeat the same Google Flights job on a schedule and compare results over time.
> - You can start small with Google Flights Search Scraper, check the output, and scale up when you are happy.

### 🔍 What Data Can Google Flights Search Scraper Extract?

Each record describes one travel record found on the source site.
The schema documents 32 fields: 28 core fields that appear in almost every record, 2 common fields and 2 conditional fields that appear only when Google Flights provides the value or the matching option is on.

- `airlines`: Airlines
- `airlineCode`: Airline code
- `flightNumbers`: Flight numbers
- `originCode`: Origin airport code
- `destinationCode`: Destination airport code
- `departureTime`: Departure time
- `arrivalTime`: Arrival time
- `durationMinutes`: Duration (minutes)

The Output section below lists more Google Flights fields with their types and shows a real sample record collected by Google Flights Search Scraper.

### ⚙️ How Google Flights Search Scraper Works

The workflow of the Actor is intentionally simple, and Google Flights Search Scraper needs no code:

1. You provide a JSON input or fill the Console form; missing options use their documented defaults.
2. For every entry in `queries`, Google Flights Search Scraper requests results from Google Flights, page after page, until it has `maxItems` records or Google Flights has no more matches.
3. Each record is cleaned and mapped to the documented fields; values that Google Flights does not provide are left out instead of guessed.
4. Records are saved to the default dataset in small batches, and a `RUN_SUMMARY` record closes the run of Google Flights Search Scraper.

### 🚀 How to Use Google Flights Search Scraper

You can run the Actor in a few minutes. Follow these steps in the Apify Console:

1. Open the page of Google Flights Search Scraper on Apify and select the **Input** tab.
2. Enter your Google Flights keywords in **Routes Or Flight Searches** (`queries`).
3. Set **Max Flights Per Route** (`maxItems`) to a small number such as 20 for the first run.
4. Press **Start**, then open the **Output** tab to browse the Google Flights dataset and use **Export** to download it.
5. Save the input as a **Task** and add a **Schedule** to repeat Google Flights Search Scraper runs.

A quick start input for Google Flights Search Scraper:

```json
{
  "queries": ["JFK to LHR"],
  "maxItems": 20
}
```

With this input, the Actor searches Google Flights for the keywords shown and returns at most `maxItems` records.

### 🛒 How to Scrape Google Flights travel records with Google Flights Search Scraper

To scrape Google Flights travel records, add your keywords to `queries`, set `maxItems`, and start Google Flights Search Scraper. Each keyword is processed separately, so ten keywords produce ten Google Flights searches that share one dataset.

#### 📁 Can You Export Google Flights Data to CSV, Excel or JSON?

Yes. Every run of Google Flights Search Scraper stores its Google Flights records in a dataset that you can download as JSON, CSV, Excel, XML, HTML or RSS from the Console or through the API.

#### ⏰ Can You Schedule Google Flights Search Scraper to Monitor Google Flights?

Yes. Save your input as a Task, attach a Schedule, and compare the Google Flights dataset of every run.

### 📥 Google Flights Search Scraper Input

This table lists every input field of Google Flights Search Scraper, taken from the Actor's input schema. The form is pre-filled with a working example.

#### 🧾 Google Flights Search Scraper Input Fields

|Field|Type|Default|Purpose|
|---|---|---|---|
|`queries`|array|\["JFK to LHR"]|Routes Or Flight Searches|
|`maxItems`|integer|15|Max Flights Per Route|
|`departureDate`|string|-|Empty means 30 days from today.|
|`returnDate`|string|-|Return day (YYYY-MM-DD) that turns the search into a round trip ('returning <date>' is added to the…|
|`adults`|integer|1|Number of adult passengers (Google Flights allows up to 9 travellers in total).|
|`cabin`|string|"economy"|Travel class to search.|
|`nonstopOnly`|boolean|false|Adds 'nonstop' to the search so only flights without stops are listed.|
|`currency`|string|"USD"|Three-letter currency code Google should show prices in (the 'curr' parameter).|
|`language`|string|"en"|Google interface language (the 'hl' parameter), lower-case, for example 'en', 'de' or 'pt-BR'.|
|`country`|string|"us"|Two-letter country code of the Google region (the 'gl' parameter), lower-case, for example 'us'…|
|`scanDays`|integer|3|Each additional date is one more request; for round trips the return date moves by the same number…|

#### 📝 Google Flights Search Scraper Input Examples

These are valid inputs for the Actor. Copy one into the JSON editor of the input form, or send it through the API.

#### 🧪 Example 1: Minimal input

The smallest useful input: your Google Flights keywords and a result limit. Every other option keeps its default.

```json
{
  "queries": ["JFK to LHR"],
  "maxItems": 20
}
```

#### 🧪 Example 2: Typical input with the documented defaults

Every option that has a documented default, shown with that default value so you can see the full shape of the input.

```json
{
  "queries": ["JFK to LHR"],
  "maxItems": 20,
  "adults": 1,
  "cabin": "economy",
  "nonstopOnly": false,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "scanDays": 3
}
```

#### 🧪 Example 3: Cabin Class set to "first"

Changes `cabin` and keeps the other defaults.

```json
{
  "queries": ["JFK to LHR"],
  "maxItems": 20,
  "adults": 1,
  "cabin": "first",
  "nonstopOnly": false,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "scanDays": 3
}
```

#### 🧪 Example 4: Interface Language set to "de"

Changes `language` and keeps the other defaults.

```json
{
  "queries": ["JFK to LHR"],
  "maxItems": 20,
  "adults": 1,
  "cabin": "economy",
  "nonstopOnly": false,
  "currency": "USD",
  "language": "de",
  "country": "us",
  "scanDays": 3
}
```

### 📤 Google Flights Search Scraper Output

Google Flights Search Scraper stores one record per travel record in the default dataset of the run. The table shows the most common of the 32 documented Google Flights fields.

#### 📋 Google Flights Search Scraper Output Fields

|Field|Type|Description|
|---|---|---|
|`airlines`|array|List of airline names operating the flight options, in the order Google Flights…|
|`airlineCode`|string|Two-letter airline code of the main carrier of the option.|
|`flightNumbers`|array|List of flight numbers, one per leg of the journey, each with the airline code…|
|`originCode`|string|Three-letter code of the departure airport.|
|`destinationCode`|string|Three-letter code of the arrival airport.|
|`departureTime`|string|Local departure date and time at the origin airport, formatted as…|
|`arrivalTime`|string|Local arrival date and time at the destination airport, formatted as…|
|`durationMinutes`|integer|Total travel time of the option in minutes, as reported by Google Flights.|
|`stops`|integer|Number of stops, counted as the number of legs minus one, so 0 means a nonstop…|
|`price`|integer|Price Google Flights shows for the option, as a whole number in the currency…|
|`currency`|string|Currency code of the price, as requested in the input.|
|`legs`|array|List of the individual flights of the journey, each with airline, airlineCode…|

#### 🧬 Google Flights Search Scraper Sample Output

This record comes from a real run of Google Flights Search Scraper. Long texts and lists are shortened, only common fields are shown, and contact details, personal names, usernames and profile links are hidden.

```json
{
  "airlines": ["Delta"],
  "airlineCode": "DL",
  "airlineInfo": [
    {
      "code": "DL",
      "name": "Delta",
      "baggagePolicyUrl": "https://www.delta.com/content/www/en_US/traveling-with-us/baggage/before-your-trip/checke…",
      "specialAssistanceUrl": "https://www.delta.com/us/en/accessible-travel-services/overview"
    }
  ],
  "origin": {
    "airportCode": "JFK",
    "airportName": "John F. Kennedy International Airport",
    "city": "New York",
    "country": "United States",
    "countryCode": "US",
    "latitude": 40.6397222,
    "…": "4 more entries not shown"
  },
  "flightNumbers": ["DL1"],
  "originCode": "JFK",
  "destinationCode": "LHR",
  "departureTime": "2026-12-15T20:00",
  "arrivalTime": "2026-12-16T08:05",
  "durationMinutes": 425,
  "stops": 0,
  "legs": [
    {
      "codeshareFlights": [
        {"airlineCode": "KL", "flightNumber": "6101", "airline": "KLM"},
        {
          "airlineCode": "VS",
          "flightNumber": "4000",
          "airline": "Virgin Atlantic"
        }
      ],
      "emissionsGrams": 320104,
      "airline": "Delta",
      "airlineCode": "DL",
      "flightNumber": "DL1",
      "departureAirportCode": "JFK",
      "…": "8 more entries not shown"
    }
  ],
  "price": 415,
  "currency": "USD"
}
```

**Sample record 2**

```json
{
  "airlines": ["American"],
  "airlineCode": "AA",
  "airlineInfo": [
    {
      "code": "AA",
      "name": "American",
      "baggagePolicyUrl": "https://www.aa.com/i18n/travel-info/baggage/checked-baggage-policy.jsp",
      "specialAssistanceUrl": "https://www.aa.com/i18n/travel-info/special-assistance/special-assistance.jsp"
    }
  ],
  "origin": {
    "airportCode": "JFK",
    "airportName": "John F. Kennedy International Airport",
    "city": "New York",
    "country": "United States",
    "countryCode": "US",
    "latitude": 40.6397222,
    "…": "4 more entries not shown"
  },
  "flightNumbers": ["AA104"],
  "originCode": "JFK",
  "destinationCode": "LHR",
  "departureTime": "2026-12-15T21:15",
  "arrivalTime": "2026-12-16T09:15",
  "durationMinutes": 420,
  "stops": 0,
  "legs": [
    {
      "codeshareFlights": [
        {
          "airlineCode": "BA",
          "flightNumber": "1515",
          "airline": "British Airways"
        },
        {"airlineCode": "IB", "flightNumber": "4220", "airline": "Iberia"}
      ],
      "emissionsGrams": 310837,
      "airline": "American",
      "airlineCode": "AA",
      "flightNumber": "AA104",
      "departureAirportCode": "JFK",
      "…": "8 more entries not shown"
    }
  ],
  "price": 442,
  "currency": "USD"
}
```

#### 🔬 Google Flights Search Scraper Field Details

Each field below is described with its type, how often it appears in the sample and example values.

- **`airlines`** (array, present in 30 of 30 sample records): List of airline names operating the flight options, in the order Google Flights shows them. Examples: `["Delta"]`, `["Virgin Atlantic"]`.
- **`airlineCode`** (string, present in 30 of 30 sample records): Two-letter airline code of the main carrier of the option. Examples: `"DL"`, `"VS"`.
- **`flightNumbers`** (array, present in 30 of 30 sample records): List of flight numbers, one per leg of the journey, each with the airline code in front. Examples: `["DL1"]`, `["VS26"]`.

### 🎯 Google Flights Search Scraper Use Cases

People use Google Flights Search Scraper when they need repeatable, structured travel data from Google Flights. Typical applications:

- Track how fares or room rates move for the same route or city
- Build deal feeds and price alerts
- Research which properties or routes dominate a destination
- Export travel data for BI dashboards
- Export structured travel data to spreadsheets and BI tools

Every one of these tasks starts from the same Google Flights records that the Actor stores in the dataset.

### 💰 Google Flights Search Scraper Pricing

The Actor description lists the price of Google Flights Search Scraper as **$1.00 per 1,000 results**.
The table shows what that rate means for typical run sizes.

|Results|Cost at the listed rate|
|---|---|
|100|$0.10|
|1,000|$1.00|
|10,000|$10.00|
|100,000|$100.00|

- Check the **Pricing** tab on the Actor page for the current terms; your Apify plan and platform usage may also apply.
- Test with a small `maxItems` value before a large run.

### 💻 Run Google Flights Search Scraper with the Apify API

You can start Google Flights Search Scraper from code and read the Google Flights records from the dataset.

#### 🌐 Run Google Flights Search Scraper with cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/ACTOR_ID/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["JFK to LHR"], "maxItems": 20}'
```

### 🔗 Integrations and Automation

The Actor works with schedules, webhooks, the Apify API and many integrations.

#### 🔌 Connect Google Flights Search Scraper to n8n

- Use the Apify node to run the Actor and read its Google Flights dataset in an n8n workflow.
- Add a Split In Batches or Loop step to process the Google Flights records one by one.
- Use an HTTP Request node with the Google Flights dataset API if you prefer to control query parameters yourself.
- Once a run succeeds, the Google Flights data is ready to use in n8n.

### 🧭 Example Workflows with Google Flights Search Scraper

These workflows show how teams combine Google Flights Search Scraper with schedules, storage and analysis tools.

#### 🧭 Competitor tracking

1. List the Google Flights keywords that describe your competitors' offers.
2. Run Google Flights Search Scraper on a schedule and store every collected dataset.
3. Load the datasets into one table with a run-date column.
4. Chart changes in the Google Flights fields that matter to you.
5. Review the chart in a weekly meeting.

### 🛠️ Tips and Best Practices

Follow these tips to get clean data from the Actor faster:

- Start every new search with a small `maxItems` value so you can check the output and the cost before a big run.
- Change one input option at a time and compare the datasets; this makes it clear which option produced which effect.
- Save good inputs as Apify Tasks and give them descriptive names such as the keyword and the market.
- Use a schedule for monitoring jobs, and keep each run small so that Google Flights results arrive quickly.
- Treat every field except the identifiers as optional in your downstream code.
- Keep the raw JSON of important runs; it is the most complete representation of each record.
- Review `departureDate` (Departure Date) before large runs: Empty means 30 days from today.
- Review `returnDate` (Return Date) before large runs: Return day (YYYY-MM-DD) that turns the search into a round trip ('returning <date>' is added to the search…

### ⚖️ Legal and Responsible Use

Google Flights Search Scraper is meant for publicly available information, and you are responsible for how you use the Google Flights data. This is general information, not legal advice.

- Read and follow the terms of service and the published crawler rules of Google Flights before you run large jobs.
- Collect only the travel records and fields you need from Google Flights, and use them for a legitimate purpose.
- Treat names, handles and contact details as personal data where privacy laws such as GDPR or CCPA apply.
- Respect copyright and database rights when you republish Google Flights content, and honour removal requests.

### ❓ Frequently Asked Questions about Google Flights Search Scraper

Answers to common questions about Google Flights Search Scraper and about collecting Google Flights data.

#### ❓ How do I run Google Flights Search Scraper?

Open the Actor page on Apify, fill in the input form, and press Start.
The same run can be started from the Apify API, the Apify CLI, a schedule, or an integration, using the identical JSON input shown in the Input section.
The Actor saves every record to the run's default dataset, where you can preview and download it.

#### ❓ Do I need an Apify account to use Google Flights Search Scraper?

Yes. Google Flights Search Scraper runs on the Apify platform, so you need an Apify account to start it from the Console or the API.
A free account is enough to try the Actor on a small input; check your plan for the monthly credits it includes.

#### ❓ Can I run Google Flights Search Scraper through the API?

Yes. Every Apify Actor can be started with the Apify API or one of the official clients for JavaScript and Python.
The API section of this page shows a copy-paste example that sends the same JSON input as the Console form.

#### ❓ How do I schedule the Actor to run every day or every week?

Save your input as an Apify Task, then add a Schedule with a cron expression to that Task.
Each scheduled run creates a new dataset, so you can compare today's Google Flights results with yesterday's.

#### ❓ Which formats can I export the results in?

Apify datasets can be downloaded as JSON, JSONL, CSV, Excel, XML, HTML table and RSS.
Nested lists and objects are kept intact in JSON; for CSV or Excel choose the Google Flights fields you need or flatten nested fields in the export options.

#### ❓ Can I use Google Flights Search Scraper to monitor my own listings or pages on Google Flights?

Yes, as long as your Google Flights keywords or filters find them. Compare each run with the previous one to see changes.

### 🤝 Support

Need help with Google Flights Search Scraper or want a new field? Use the **Issues** tab on the Actor page and include the run link and your input.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

## `queries` (type: `array`):

One or more routes such as 'JFK to LHR', 'JFK-LHR' or 'NYC LON 2026-12-20', or a full sentence as typed into Google Flights, for example 'Flights from JFK to LHR on 2026-12-20 returning 2026-12-27 business class'. Every entry is searched on its own with its own 'Max Flights Per Route'.

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

Maximum number of flight options per route. The Actor reads Google's 'best' and 'other' flights for the first date, then 'view more flights' and, if needed, the next departure dates (see 'Departure Dates To Scan') until this number is reached.

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

Departure day (YYYY-MM-DD) for compact routes such as 'JFK to LHR' that carry no date. Empty means 30 days from today. Ignored when the keyword contains its own date or is a full sentence.

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

Return day (YYYY-MM-DD) that turns the search into a round trip ('returning <date>' is added to the search text). Empty means one way. Ignored when the keyword already says 'return'. For round trips Google lists the outbound options with the round-trip price.

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

Number of adult passengers (Google Flights allows up to 9 travellers in total). The price of every option is the total for all adults.

## `cabin` (type: `string`):

Travel class to search. 'Economy' adds nothing to the search text; 'Business' and 'First' are added as '<class> class'. 'Premium economy' is set as the cabin of the search itself, because Google's search box cannot read those words.

## `nonstopOnly` (type: `boolean`):

Adds 'nonstop' to the search so only flights without stops are listed.

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

Three-letter currency code Google should show prices in (the 'curr' parameter). Prices are those Google shows for this currency and region. You may type a code that is not in the list.

## `language` (type: `string`):

Google interface language (the 'hl' parameter), lower-case, for example 'en', 'de' or 'pt-BR'. It changes the language of airline, airport and label texts. You may type a code that is not in the list.

## `country` (type: `string`):

Two-letter country code of the Google region (the 'gl' parameter), lower-case, for example 'us', 'gb' or 'de'. It is sent to Google, but Google Flights mostly takes fares from the currency and the connection, so the results often look the same for different regions. You may type a code that is not in the list.

## `scanDays` (type: `integer`):

How many consecutive departure dates to read (starting with the first date) when the first date offers fewer than 'Max Flights Per Route'. Each additional date is one more request; for round trips the return date moves by the same number of days.

## Actor input object example

```json
{
  "queries": [
    "JFK to LHR"
  ],
  "maxItems": 15,
  "adults": 1,
  "cabin": "economy",
  "nonstopOnly": false,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "scanDays": 3
}
```

# Actor output Schema

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

Structured records extracted by Google Flights Search Scraper and stored in the run's 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 = {
    "queries": [
        "JFK to LHR"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/google-flights-search-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 = {
    "queries": ["JFK to LHR"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/google-flights-search-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 '{
  "queries": [
    "JFK to LHR"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/google-flights-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/google-flights-search-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/yeeI6kL5fGkJP2C69/builds/NmeiIdCOredCBvcfW/openapi.json
