# Google Flights Scraper | Fares, Price Tracker & Booking Options (`corvuslab/google-flights-scraper`) Actor

Scrape Google Flights for any route and dates: up to 300 itineraries per search with price, times, stops, layovers, CO2, return flights and every booking option with bag fees and links, plus a 330-day price calendar. Scheduled runs return only fares that changed, with alerts.

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

## Pricing

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

### What does Google Flights Scraper do?

**Google Flights Scraper** pulls the **full itinerary list** [Google Flights](https://www.google.com/travel/flights) shows for any route and dates, up to about **300 flights per search**, as clean records with **71 structured fields**: price, airline and flight numbers, times, stops, layovers, every segment with aircraft and legroom, CO2 against the route's typical figure, and Google's own price level (low, typical or high). Turn on scheduled **fare tracking** and each run returns only the flights whose fare moved, with the previous price and the change. Unchanged flights are skipped and not charged. It's no-code, with output to JSON, CSV, Excel, the API or an AI agent.

Give it a route (airport codes like `JFK` → `LAX`, or a city code like `NYC` that covers every airport in the city) and a date, and you get back every itinerary Google lists. You can add **return flights** with round-trip totals, **every booking option** (airline and agency prices, fare names, checked-bag fees, separate-ticket offers and booking links), complete **multi-city trips**, and a **price calendar** of up to 330 days. Don't know where to go? **Explore mode** lists the cheapest destinations from your airport.

> New to Apify? Sign up free and use the included monthly platform credit to try this Actor. No credit card needed.

**Why this scraper**

- ✈️ **The whole list, every run.** We measured 125 itineraries on JFK–LAX, 156 on JFK–MIA and 300 on NYC–LAX, so you get far more than the first screen.
- ♻️ **A real fare tracker.** Scheduled runs return only changed fares, with `previousPrice` and `priceChange`.
- 🌍 **Explore anywhere.** The cheapest destinations from any airport, worldwide or by region, each with an exact Google Flights link.
- 🔔 **Alerts built in.** Telegram, Slack, Discord or any webhook.
- 🤖 **AI and API ready.** Typed JSON that works with MCP clients.

***

### What data can you extract from Google Flights?

Records carry up to **71 fields**, plus nested segment, return-flight, multi-city and booking-option detail:

| Group | What you get |
|---|---|
| **Itinerary** | Price, airline(s), airline codes, flight numbers, airports (code + full name), local departure and arrival times, duration, stops, layovers |
| **Segments** | Every leg with flight number, airline, times, duration, **aircraft type**, **legroom** and per-leg CO2 |
| **Google's verdict** | Rank, best / cheapest / fastest flags, **price level** (low / typical / high), lowest price, typical price range, optional **60-day price history** |
| **Emissions** | CO2 in kg, the typical CO2 for the route, and **% above or below typical** |
| **Booking, returns & multi-city** | Every seller with price, **fare name**, **checked-bag fees**, separate-ticket breakdown and booking link; return flights with round-trip totals; the full chosen **multi-city itinerary** with its **total price** |
| **Destinations (Explore)** | Destination city, country, airport, **latitude / longitude**, a photo, cheapest fare, airline, stops, flight time and Google's suggested travel dates |
| **Links & tracking** | A **per-flight Google Flights link**, a search link, and the fare-tracking fields (`changeType`, `previousPrice`, `priceChange`, `priceChangePercent`) |

A run can return four row types: **`flight`**, **`destination`** (Explore), **`calendarDay`** (the cheapest fare per departure date) and an optional **`searchSummary`** per search.

***

### Key features

- ✈️ **Full itinerary list.** Google lists up to about 300 itineraries for a busy route, and you get that whole list, sorted first and then cut to your `maxResults`.
- ♻️ **Fare tracking with price deltas.** Rows are marked NEW, UPDATED (fare changed) or UNCHANGED, with `previousPrice`, `priceChange` and `priceChangePercent`. Unchanged flights aren't charged.
- 📅 **Relative dates for schedules.** `+30` in any date field means 30 days from today, so a daily run keeps watching the same lead time.
- 🔔 **Fare alerts** go to Telegram, Slack, Discord or any webhook (n8n, Make, Zapier).
- 🌍 **Explore cheapest destinations.** Up to 1,000 destinations from one airport, worldwide or by region, cheapest first, with coordinates and a link that opens the exact trip.
- 🧭 **Complete multi-city trips.** The top first-leg options are followed through every later leg, with the full chosen itinerary and Google's total price for it.
- 🎫 **Booking options with every seller**, including multi-city trips: airline and agency prices, fare names (Basic Economy, Main Cabin…), checked-bag fees, **separate-ticket offers split into their tickets**, and booking links.
- 🔁 **Return flights** for round trips, each with the total for both directions.
- 📆 **Price calendar up to 330 days**, plus a calendar-only mode for sweeping dates and routes.
- 📈 **Google's price insight:** price level, typical range and the 60-day price history.
- 🌱 **CO2 vs typical** per itinerary and per leg.
- 🏙️ **Metro codes expanded.** `NYC`, `LON`, `PAR`, `TYO` and more search every airport in the city (NYC = JFK + EWR + LGA).
- 🎚️ **Every filter that matters:** stops, airlines or alliances, excluded airlines, max price, duration and layover, and time windows.

***

### 🚀 How to scrape Google Flights

1. Enter **From** and **To** airport codes (e.g. `JFK` → `LAX`) and a **departure date**. Add a **return date** for a round trip, or switch on **Explore** to skip the destination.
2. Pick passengers, cabin, **sort order** and any filters.
3. Switch on the extras you want: return flights, booking options, price calendar, price history.
4. (Optional) Turn on **Track fare changes**, add a **notification** channel, then **Schedule** it.
5. Click **Start** and download as **JSON, CSV or Excel**, or use the **API**.

No login, no cookies, no setup.

#### Quick-start example input

```json
{ "origin": "JFK", "destination": "LAX", "departureDate": "+30", "sortBy": "price", "maxResults": 100 }
```

This returns the 100 cheapest JFK → LAX itineraries departing 30 days from today, each with times, stops, layovers, CO2 and Google's verdict on whether today's fares are low, typical or high.

***

### 🌍 Where can you fly cheaply? Explore Google Flights destinations

Set `exploreDestinations: true` and an `origin`, and the Actor lists the **cheapest destinations** from that airport (or metro code), cheapest first, one `destination` row each. You can look worldwide or by region: Europe, Asia, North America & Caribbean, South America, Africa & Middle East or Oceania. You can also choose round trips or one-way fares.

- From **JFK with "all" regions**, one run found **400 priced destinations in more than 110 countries** in about 27 seconds.
- From **LHR, Europe, one-way, under £80**, it found **36 destinations**, starting with Barcelona at £30, Seville at £37 and Paris at £38.

Passengers, cabin, max stops, airlines, excluded airlines, max price and max duration all apply. Each row carries the city, country, airport, coordinates, a photo, the fare, airline, stops and flight time, plus a **link that opens that exact trip** on Google Flights.

**About the dates:** Explore uses **Google's own suggested cheapest dates** for each destination, usually trips of about a week spread over the coming months. It doesn't take fixed dates. For exact dates, run the destinations you like as `routes`, or use the price calendar.

```json
{ "exploreDestinations": true, "origin": "LHR", "exploreRegions": ["europe"], "exploreTripType": "oneWay", "maxPrice": 80, "currency": "GBP", "market": "GB" }
```

***

### Input

You can set everything in the visual editor without code, or pass JSON through the API. The Actor has **52 inputs**, grouped the same way as in the editor.

#### ✈️ Route

| Field | Type | What it does |
|---|---|---|
| `origin` / `destination` | string | Airport code (`JFK`, `LHR`), several codes (`JFK, EWR`) or a city code (`NYC`, `LON`, `PAR`, `TYO`, `CHI`, `WAS`, `MIL`, `ROM`, `SAO`, `SEL`…). |
| `departureDate` / `returnDate` | string | `YYYY-MM-DD` or days from today (`+30`), up to about 11 months ahead. Leave the return date empty for one-way. |
| `routes` | array | Several routes in one run, each with optional own dates. |
| `multiCityLegs` | array | One multi-city trip, two or more legs in travel order. |

#### 🌍 Explore (cheapest destinations)

| Field | Type | What it does |
|---|---|---|
| `exploreDestinations` | boolean | List the cheapest destinations from `origin` instead of searching a route. |
| `exploreRegions` | multi-select | `all` (default), `world`, `europe`, `asia`, `northAmerica`, `southAmerica`, `africaMiddleEast`, `oceania`. |
| `exploreTripType` | enum | `roundTrip` (default) or `oneWay`. |
| `maxDestinations` | integer | Destinations to return, cheapest first (default 100, max 1,000). |

#### 👥 Passengers & cabin

| Field | Type | What it does |
|---|---|---|
| `adults` / `children` | integer | Adults 1–9 (12+), children aged 2–11. Prices cover everyone. |
| `infantsInSeat` / `infantsOnLap` | integer | Under 2, with their own seat or on a lap. |
| `cabinClass` | enum | `economy`, `premium_economy`, `business`, `first`. |

#### 🔎 Results

| Field | Type | What it does |
|---|---|---|
| `maxResults` | integer | Itineraries per search (route × dates), 1–300, default 100. |
| `sortBy` | enum | `best`, `price`, `departure`, `arrival`, `duration`. |
| `maxStops` | enum | `any`, `0` (nonstop), `1`, `2`. |
| `airlines` / `excludeAirlines` | array | Only these airlines (`DL`, `BA`) or an alliance (`ONEWORLD`, `SKYTEAM`, `STAR_ALLIANCE`), or codes to leave out. |
| `maxPrice` / `maxDurationMinutes` / `maxLayoverMinutes` | integer | Cap the total, the trip time or any layover. |
| `departureTimeFrom` / `departureTimeTo` / `arrivalTimeFrom` / `arrivalTimeTo` | string | Time windows, `HH:MM` local. |

#### ➕ Extra data

| Field | Type | What it does |
|---|---|---|
| `includeReturnFlights` | boolean | Add return flights to the top outbound itineraries. |
| `maxReturnResolutions` / `maxReturnOptions` | integer | How many outbounds get returns (1–50), and how many each (1–100). |
| `maxMultiCityResolutions` | integer | First-leg options to complete through every leg (default 5, 0 = first leg only). |
| `includeBookingOptions` / `maxBookingResolutions` | boolean / integer | Add every seller to the top flights (1–50). |
| `calendarDays` / `calendarOnly` | integer / boolean | Price calendar of 0–330 days, optionally on its own. |
| `includePriceHistory` / `includeSearchSummary` | boolean | 60-day history on every flight; one summary row per search. |

#### ♻️ Fare tracking

| Field | Type | What it does |
|---|---|---|
| `trackPriceChanges` | boolean | Later runs return only NEW or UPDATED rows, with the old price and the change. |
| `stateKey` | string | Optional tracker name, to share or separate history between schedules. |
| `emitUnchanged` | boolean | Also return UNCHANGED rows (charged as results). |

#### 🔔 Notifications

Credentials are secret inputs, encrypted at rest and never written to the run log.

| Field | Type | What it does |
|---|---|---|
| `telegramToken` + `telegramChatId` | string | Telegram bot token + chat ID. |
| `slackWebhookUrl` / `discordWebhookUrl` | string | Incoming webhook URL. |
| `webhookUrl` + `webhookHeaders` | string / object | POST the results as JSON to n8n, Make, Zapier or anything else. |
| `notificationLimit` | integer | Rows per message (1–20). |

#### 🌐 Market & output

| Field | Type | What it does |
|---|---|---|
| `currency` / `market` / `language` | string | Price currency (`USD`, `EUR`, `GBP`…), country of sale (`US`, `GB`, `DE`) and name language (`en`, `de`). |
| `excludeEmptyFields` | boolean | Drop empty fields for smaller exports. |
| `proxyConfiguration` | object | Optional. The Actor runs without one. |

#### More example inputs

A round trip with return flights, booking options and a two-month price calendar:

```json
{ "origin": "JFK", "destination": "LHR", "departureDate": "2026-12-27", "returnDate": "2027-01-03", "includeReturnFlights": true, "includeBookingOptions": true, "calendarDays": 60 }
```

A daily fare tracker on two routes, nonstop only, with a Telegram alert when a fare moves:

```json
{ "routes": [{ "origin": "NYC", "destination": "LON", "departureDate": "+45", "returnDate": "+52" }, { "origin": "SFO", "destination": "NRT", "departureDate": "+60" }], "maxStops": "0", "trackPriceChanges": true, "telegramToken": "<BOT_TOKEN>", "telegramChatId": "-100123456789" }
```

***

### Output

Each `flight` row is one itinerary. Return flights, multi-city legs and booking options are **nested inside it**, so they add data without adding rows. Here's a real JFK → LHR round-trip record, trimmed (nested lists shortened, long link tokens cut):

```json
{
  "type": "flight",
  "origin": "JFK",
  "destination": "LHR",
  "tripType": "roundTrip",
  "departureDate": "2026-12-27",
  "returnDate": "2027-01-03",
  "cabinClass": "economy",
  "adults": 1,
  "currency": "USD",
  "market": "US",
  "rank": 2,
  "isBestFlight": true,
  "isCheapest": false,
  "price": 1713,
  "airline": "British Airways",
  "flightNumbers": ["BA 174"],
  "departAirport": "JFK",
  "departAirportName": "John F. Kennedy International Airport",
  "arriveAirport": "LHR",
  "arriveAirportName": "Heathrow Airport",
  "departAt": "2026-12-27T18:40",
  "arriveAt": "2026-12-28T06:40",
  "totalDurationMinutes": 420,
  "duration": "7 hr",
  "stops": 0,
  "emissionsKg": 442,
  "typicalEmissionsKg": 435,
  "emissionsVsTypicalPercent": 2,
  "segments": [
    { "flightNumber": "BA 174", "airline": "British Airways", "from": "JFK", "to": "LHR", "departAt": "2026-12-27T18:40", "arriveAt": "2026-12-28T06:40", "durationMinutes": 420, "aircraft": "Boeing 777", "legroom": "31 inches", "emissionsKg": 442 }
  ],
  "priceLevel": "high",
  "lowestPrice": 1306,
  "typicalPriceLow": 630,
  "typicalPriceHigh": 1250,
  "returnFlights": [
    { "airline": "American", "flightNumbers": ["AA 107"], "departAirport": "LHR", "arriveAirport": "JFK", "departAt": "2027-01-03T15:35", "arriveAt": "2027-01-03T19:00", "duration": "8 hr 25 min", "stops": 0, "emissionsVsTypicalPercent": 11, "totalPrice": 1713 }
  ],
  "bookingOptions": [
    { "seller": "American", "isAirline": true, "price": 1713, "fareName": "Basic Economy", "checkedBagFees": [170, 200], "sellerSite": "www.aa.com/...", "bookingUrl": "https://www.google.com/travel/clk/f?u=AAcRjHKJddoc4c9_V2SY...", "isSeparateTickets": false },
    { "seller": "Iberia", "isAirline": true, "price": 2098, "fareName": "Economy Basic", "checkedBagFees": [], "sellerSite": "www.iberia.com/...", "isSeparateTickets": false }
  ],
  "bestBookingPrice": 1713,
  "bestBookingSeller": "American",
  "flightUrl": "https://www.google.com/travel/flights/search?tfs=Gj8SCjIwMjYtMTItMjciHwoDSkZLEgoyMDI2LTEyLTI3GgNMSFIqAkJBMgMxNzRqBwgBEgNKRktyBwgBEgNMSFIaHhIKMjAyNy0wMS0wM2oHCAESA0xIUnIHCAESA0pGS0ABSAGYAQE&hl=en&gl=US&curr=USD",
  "title": "JFK → LHR 2026-12-27T18:40 · BA 174 · 1713 USD",
  "scrapedAt": "2026-11-17T15:14:57+00:00",
  "source": "google.com/travel/flights"
}
```

That one flight came back with **14 booking options**: 13 fares from five airlines plus a separate-tickets offer split into its tickets. Google rated the route's fares **high** for that date.

**Multi-city rows** add `multiCityItinerary`, which holds the chosen flights for legs 2 to N in the same shape as the main itinerary, and `totalPrice`, Google's price for the complete trip. Google re-prices the full combination, so `totalPrice` can differ from the first-leg "from" price. `flightUrl` opens the whole chosen trip.

A real **Explore** `destination` row, trimmed:

```json
{
  "type": "destination",
  "origin": "JFK",
  "rank": 1,
  "destinationName": "Detroit",
  "destinationCountry": "United States",
  "destinationAirport": "DTW",
  "destinationId": "/m/02dtg",
  "latitude": 42.3297182,
  "longitude": -83.0424533,
  "price": 157,
  "airline": "JetBlue",
  "airlineCodes": ["B6"],
  "stops": 1,
  "duration": "2 hr 13 min",
  "tripType": "roundTrip",
  "departureDate": "2027-01-31",
  "returnDate": "2027-02-09",
  "googleFlightsUrl": "https://www.google.com/travel/flights/search?tfs=Gh4SCjIwMjctMDEtMzFqBwgBEgNKRktyBwgBEgNEVFcaHhIKMjAyNy0wMi0wOWoHCAESA0RUV3IHCAESA0pGS0ABSAGYAQE&hl=en&gl=US&curr=USD"
}
```

#### Data fields

- **Route & search:** route, trip type, dates, `multiCityLegs`, `tripLengthDays`, cabin, passengers, currency, market.
- **Itinerary:** rank, price, airline(s), flight numbers, airports, times, duration, stops, `layovers`, `segments`.
- **Verdict & emissions:** best/cheapest/fastest flags, `priceLevel`, typical range, `priceHistory`, CO2 fields.
- **Booking, returns & multi-city:** `returnFlights`, `multiCityItinerary`, `totalPrice`, `bookingOptions`, `bestBookingPrice`, `bestBookingSeller`.
- **Destinations:** `destinationName`, `destinationCountry`, `destinationAirport`, `destinationId`, `latitude`, `longitude`, `imageUrl`.
- **Links & tracking:** `flightUrl`, `googleFlightsUrl`, `changeType`, `previousPrice`, `priceChange`, `priceChangePercent`.

Missing values are `null`, and **`excludeEmptyFields`** drops them. The Output tab has three ready-made views: **Flights**, **Price calendar** and **Explore destinations**.

***

### 🔔 How to monitor Google Flights and get alerts for fare changes

With **Track fare changes** on, each scheduled run returns only flights that are **NEW** or whose fare was **UPDATED**, with `previousPrice`, `priceChange` and `priceChangePercent` set. Unchanged fares are skipped and not charged, so after the first run you pay only for what moved. Calendar days and Explore destinations are tracked the same way.

1. Enter your routes with **relative dates** like `+30` and `+37`, so every run compares the same lead time, and add any filters.
2. Turn on **Track fare changes** and run once. This first run returns the full list and records the baseline.
3. Open the **Schedules** tab and set a recurring run, for example every morning.
4. Add the alert channels you want. Each one fires on its own, so a broken channel can't stop the run or the others:

   | Channel | What to configure |
   |---|---|
   | ✈️ **Telegram** | `telegramToken` (from @BotFather) + `telegramChatId` |
   | 💬 **Slack** | `slackWebhookUrl` (Incoming Webhook URL) |
   | 🎮 **Discord** | `discordWebhookUrl` (channel webhook URL) |
   | 🪝 **Webhook** | `webhookUrl` receives JSON, which suits n8n, Make or Zapier |

Each alert lists only the new or re-priced flights. A run where no fare moved sends nothing.

***

### 💡 What can you do with Google Flights data?

#### Track fares and catch price drops

Watch your routes daily and get pinged when a fare falls. `priceChange` and Google's price level tell you whether it's a real deal.

#### Find the cheapest dates and destinations

Use Explore to find where you can fly cheaply, then sweep up to 330 days with the price calendar to pick the day.

#### Airline and route market research

Compare carriers, schedules, nonstop share and fares across hundreds of itineraries per route, and follow the typical price range over time.

#### Compare booking channels and bag fees

See what each airline and agency charges for the same flight, which fare families they sell, and what checked bags cost.

#### Power travel apps, deal feeds and maps

Feed itineraries, destinations with coordinates and booking links into a product, a deals newsletter or a dashboard.

#### Feed AI agents and LLM pipelines

Give a travel assistant or MCP client clean JSON instead of a web page.

***

### 💰 How much does it cost to scrape Google Flights?

This Actor uses Apify's **pay-per-event** model: a small fee when a run starts, then a fee for each result row (a flight, destination, calendar day or search summary). A **multi-city** option that is completed through every leg adds one small fee for that completed trip; nothing else adds a fee. See the **Pricing** tab for current rates, which are always shown live.

Return flights, multi-city legs and booking options are **nested in the flight row**, so they add detail without adding rows. Three levers lower your bill further:

- **Filters, `maxResults` and `maxDestinations`:** rows you filter out or cut aren't billed.
- **Calendar-only mode:** one row per day is the lightest way to sweep dates.
- **Fare tracking:** after the baseline you pay only for changes.

***

### 🔌 Integrations & export

Export to **JSON, CSV, Excel** or HTML, or use the **REST API** and the **JavaScript / Python** clients. You can run it on a **schedule**, connect it to **Google Sheets, Slack, Make, Zapier and n8n**, and use it as an **MCP tool** for AI agents.

Also for travel data: [Google Hotels Scraper](https://apify.com/corvuslab/google-hotels-scraper) returns hotel prices from every booking site, a price calendar and price tracking.

***

### 🔗 Using the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run_input = {
    "origin": "JFK",
    "destination": "LAX",
    "departureDate": "+30",
    "sortBy": "price",
    "maxResults": 50,
    "includeBookingOptions": True,
}

run = client.actor("corvuslab/google-flights-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["price"], item["airline"], item["departAt"], item["stops"])
```

It also works with the JavaScript/TypeScript client, the Apify CLI and the REST API.

***

### ❓ FAQ

**How many flights can I get per search?** As many as Google lists, up to about 300: we measured 300 on NYC → LAX and 125 on JFK → LAX one-way. The list is sorted first and cut second, so `sortBy: price` gives you the cheapest.

**Can I search a whole city, like New York or London?** Yes. A city code (`NYC`, `LON`, `PAR`, `TYO`…) searches every airport in that city. You can also list airports yourself: `JFK, EWR`.

**What dates does Explore use?** Google's own suggested cheapest dates for each destination, usually trips of about a week over the coming months. Explore doesn't take fixed dates. For exact dates, put the destinations in `routes` or use the price calendar.

**How do multi-city trips work?** You get the first-leg options, each priced for the whole trip. The top 5 (`maxMultiCityResolutions`) are completed through every later leg, taking the cheapest flight at each step, with the full itinerary and Google's total price. Booking options work for the complete trip.

**Why is `fareName` or `checkedBagFees` empty on some booking options?** Both come from the seller. Airlines that sell fare families name them and often list bag fees, but most agencies don't. An empty bag list means no fee was shown, which doesn't guarantee bags are free.

**Why are there only a few return flights or booking options?** They're added for the **top** itineraries: 5 by default, up to 50 with `maxReturnResolutions` and `maxBookingResolutions`.

**How far ahead can I search?** About 11 months (330 days). Past dates are rejected before the run starts, and an airport code Google doesn't recognise ends the run with a clear message.

**Why might a price differ from my browser?** Prices depend on the **market**, the **currency** and the passengers, so set `market` and `currency` to match yours. Round-trip prices cover both directions and all passengers.

**Does fare tracking report flights that disappeared?** No. Google re-sorts and caps its lists, so a flight missing from one run hasn't necessarily stopped selling.

**Do I need a Google account or a proxy?** No. There's no login and no cookies, and it runs out of the box.

***

### 🧭 More scrapers from us

These pick up where this one stops.

| Scraper | What it adds |
|---|---|
| [Google Hotels Scraper](https://apify.com/corvuslab/google-hotels-scraper) | Hotel prices from every booking site, with a price calendar |
| [Google Trends Scraper](https://apify.com/corvuslab/google-trends-scraper) | Search interest over time and by region, plus rising searches |
| [Google Shopping Scraper](https://apify.com/corvuslab/google-shopping-scraper) | Product prices, stores and seller offers in 29 countries |
| [Google Maps Rank Tracker](https://apify.com/corvuslab/google-maps-geo-grid-rank-tracker) | Where a business ranks on Google Maps, next to its competitors |
| [Trustpilot Scraper](https://apify.com/corvuslab/trustpilot-scraper) | Every review past the 200 cap, with TrustScore and replies |
| [Google Ads Scraper](https://apify.com/corvuslab/google-ads-transparency-scraper) | Every ad a brand runs on Google, with reach by country |

***

### ⚖️ Is it legal to scrape Google Flights?

This Actor collects only **publicly available** flight and fare information, the same as anyone sees on Google Flights without logging in, and no personal data. You're responsible for how you use the results and for complying with Google's terms and applicable law (including the GDPR/LGPD where they apply). Not affiliated with, endorsed by or sponsored by Google LLC.

***

**Keywords:** google flights scraper · google flights api · scrape google flights · flight price tracker · flight fare alerts · cheapest destinations from airport · google flights explore · cheap flights finder · flight price calendar · multi-city flights · flight booking options · airline fare data · flight price history · CO2 emissions per flight · export flights to CSV · no-code scraper · MCP tool for AI agents

# Changelog

This Actor's version history is a separate document: https://apify.com/corvuslab/google-flights-scraper/changelog.md

# Actor input Schema

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

3-letter airport code, for example JFK, LHR or SIN. Several airports: JFK, EWR. City codes NYC, LON, PAR, TYO, CHI, WAS, MIL, ROM, SAO, BJS, SEL, STO and a few more search all of that city's airports. Empty with no routes below = a demo search JFK → LAX.

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

3-letter airport code, for example LAX, CDG or BKK. Several airports and city codes work as for From.

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

YYYY-MM-DD, or a number of days from today such as +30 (keeps a scheduled run moving forward). Up to about 11 months ahead. Empty = 30 days from today.

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

Leave empty for one-way. YYYY-MM-DD or days from today such as +37. Round-trip prices are the total for both directions.

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

Several routes in one run, each searched separately: \[{"origin": "JFK", "destination": "LHR", "departureDate": "+30", "returnDate": "+37"}]. A route without dates uses the dates above. Passengers, cabin and filters apply to every route.

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

One multi-city trip, two or more legs in travel order: \[{"origin": "SIN", "destination": "BKK", "date": "+30"}, {"origin": "BKK", "destination": "HKT", "date": "+35"}]. Returns the first-leg options priced for the whole trip; the top ones are completed through every leg (see Multi-city options to complete).

## `exploreDestinations` (type: `boolean`):

List the cheapest destinations from the From airport instead of searching a fixed route. Each row is one destination with its cheapest fare, airline, stops, flight time and Google's suggested travel dates. To and the route fields are not used.

## `exploreRegions` (type: `array`):

Where to look. All = the whole world plus a deeper search of every region (the most destinations).

## `exploreTripType` (type: `string`):

Round trips (Google's suggested ~1-week trips) or one-way fares.

## `maxDestinations` (type: `integer`):

Destinations to return, cheapest first.

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

Passengers aged 12 and over (1–9). Prices are the total for all passengers.

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

Passengers aged 2 to 11.

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

Under 2, with their own seat.

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

Under 2, on an adult's lap (one per adult).

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

Economy, premium economy, business or first.

## `maxResults` (type: `integer`):

Itineraries to return per route and date, 1–300 (Google lists up to about 300). The list is sorted first and cut second, so with Sort by = Cheapest you get the cheapest ones.

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

Google's own orders: Best (Google's ranking), Cheapest, Departure time, Arrival time or Duration.

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

Any number of stops, nonstop only, up to one or up to two stops.

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

2-letter airline codes (DL, BA, SQ) or an alliance: ONEWORLD, SKYTEAM, STAR_ALLIANCE. Empty = all airlines.

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

2-letter airline codes to leave out, for example F9 or NK.

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

Leave out itineraries above this price (in your currency, all passengers).

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

Leave out itineraries longer than this, for example 720 for 12 hours.

## `maxLayoverMinutes` (type: `integer`):

Leave out itineraries with any layover longer than this, for example 180.

## `departureTimeFrom` (type: `string`):

Earliest local departure time, for example 06:00.

## `departureTimeTo` (type: `string`):

Latest local departure time, for example 12:00.

## `arrivalTimeFrom` (type: `string`):

Earliest local arrival time.

## `arrivalTimeTo` (type: `string`):

Latest local arrival time, for example 22:00.

## `includeReturnFlights` (type: `boolean`):

For the top outbound itineraries of a round trip, add Google's return flights, each with the total price for both directions.

## `maxReturnResolutions` (type: `integer`):

Per search, counted from the top of the sorted list. Each one takes one extra request.

## `maxReturnOptions` (type: `integer`):

How many return flights to keep for each outbound flight, cheapest first.

## `includeBookingOptions` (type: `boolean`):

For the top itineraries, add every seller Google lists — the airline and travel agencies — with their price, fare name, checked-bag fees and a booking link. Round trips are priced with the cheapest return flight.

## `maxBookingResolutions` (type: `integer`):

Per search, counted from the top of the sorted list. Each one takes one or two extra requests.

## `maxMultiCityResolutions` (type: `integer`):

For a multi-city trip, follow this many first-leg options through every later leg (cheapest flight at each step), adding the full itinerary and its total price. 0 = first leg only. One extra request per later leg.

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

Cheapest fare for each departure date over this many days, starting at the departure date — Google's date grid as rows (type calendarDay). 0 = off, 60 = two months, up to 330. Round trips keep the trip length fixed.

## `calendarOnly` (type: `boolean`):

Return only the price calendar — the cheapest way to sweep dates or routes.

## `includePriceHistory` (type: `boolean`):

Add Google's ~60-day history of the lowest price for the route to every flight row. The price level (low / typical / high) and typical price range are always included.

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

Add one row per search (type searchSummary) with how many flights Google listed, the lowest price, price level, typical range and price history.

## `trackPriceChanges` (type: `boolean`):

Remember each flight's fare. Later runs mark rows NEW or UPDATED (fare changed), add previousPrice and priceChange, and skip flights whose fare did not change — those are not charged. With relative dates (+30) the same lead time is compared every day.

## `stateKey` (type: `string`):

Optional name for the fare history, so several schedules can share or separate it. Empty = derived from your routes, dates and passengers.

## `emitUnchanged` (type: `boolean`):

Also return flights whose fare did not change (marked UNCHANGED, charged as results).

## `telegramToken` (type: `string`):

Bot token from @BotFather.

## `telegramChatId` (type: `string`):

Chat or channel ID, e.g. "-100123456789" or "@yourchannel".

## `slackWebhookUrl` (type: `string`):

Slack incoming-webhook URL.

## `discordWebhookUrl` (type: `string`):

Discord incoming-webhook URL.

## `webhookUrl` (type: `string`):

Any HTTPS endpoint. Receives a JSON POST with the flights — works with n8n, Make and Zapier.

## `webhookHeaders` (type: `object`):

Extra headers for the webhook request, e.g. {"Authorization": "Bearer xyz"}.

## `notificationLimit` (type: `integer`):

How many flights to include in each notification message.

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

ISO code for prices: USD, EUR, GBP, INR, SGD…

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

Two-letter country code of the point of sale, e.g. US, GB, DE, IN. Fares, sellers and booking links can differ by market.

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

Language of airport and airline names, e.g. en, de, es, fr.

## `excludeEmptyFields` (type: `boolean`):

Drop fields that have no value from each row, for smaller exports.

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

Optional. The actor works without a proxy; set one only if your runs are refused.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30",
  "routes": [],
  "multiCityLegs": [],
  "exploreDestinations": false,
  "exploreRegions": [
    "all"
  ],
  "exploreTripType": "roundTrip",
  "maxDestinations": 100,
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxResults": 100,
  "sortBy": "best",
  "maxStops": "any",
  "includeReturnFlights": false,
  "maxReturnResolutions": 5,
  "maxReturnOptions": 10,
  "includeBookingOptions": false,
  "maxBookingResolutions": 5,
  "maxMultiCityResolutions": 5,
  "calendarDays": 0,
  "calendarOnly": false,
  "includePriceHistory": false,
  "includeSearchSummary": false,
  "trackPriceChanges": false,
  "emitUnchanged": false,
  "notificationLimit": 5,
  "currency": "USD",
  "market": "US",
  "language": "en",
  "excludeEmptyFields": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

## `explore` (type: `string`):

No description

## `allItems` (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": "JFK",
    "destination": "LAX",
    "departureDate": "+30",
    "routes": [],
    "multiCityLegs": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("corvuslab/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": "JFK",
    "destination": "LAX",
    "departureDate": "+30",
    "routes": [],
    "multiCityLegs": [],
}

# Run the Actor and wait for it to finish
run = client.actor("corvuslab/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": "JFK",
  "destination": "LAX",
  "departureDate": "+30",
  "routes": [],
  "multiCityLegs": []
}' |
apify call corvuslab/google-flights-scraper --silent --output-dataset

```

## MCP server setup

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