# Google Flights Scraper (`mrdoe/google-flights-scraper`) Actor

Searches Google Flights for a route and date and returns every real flight option found, with price, airlines, stops, layovers, emissions, booking options, price history, and a price calendar.

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

## Pricing

from $10.00 / 1,000 flight option returneds

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

![Google Flights search results - the real page this Actor reads flight data from](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--site.png)

![Google Flights Scraper - search any route and date and get every real flight option with prices, airlines, stops, layovers, emissions and booking data](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--hero.png)

### What does Google Flights Scraper do?

Google Flights Scraper searches Google Flights for any route and date and returns one clean row per flight option: total price, every airline on the itinerary, departure and arrival airports with local times and dates, total duration, stop count with each layover's airport and wait time, and the CO2 emissions estimate. For the top options it goes further - who sells the ticket and at what price, how today's price compares to the typical range for the route, and a 60-day price history. A price calendar mode scans a whole range of departure dates and returns the cheapest fare for each day.

Round trips and one-ways both work, with any passenger mix (adults, children, infants) and any cabin from Economy to First, in the currency you choose.

### Why use Google Flights Scraper?

- One search covers every airline on the route at once - no per-airline scraping.
- Full round-trip support: each option carries its matching return flight.
- Booking-provider prices and fare classes for the top options, not just the headline fare.
- A 60-day price history and a typical-price verdict so you know if today's fare is good.
- Price calendar mode finds the cheapest day to fly across a whole date range.
- CO2 emissions per flight, including how each option compares to typical for the route.
- No account, cookies or login required.

### What makes this different

Most flight scrapers return a flat list of prices and stop there. This one returns the full picture a traveller sees and more: layover-by-layover breakdowns, operating-carrier codeshares, emissions comparisons, who actually sells each ticket and for how much, whether today's price is low, typical or high for the route, and how the fare has moved over the last 60 days - every field a price tracker, travel tool or fare-alert product needs, in one run.

### How it works

![Google Flights Scraper workflow: your input, search engine, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--how-it-works.png)

1. **Your input** - origin and destination (city name or airport code), dates, passengers, cabin class and currency.
2. **The Actor runs the search** - it reads every flight option found, and follows the top options through to the booking step to collect provider prices, price insights and history.
3. **Your output** - one row per flight option, plus one row per day in calendar mode.

### What data can you extract?

Each flight option row has 30+ fields:

| Field                                        | Type    | Description                                                                 |
| -------------------------------------------- | ------- | --------------------------------------------------------------------------- |
| `price`                                      | number  | Total price - round-trip total or one-way fare.                             |
| `currency`                                   | string  | The currency you requested, e.g. `USD`.                                     |
| `section`                                    | string  | `best` (Google's top-ranked options) or `other`.                            |
| `rank`                                       | integer | Position in the result list.                                                |
| `stops`                                      | integer | Number of stops; `0` means nonstop.                                         |
| `airlines`                                   | array   | Marketing airline(s) for the itinerary.                                     |
| `operatedBy`                                 | string  | Operating carrier when different from the marketing airline.                |
| `departureAirportCode` / `departureAirportName` | string | Where the flight leaves from.                                           |
| `departureTime` / `departureDate`            | string  | Local departure time and date.                                              |
| `arrivalAirportCode` / `arrivalAirportName`  | string  | Where the flight lands.                                                     |
| `arrivalTime` / `arrivalDate` / `arrivesNextDay` | string/bool | Local arrival time, date, and an overnight-arrival flag.           |
| `durationText` / `durationMinutes`           | string/number | Total journey time.                                                  |
| `layovers`                                   | array   | One entry per stop: airport, city, and layover duration.                    |
| `emissionsKg` / `emissionsVsTypical`         | number/string | CO2e estimate and comparison to typical for the route.               |
| `returnLeg`                                  | object  | The matching return flight (full detail) for round trips.                   |
| `bookingOptions`                             | array   | Who sells this ticket and at what price, with separate-tickets flags.       |
| `priceInsight`                               | object  | Low/typical/high verdict plus the typical price range for the route.        |
| `priceHistory`                               | array   | Daily price points for the past ~60 days.                                   |
| `bookingUrl`                                 | string  | A real booking link for the top option, when available.                     |
| `tripType` / `cabinClass` / `searchOrigin` / `searchDestination` | string | The search this row came from.                          |
| `scrapedAt`                                  | string  | When this row was collected (ISO 8601 UTC).                                 |

Calendar mode adds one `priceCalendarDay` row per scanned date with the cheapest price, airline and stop count for that day.

### How to use Google Flights Scraper

![Google Flights Scraper input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--input.png)

1. Open the Actor and go to the **Input** tab.
2. Set **From** and **To** - a city name like `New York` or an airport code like `JFK`.
3. Pick a **Departure date** (and a **Return date** for a round trip - leave it empty for one-way).
4. Optionally set passengers, cabin class, currency, and how many top options should get the deeper booking lookup.
5. Click **Start**. A default run finishes in a couple of minutes.
6. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter                    | Type    | Required | Default      | Description                                                                 |
| ---------------------------- | ------- | -------- | ------------ | --------------------------------------------------------------------------- |
| `origin`                     | string  | Yes      | `New York`   | Departure city or airport code.                                             |
| `destination`                | string  | Yes      | `London`     | Arrival city or airport code.                                               |
| `departureDate`              | string  | No       | +14 days     | `YYYY-MM-DD`. Empty = two weeks from today.                                 |
| `returnDate`                 | string  | No       | -            | `YYYY-MM-DD`. Empty = one-way search.                                       |
| `adults` / `children` / `infantsInSeat` / `infantsOnLap` | integer | No | `1/0/0/0` | Passenger mix.                                            |
| `cabinClass`                 | string  | No       | `economy`    | `economy`, `premium_economy`, `business` or `first`.                        |
| `currency`                   | string  | No       | `USD`        | 3-letter currency code for all prices.                                      |
| `maxItems`                   | integer | No       | `20`         | Max flight options to return. `0` = every option found.                     |
| `includeBookingDetails`      | boolean | No       | `true`       | Collect booking providers, price insights, history and a booking link for the top options. |
| `maxItemsWithBookingDetails` | integer | No       | `3`          | How many top options get that deeper lookup.                                |
| `calendarMode`               | boolean | No       | `false`      | Also scan a range of departure dates for the cheapest fare per day.         |
| `calendarDays`               | integer | No       | `7`          | How many consecutive dates to scan in calendar mode.                        |
| `proxyConfiguration`         | object  | No       | Residential  | Keep the default residential proxy for reliable results.                    |

### Output Data

![Google Flights Scraper dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--output.png)

![Google Flights Scraper field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/google-flights-scraper--fields.png)

A real dataset item (trimmed):

```json
{
    "kind": "flightOption",
    "searchOrigin": "New York",
    "searchDestination": "London",
    "departureDate": "2026-12-15",
    "returnDate": "2026-12-22",
    "tripType": "round_trip",
    "cabinClass": "economy",
    "rank": 0,
    "section": "best",
    "price": 845,
    "currency": "USD",
    "stops": 0,
    "airlines": ["United"],
    "departureAirportCode": "EWR",
    "departureAirportName": "Newark Liberty International Airport",
    "departureTime": "8:20 AM",
    "arrivalAirportCode": "LHR",
    "arrivalAirportName": "Heathrow Airport",
    "arrivalTime": "8:35 PM",
    "arrivalDate": "2026-12-15",
    "arrivesNextDay": false,
    "durationText": "7 hr 15 min",
    "durationMinutes": 435,
    "layovers": [],
    "emissionsKg": 416,
    "emissionsVsTypical": "Avg emissions",
    "returnLeg": { "departureAirportCode": "LHR", "departureTime": "3:10 PM", "airlines": ["United"], "stops": 0 },
    "priceInsight": { "verdict": "$845 is typical for Economy", "typicalLow": 730, "typicalHigh": 1700 },
    "priceHistory": [{ "daysAgo": 1, "price": 865 }, { "daysAgo": 0, "price": 845 }],
    "bookingOptions": [{ "provider": "Booking.com", "priceText": "$1,088", "isSeparateTickets": false }],
    "scrapedAt": "2026-11-12T09:22:00.000Z"
}
```

### Usage Examples

#### Round trip with booking details for the top 3 options

```json
{
    "origin": "New York",
    "destination": "London",
    "departureDate": "2026-12-15",
    "returnDate": "2026-12-22"
}
```

#### One-way, business class, 2 adults

```json
{
    "origin": "SFO",
    "destination": "Tokyo",
    "departureDate": "2026-12-10",
    "adults": 2,
    "cabinClass": "business"
}
```

#### Find the cheapest day to fly over two weeks

```json
{
    "origin": "Berlin",
    "destination": "Barcelona",
    "departureDate": "2026-12-01",
    "calendarMode": true,
    "calendarDays": 14,
    "includeBookingDetails": false
}
```

### Tips for Best Results

- City names and airport codes both work - `New York` searches all area airports, `JFK` pins one.
- Leave **Return date** empty for genuine one-way fares; round-trip rows show the round-trip total.
- The booking-detail lookup is the slowest part of a run - lower `maxItemsWithBookingDetails` (or turn it off) for faster, cheaper runs when you only need the fare list.
- In calendar mode the trip length stays fixed: each scanned departure date keeps the same number of nights as your original dates.
- Prices are live and can change between runs - that is Google Flights updating, not the Actor.

### Known Limitations

- Only what Google Flights publicly shows for a search is returned.
- Multi-city itineraries are not supported yet - round trip and one-way only.
- `bookingUrl` is captured for the top option when a provider link is offered; some fares are airline-direct only.
- Price insights and history appear only on routes where Google Flights shows them.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### How do I scrape Google Flights prices?

Enter a route and dates and run the Actor. You get one row per flight option with price, airlines, stops, layovers, duration and emissions - plus booking providers and price history for the top options.

#### Does it support round trips?

Yes. Give a return date and every row shows the round-trip total, with the matching return flight attached to the top options.

#### Can it find the cheapest day to fly?

Yes - turn on calendar mode and it scans a range of departure dates, returning the cheapest fare for each day.

#### Can I see who sells the ticket?

Yes. The top options include a booking-options list - airlines and travel agencies with the price each one charges.

#### Is today's price good?

The top options include a price insight: whether the fare is low, typical or high for the route, the typical price range, and a ~60-day price history.

#### What about emissions?

Every flight option includes its CO2e estimate and how it compares to typical emissions for the route.

#### Which currencies work?

Any currency Google Flights supports - set the 3-letter code in the input (USD, EUR, GBP, AUD, ...).

#### Do I need an account or login?

No. The Actor needs no account, cookies or API key.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console - ideal for price tracking and fare alerts.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

You are responsible for using the collected data in line with Google's terms and applicable law. The Actor is not affiliated with Google.

# Actor input Schema

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

Departure airport code or city name, e.g. JFK, New York, or London.

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

Arrival airport code or city name, e.g. LHR, London, or Tokyo.

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

Date to depart, as YYYY-MM-DD. Leave empty to use 14 days from today.

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

Date to return, as YYYY-MM-DD. Leave empty for a one-way search.

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

Number of adult passengers (age 18+).

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

Number of child passengers (age 2-11).

## `infantsInSeat` (type: `integer`):

Number of infants (under 2) who will occupy their own seat.

## `infantsOnLap` (type: `integer`):

Number of infants (under 2) who will sit on an adult's lap.

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

Seating class to search.

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

3-letter currency code for prices, e.g. USD, EUR, GBP.

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

Maximum number of flight options to return. Set 0 to return every option found.

## `includeBookingDetails` (type: `boolean`):

For the top flight options, also visit Google's booking page to collect multiple booking-provider prices, fare-class breakdowns, a 60-day price history, and a real booking link. Costs extra time per option - see 'Max options with booking details' below.

## `maxItemsWithBookingDetails` (type: `integer`):

How many of the top (cheapest-first) flight options get the deeper booking-page lookup described above. Only used when 'Include booking options & price insights' is on.

## `calendarMode` (type: `boolean`):

Instead of (in addition to) the flight list, also scan a range of departure dates and return the cheapest price found for each date - useful for finding the best day to fly.

## `calendarDays` (type: `integer`):

How many consecutive departure dates to check, starting from the departure date above. Only used when 'Price calendar mode' is on.

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

A residential proxy is used by default to avoid rate limits - leave this as-is unless you have a reason to change it.

## Actor input object example

```json
{
  "origin": "New York",
  "destination": "London",
  "departureDate": "",
  "returnDate": "",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "currency": "USD",
  "maxItems": 20,
  "includeBookingDetails": true,
  "maxItemsWithBookingDetails": 3,
  "calendarMode": false,
  "calendarDays": 7,
  "proxyConfiguration": {
    "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 = {
    "origin": "New York",
    "destination": "London",
    "departureDate": "",
    "returnDate": "",
    "adults": 1,
    "children": 0,
    "infantsInSeat": 0,
    "infantsOnLap": 0,
    "cabinClass": "economy",
    "currency": "USD",
    "maxItems": 20,
    "maxItemsWithBookingDetails": 3,
    "calendarDays": 7,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/google-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 = {
    "origin": "New York",
    "destination": "London",
    "departureDate": "",
    "returnDate": "",
    "adults": 1,
    "children": 0,
    "infantsInSeat": 0,
    "infantsOnLap": 0,
    "cabinClass": "economy",
    "currency": "USD",
    "maxItems": 20,
    "maxItemsWithBookingDetails": 3,
    "calendarDays": 7,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/google-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 '{
  "origin": "New York",
  "destination": "London",
  "departureDate": "",
  "returnDate": "",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "currency": "USD",
  "maxItems": 20,
  "maxItemsWithBookingDetails": 3,
  "calendarDays": 7,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call mrdoe/google-flights-scraper --silent --output-dataset

```

## MCP server setup

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