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

Scrape Google Flights: the full list of flights of a route and date, one-way or round trip, with price, airlines, times, stops, layovers and CO2. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/google-flights-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Travel, MCP servers, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.04 / 1,000 flights

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

### ✈️ What is Google Flights Scraper?

**Google Flights Scraper** extracts **flights from [Google Flights](https://www.google.com/travel/flights)**: **price, airlines, flight numbers, departure and arrival times, duration, stops and layovers, aircraft, legroom, CO2 versus the usual, and Google's price level for the search**, one-way or round trip, for several routes and dates in one run. You get the **full list of flights** of each search, not only the 8 to 22 "best" flights most tools return. Tick the options you need to add **every seller of a flight with its price and booking link, the return flights, a day-by-day price calendar, Google Explore destinations and a search summary with 60 days of price history**. It works as a **Google Flights API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type a **departure** and an **arrival** airport (`CDG` and `JFK`), pick your dates, passengers and currency, click **Start**, and download the flights in JSON, CSV or Excel. No login, nothing to set up, and it is **fast: one search gives about 80 to 190 flights, and a whole run takes about 10 to 25 seconds** in our tests. Dates can be relative (`30 days` from the run date), so a saved task always looks the same distance ahead.

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

One item per flight, 65 fields. The rows marked **option** come only when you tick the matching option; each option adds its own rows and is charged on its own, only when ticked (see Pricing).

| Category                           | What you get                                                                                                                                       |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| ✈️ **Flight**                      | airline and its code, every airline of the trip, the airlines that really fly it, flight numbers, airline logo — `Vueling`, `VY7643`               |
| 🕒 **Times**                       | local departure and arrival time, arrival on the next day or not, total travel time — `2026-12-01T20:50`, `135` minutes                            |
| 📍 **Airports**                    | departure and arrival airport codes, names and cities — `LHR`, `Heathrow Airport`, `London`                                                        |
| 🔁 **Stops and layovers**          | number of stops, each connection with its airport, city and length                                                                                 |
| 💺 **Segments and aircraft**       | each flown leg: aircraft, legroom, overnight or not, the other flight numbers it is sold as, its CO2 — `Airbus A320`, `29 in`                      |
| 💰 **Price**                       | total price for all passengers (the whole trip for a round trip), currency, Google's price level for the search and the usual price range — `114 USD`, `low` |
| 🌱 **CO2**                         | Google's CO2 estimate for the flight, the usual one for the route, and the difference in percent — `101 kg`, `-1 %`                               |
| 🧳 **Bags**                        | whether the fare includes overhead bin access (basic economy or not), each airline's baggage page                                                  |
| 🔗 **Links**                       | the Google Flights page of this exact flight with its sellers, the search page, Google's booking token                                             |
| 🔎 **Search**                      | route and dates searched, one-way or round trip, cabin, passengers, rank in Google's order, Google's top flights                                   |
| 🏷️ **Sellers** (option)            | every place that sells the ticket (the airline and the travel agencies): price, fare name, website, booking link — `Expedia`, `Main Flex`          |
| 🔙 **Return flights** (option)     | the return flights Google offers with an outbound flight, with the price of the whole trip                                                         |
| 📅 **Price calendar** (option)     | day by day, the cheapest price of a departure on that day, with the airline and stops of the cheapest flight                                       |
| 🌍 **Explore destinations** (option) | where you can fly from an airport for your dates: city, country, GPS position, photo and cheapest price — `Lisbon`, `Portugal`                   |
| 📊 **Search summary** (option)     | per search: lowest price, Google's price level and usual range, the price history of the last 60 days, the cheapest nearby dates                   |
| 🔔 **Price changes** (option)      | for a flight already delivered: its previous price, the change and the change in percent                                                           |

Every field, with an example, is listed in the **Output** section below.

A field that does not apply to a row (a seller on a flight row, a flight number on a calendar day) is `null` or an empty list, never missing, so every row has the same columns. The column `recordType` tells the kind of each row.

### ✅ Why use Google Flights Scraper?

- 📜 **The full list, not only the top flights**: about 80 to 190 flights per search in our tests, where most tools stop at Google's 8 to 22 "best" flights.
- 🚀 **Fast**: a whole run of one search takes about 10 to 25 seconds; with 10 flights and the return flights, the summary and a 10-day price calendar added, about 10 to 15 seconds; the options that open a browser (sellers, Explore) take 20 to 45 seconds.
- 🗂️ **Many searches in one run**: several departure airports × destinations × a range of departure dates, ready-made routes with their own dates, and pasted Google Flights links, with a cap per search if you want one.
- 🎯 **Google's own filters, and more**: passengers, cabin, stops, airlines or alliances and bags are sent to Google; max price, departure and arrival hours, total duration, layover length, connecting airports, excluded airlines, basic economy and lower emissions are applied to the full list.
- 💺 **Details nobody else gives in the base row**: legroom, aircraft, the other flight numbers a flight is sold as, CO2 versus the usual, Google's price level and usual range, and the link of the exact flight.
- 🧩 **Pay for what you use**: sellers, return flights, calendar, Explore, search summary and price changes are options, unticked by default.
- 🔔 **Monitoring built in**: tick **Only new flights**, schedule the Actor, and each run saves (and charges) only the flights it has never delivered before. Add **Price changes** to get a delivered flight again when its price moves.
- 🔌 API, scheduling, monitoring, integrations (Make, Zapier, n8n, Google Sheets…), proxy rotation and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Google Flights

1. Create a free Apify account.
2. Open **Google Flights Scraper** and type a **From** and a **To** airport or city code (e.g. `CDG` and `JFK`, or `PAR` for every Paris airport).
3. Or fill **Routes** (`CDG-JFK 2026-12-10`), or paste your own Google Flights search links into **Google Flights links** (their airports, dates, passengers, cabin, stops and airlines are kept).
4. Pick the **Departure date** (and a **Return date** or a **Trip length** for a round trip), the passengers and the currency, set **Max flights** (100 by default, 0 = no limit) — and **Max flights per search** when you run several searches — then click **Start**.
5. Tick the options you want (search summary, return flights, sellers, calendar, Explore) and download the dataset in JSON, CSV, Excel or via API.

With no route and no link, the Actor runs an example (CDG to JFK, at most 20 flights) instead of stopping.

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

This Actor uses **pay per event** pricing: a price per flight saved (`flight`) plus a small fee per run start (`apify-actor-start`). The exact amounts, for every Apify plan, are on the **Pricing** tab of this page. Platform usage (compute, proxy) is included in the price.

Every option is **unticked by default** and charged only when ticked, per row it delivers:

| Option                    | Event                 | Charged per                                                                                  |
| ------------------------- | --------------------- | -------------------------------------------------------------------------------------------- |
| **Search summary**        | `search-summary`      | summary row (one per search)                                                                 |
| **Return flights**        | `return-flight`       | return flight saved (set how many outbound flights get theirs with **outbound flights to expand**) |
| **Booking options (sellers)** | `booking-option`  | seller saved (set how many flights get theirs with **flights to expand**); an offer Google gives no booking link for is saved free |
| **Price calendar**        | `calendar-day`        | day with a price (days with no price are listed free; set the number with **Price calendar: days**) |
| **Explore destinations**  | `explore-destination` | destination saved (cap it with **Explore: max destinations**)                                |
| **Price changes**         | `price-change`        | flight that comes back because its price moved, on top of the flight itself                  |

The rows of the options do not count in **Max flights**: that cap is for the flights only. A search Google returns no flight for gives one free `no-flights` row, so you know it came back empty; that free row takes one place of **Max flights**. A flight that a filter removes is neither saved nor charged. Set the run option **maximum cost per run** to cap what a run can spend: the Actor stops saving rows when the cap is reached.

### ⚙️ Input

One-way, Paris to New York, 30 days from the run date:

```json
{
    "origin": "CDG",
    "destination": "JFK",
    "departureDate": "30 days",
    "maxItems": 100
}
```

Round trips of 5 days from every London airport to three cities, nonstop only, cheapest first, 30 flights per search:

```json
{
    "origin": "LON",
    "destinations": ["BCN", "MAD", "LIS"],
    "departureDate": "21 days",
    "tripLengthDays": 5,
    "maxStops": "0",
    "sortBy": "price",
    "maxItemsPerQuery": 30,
    "currency": "GBP",
    "country": "gb"
}
```

A week of departure days on one route, morning flights under 300, no basic economy:

```json
{
    "routes": ["JFK-LAX"],
    "departureDate": "14 days",
    "departureDateTo": "20 days",
    "maxPrice": 300,
    "departureTimeFrom": 6,
    "departureTimeTo": 12,
    "excludeBasicEconomy": true
}
```

A round trip with every option ticked (sellers and Explore need a run memory of at least 1 GB):

```json
{
    "origin": "LHR",
    "destination": "BCN",
    "departureDate": "25 days",
    "returnDate": "30 days",
    "includeSearchSummary": true,
    "includeReturnFlights": true,
    "returnFlightsForTop": 3,
    "includeBookingOptions": true,
    "bookingOptionsForTop": 2,
    "includeCalendar": true,
    "calendarDays": 60,
    "includeExplore": true,
    "maxExploreDestinations": 20
}
```

| Field                                                         | Notes                                                                                                                                                                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `origin`, `origins`                                           | Departure airport as a 3-letter IATA code (`CDG`, `JFK`), or a city code that covers all its airports (`PAR`, `NYC`, `LON`). Several codes separated by commas (`CDG, ORY`), or one per line in `origins`: every departure airport is searched to every destination (max 500 searches per run). |
| `destination`, `destinations`                                 | Arrival airport or city, same codes: `JFK`, `BCN`, `NYC`. `destinations` adds more, one per line.                                                                                                     |
| `routes`                                                      | Ready-made routes, one per line: `CDG-JFK` (on the dates of the form), `CDG-JFK 2026-12-10` (one-way), `CDG-JFK 2026-12-10 2026-12-17` (round trip); a date may be a period from the run date: `LHR-BCN 30 days 35 days`. Max 500 routes. |
| `startUrls`                                                   | Google Flights search links, copied from the address bar after a search on Google Flights: their airports, dates, passengers, cabin, stops and airlines are kept, and the full list of flights is read. Max 500 links (one link = one search). |
| `departureDate`                                               | Outbound day: a date (`2026-12-20`) or a period from the run date (`30 days`, `2 weeks`, `3 months`). Empty = 30 days from the run date. Google Flights sells up to about 330 days ahead.              |
| `departureDateTo`                                             | Last departure day of a date range (`2026-12-20`, `45 days`): every day from **Departure date** to this one is its own full search, 60 days at most.                                                   |
| `returnDate`, `tripLengthDays`                                | Round trip: a return day (`2026-12-27`, `37 days`), or a trip length in days after each departure day, used when the return date is empty (the return must be within 330 days of today). Both empty = one-way. Round-trip prices are for the whole trip. |
| `adults`, `children`, `infantsInSeat`, `infantsOnLap`         | Passengers: adults aged 12 or more (1 by default), children aged 2 to 11, infants under 2 in their own seat or on a lap (one per adult at most); 9 passengers in all.                                    |
| `cabinClass`                                                  | `economy` (default), `premium_economy`, `business`, `first`.                                                                                                                                             |
| `maxStops`                                                    | Most stops, sent to Google: `any` (default), `0` (nonstop only), `1`, `2`.                                                                                                                              |
| `airlines`                                                    | Only these airlines, sent to Google: 2-character IATA codes (`AF`, `DL`, `B6`) or an alliance (`ONEWORLD`, `SKYTEAM`, `STAR_ALLIANCE`). Empty = all airlines.                                         |
| `carryOnBags`, `checkedBags`                                  | Bags per passenger (carry-on 0 or 1, checked 0 to 2): prices then include the airline's bag fees, and fares without overhead bin access disappear — as with the Bags filter of Google Flights.         |
| `currency`                                                    | Currency of every price, among 40: `USD` (default), `EUR`, `GBP`. A pasted link keeps its own currency.                                                                                                |
| `language`                                                    | Language of airport, city and airline names, among 32: `en` (default), `fr`, `de`.                                                                                                                     |
| `country`                                                     | Market Google Flights prices for, among 46: `us` (default), `gb`, `fr`. Fares and sellers can differ by market.                                                                                        |
| `sortBy`                                                      | `best` (default: Google's own order, top flights first), `price`, `duration`, `departure`, `arrival`. The whole list is sorted before any cap, so a cap keeps the cheapest, the shortest…              |
| `maxItems`, `maxItemsPerQuery`                                | Most flights for the whole run (100 by default) and for each search (route × date); `0` = no limit. The rows of the options are not counted.                                                            |
| `includeSearchSummary`                                        | Option: one summary row per search — lowest price, Google's price level and usual range, the price history of the last 60 days and the cheapest nearby dates. No extra page.                         |
| `includeReturnFlights`, `returnFlightsForTop`                 | Option, round trips only: the return flights of the first outbound flights of each search (3 by default, up to 50, in the order of **Sort by**), with the price of the whole trip.                    |
| `includeBookingOptions`, `bookingOptionsForTop`               | Option: every seller of the first flights of each search (3 by default, up to 50), with its price and booking link. Opens a real browser: give the run at least 1 GB of memory.                        |
| `includeCalendar`, `calendarDays`                             | Option: the cheapest price of each departure day from the departure date, 30 days by default, up to 120. A round trip keeps the same trip length.                                                       |
| `includeExplore`, `maxExploreDestinations`                    | Option: the destinations Google Explore suggests from each departure airport, with their cheapest price for the dates (50 by default, up to 500). Opens a real browser: at least 1 GB of memory.        |
| `maxPrice`                                                    | Highest price in **Currency** (the whole trip for a round trip); `0` = no limit. When set, a flight with no price is dropped.                                                                           |
| `maxDurationMinutes`                                          | Longest door-to-door time in minutes, layovers included: `600` = 10 hours; `0` = no limit.                                                                                                             |
| `departureTimeFrom`, `departureTimeTo`                        | Local departure hour window, both ends included: `6` and `12` keep the flights leaving from 06:00 to 12:00. The end goes up to 24 (midnight). Empty = any.                                             |
| `arrivalTimeFrom`, `arrivalTimeTo`                            | The same for the local arrival hour.                                                                                                                                                                    |
| `minLayoverMinutes`, `maxLayoverMinutes`                      | Every connection must last at least / at most this many minutes (`60`, `240`); `0` = no limit. Nonstop flights are kept.                                                                               |
| `connectingAirports`, `excludeConnectingAirports`             | Connect only via these airports (`KEF`, `DOH`; nonstop flights are kept), or never via those of the second list.                                                                                        |
| `excludeAirlines`                                             | Drop a flight when one of its segments is marketed by, or also sold under a flight number of, one of these airlines (2-letter codes): `FR`, `U2`. The operating carrier is only given by name and is not matched.                                                                                                                     |
| `excludeBasicEconomy`, `lessEmissionsOnly`                    | Drop the flights whose shown fare (the cheapest one, the price you get) has no overhead bin access (basic economy), a dearer fare with a bag is not looked at, and a flight shown without a price is kept; keep only the flights whose CO2 estimate is below the usual one for the route.                                                             |
| `excludeKeywords`                                             | Drop the flights whose airline, aircraft or airport names contain one of these whole words ("A320" does not drop "A320neo"; case ignored): `Ryanair`, `Boeing 737`.                                                                           |
| `stateKey`, `onlyNew`, `resetState`                           | Monitoring: only the flights never delivered under this memory key (`cdg-jfk`) for the same search; `resetState` forgets the memory.                                                                  |
| `trackPriceChanges`, `priceChangeThreshold`                   | Price changes (option, needs `onlyNew`): a flight already delivered comes back when its price has moved by at least this percentage (3 by default, from 0.1 to 100).                                   |
| Advanced                                                      | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

One real flight of a London to Barcelona round trip, options off (shortened to about 30 lines: the `url` is cut, the segment and a few fields left out):

```json
{
    "recordType": "flight",
    "id": "2026-12-01_VY7643_r2026-12-06_economy",
    "url": "https://www.google.com/travel/flights/booking?…",
    "searchOrigin": "LHR",
    "searchDestination": "BCN",
    "tripType": "round-trip",
    "departureDate": "2026-12-01",
    "returnDate": "2026-12-06",
    "cabinClass": "economy",
    "price": 114,
    "currency": "USD",
    "isBest": true,
    "rank": 1,
    "airline": "Vueling",
    "airlineCode": "VY",
    "operatedBy": ["Iberia", "British Airways"],
    "flightNumbers": ["VY7643"],
    "origin": "LHR",
    "originName": "Heathrow Airport",
    "destination": "BCN",
    "destinationName": "Josep Tarradellas Barcelona-El Prat Airport",
    "departureTime": "2026-12-01T20:50",
    "arrivalTime": "2026-12-02T00:05",
    "arrivalDayOffset": 1,
    "durationMinutes": 135,
    "stops": 0,
    "aircraft": ["Airbus A320"],
    "carryOnIncluded": false,
    "co2Kg": 101,
    "typicalCo2Kg": 102,
    "co2DiffPercent": -1,
    "priceLevel": "low",
    "typicalPriceLow": 120,
    "typicalPriceHigh": 265,
    "seller": null,
    "previousPrice": null,
    "scrapedAt": "2026-11-06T23:27:56.824Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 65 fields

| Fields                                                                                                                    | What you get                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `recordType`, `id`, `url`                                                                                                 | **Row**: `flight`, `return-flight`, `booking-option`, `calendar-day`, `explore-destination`, `search-summary` or `no-flights`; stable key `2026-12-01_VY7643_economy` (a round trip: `2026-12-01_VY7643_r2026-12-08_economy`; with other passengers than 1 adult or with bags it ends with `_p2-1-0-0` (adults-children-infants in seat-infants on lap) and `_b1-0` (carry-on-checked)); the Google Flights page of this exact flight |
| `searchUrl`, `searchOrigin`, `searchDestination`, `tripType`                                                              | **Search**: the search page, `LHR`, `BCN`, `one-way` or `round-trip`                                                                                              |
| `departureDate`, `returnDate`, `cabinClass`, `passengers`                                                                 | `2026-12-01`, `2026-12-06` (null for one-way), `economy`, adults, children and infants of the search                                                              |
| `price`, `currency`, `priceLevel`, `typicalPriceLow`, `typicalPriceHigh`                                                  | **Price**: `114` for all passengers (the whole trip for a round trip), `USD`, Google's `low` / `typical` / `high` for the search, the usual range `120` to `265`    |
| `isBest`, `rank`                                                                                                          | one of Google's top flights or not, position in Google's order (`1` = first)                                                                                       |
| `airline`, `airlineCode`, `airlines`, `operatedBy`, `flightNumbers`, `airlineLogo`                                        | **Flight**: `Vueling`, `VY`, every airline of the trip, the airlines that fly it, `VY7643`, logo image                                                            |
| `origin`, `originName`, `originCity`, `destination`, `destinationName`, `destinationCity`                                 | **Airports**: `LHR`, `Heathrow Airport`, `London`, `BCN`, `Josep Tarradellas Barcelona-El Prat Airport`, `Barcelona` (the suggested city on an Explore row)        |
| `departureTime`, `arrivalTime`, `arrivalDayOffset`, `durationMinutes`                                                     | **Times**: local `2026-12-01T20:50` and `2026-12-02T00:05` (airport time, no time zone), `1` = next day, `135` minutes in all                                     |
| `stops`, `layovers`                                                                                                       | `0` = nonstop; each connection: airport code, name, city, minutes                                                                                                  |
| `segments`, `aircraft`                                                                                                    | each flown leg: flight number, airline, airports, times, minutes, aircraft, legroom (`29 in`, `29`), overnight, other flight numbers it is sold as, CO2; `Airbus A320` |
| `carryOnIncluded`, `baggagePolicyUrls`                                                                                    | **Bags**: `false` for a fare without overhead bin access (basic economy), each airline's baggage page                                                             |
| `co2Kg`, `typicalCo2Kg`, `co2DiffPercent`                                                                                 | **CO2**: `101` kg per passenger, `102` usual for the route, `-1` %                                                                                                 |
| `bookingToken`                                                                                                            | Google's token of this flight and fare                                                                                                                             |
| `outboundId`                                                                                                              | return flight and seller rows: the `id` of the flight they belong to                                                                                               |
| `seller`, `sellerCode`, `isAirline`, `bookingUrl`, `fareName`, `sellerDomain`, `sellerPrice`, `sellerCurrency`            | **Sellers** (option): `Expedia`, Google's seller code, sold by the airline or not, booking link, `Main Flex`, `www.expedia.com`, the price in the seller's own currency when it differs |
| `date`, `cheapestPrice`                                                                                                   | **Price calendar** (option): the departure day priced and its cheapest price; `cheapestPrice` is also the lowest price of an Explore or summary row                |
| `destinationCountry`, `latitude`, `longitude`, `destinationImage`                                                         | **Explore destinations** (option): `Portugal`, `38.72`, `-9.14`, Google's photo of the city                                                                       |
| `priceHistory`, `cheapestDates`                                                                                           | **Search summary** (option): price per day over the last 60 days, the cheapest nearby departure and return dates with their price                                 |
| `previousPrice`, `priceChange`, `priceChangePct`                                                                          | **Price changes** (option, with Only new flights): the price delivered before, the change, the change in percent                                                  |
| `scrapedAt`                                                                                                               | ISO timestamp of the extraction                                                                                                                                    |

### 💡 Tips

#### How to get more results

Each search already gives Google's full list of flights for the route and date, not only its top flights. To get more, search more: use a city code (`PAR`, `NYC`, `LON`) to cover all its airports, add destinations, or set **Last departure date** for a range of up to 60 departure days. Set `maxItems` to `0` for no cap, and keep **Stops** on any.

Google now and then renders a part of its list (26 flights where the same search gave 125 a few minutes later). The Actor spots it by the range of prices and durations the page announces, reads the page again up to two times, and if the list stays short it delivers it with a warning in the log.

#### How to reduce costs

The price is per flight saved, so the levers are `maxItems`, `maxItemsPerQuery` (with **Sort by** to keep the cheapest or the shortest), the filters (a flight they remove is never charged) and `onlyNew` for recurring runs (you never pay twice for the same flight). For the options, cap what each search brings: `returnFlightsForTop`, `bookingOptionsForTop`, `calendarDays` and `maxExploreDestinations`. For the cheapest price of each day without the flight lists, tick **Price calendar** instead of a date range.

#### Several searches in one run

Every departure airport is searched to every destination on every departure day: 2 airports × 3 destinations × 2 days = 12 searches, up to 500 per run. **Routes** add ready-made pairs, each with its own dates if you want, and **Google Flights links** add pasted searches. Set `maxItemsPerQuery` to give every search its own cap: without it the first searches can use up the whole `maxItems` budget.

#### Monitoring: only the new flights

Tick **Only new flights** (`onlyNew`), use fixed dates (`2026-12-20`: a relative date such as `30 days` moves the search every day, so every flight is new again) and schedule the Actor. The first run returns everything; each later run skips the flights already delivered for the same search: they are not saved and not charged. The search summary, the calendar days and the Explore destinations come back at every run (and are charged again), as the reading of that day. The memory lives in a named key-value store of your account (`google-flights-scraper-seen`, up to 150,000 listings per key) and is only updated with flights that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's flights), and tick `resetState` once to start over.

Tick **Price changes** (`trackPriceChanges`) as well and a flight already delivered comes back, whole, when its price has moved by at least **Price change threshold (%)** (3 % by default) since the run that delivered it. The row carries `previousPrice`, `priceChange` and `priceChangePct`; it is charged the flight price plus the `price-change` event, and a flight whose price did not move enough is skipped free.

#### Follow prices over time

To be told only when a price moves, tick **Only new flights** and **Price changes** (above). To keep the whole series instead, leave **Only new flights** off and schedule a task with a relative departure date (`30 days`): every run prices the same distance ahead, and each row carries its price and `scrapedAt`. Tick **Search summary** to get Google's price history of the last 60 days in one row, and **Price calendar** for the cheapest price of each departure day of the coming weeks.

#### Sellers and Explore: give the run more memory

**Booking options (sellers)** and **Explore destinations** open a real browser for the run. Set the run memory to at least 1 GB (Run options → Memory): with less, the run stops at the start and says so, before any flight is read. Sellers take about 2 to 4 seconds per flight; in our tests 2 flights gave 58 sellers (Vueling, British Airways, Iberia and about 15 travel agencies such as Booking.com, Expedia, Trip.com, eDreams and Kiwi.com), one-way and round trip alike. Explore gave 20 destinations, at the prices of the Explore page.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Google Flights flight. Actor id: `nice_dev/google-flights-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/google-flights-scraper`.

Smallest input, for a cheap first call:

```json
{
    "origin": "CDG",
    "destination": "JFK",
    "maxItems": 10
}
```

Key output fields: `price`, `currency`, `airline`, `flightNumbers`, `departureTime`, `arrivalTime`, `durationMinutes`, `stops`.

Cost: a price per flight saved plus a small fee per run start, and each ticked option per row it adds, see the pricing section above and the **Pricing** tab. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

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

The Actor only reads what Google Flights shows publicly to any anonymous visitor. It logs in to nothing and solves no captcha. Results are flight schedules, fares and sellers: they hold no personal data. You are responsible for using the data in compliance with Google's Terms of Service and applicable law. This Actor is not affiliated with Google.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the site turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds). Lower **Max requests per minute** if the log shows Google's "unusual traffic" page.

#### Are the prices the ones I see on Google Flights?

They are the prices Google Flights shows to a visitor who is not logged in, for the passengers, cabin, currency and market you asked for. A price is the total for all passengers; for a round trip it is the price of the whole trip, as on Google Flights. Prices are live: two runs a few minutes apart can differ.

#### Is the data safe to open in Excel or to show on a web page?

Every text is Google's own (airline, airport and city names, the sellers' fare names), copied as it is. The Actor leaves it as it is, so that the JSON and the API give the real value: when you open a CSV in Excel or Google Sheets, import the text columns as text. On a web page, escape every field like any text that comes from another site.

#### Known limitations

- **Multi-city trips** are not available: Google Flights gives no list for them, and a pasted multi-city link is refused. Search each leg as a one-way route instead.
- **Delays, on-time rates and self-transfer trips** (separate tickets) are not given by Google Flights.
- **Round trips**: the list gives the outbound flights, each with the price of the whole trip, as Google shows it; the return flights come with the **Return flights** option.
- **Dates**: with no departure date the search is 30 days after the run date. Google Flights sells up to about 330 days ahead: a past or later date is refused, and the whole run stops with that message. A pasted link keeps its own dates, so a link whose date is past is refused too: in a scheduled task, use a relative **Departure date** or paste a fresh link.
- **Passengers**: 9 at most, one infant on a lap per adult, as on Google Flights.
- **Sellers and Explore** need a run memory of at least 1 GB (see Tips).
- `onlyNew` remembers flights, not their price: without **Price changes**, a flight whose price moved is not returned again.
- Two runs sharing the same `stateKey` at the same time may both return the same new flight.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the flights already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved after each write (at most once every 2 seconds): resurrect the stopped run and the flights it had saved meanwhile join the memory; leave it stopped for good, and the next run may return the flights of its last 2 seconds once more.

#### Something doesn't work?

The last line of the log counts the flights saved, the other rows saved and the flights filtered out, and the requests that failed after every retry. Those requests are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A search Google returns no flight for is not a failure: it gives one free `no-flights` row. A run that saved nothing and had failed requests fails, and its last message gives the cause.

If Google Flights changes its pages, you are told instead of paying for blank rows. If the first 20 listings read all lack their airline code, their airports, their departure or arrival time, their duration, their segments or their flight numbers, the run saves nothing more, stops and fails, and its last message names the missing field: at most those first flights are charged. A flight that **Departure from**, **Arrival from** or **Max total duration** drops because it has no time or duration at all counts among those 20. A run of fewer flights (a scheduled `onlyNew` run that finds a few new ones, a small **Max flights**) is checked at its end, from 5 listings: its flights are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which requests failed and why.

# Actor input Schema

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

Departure airport or city, as a 3-letter IATA code (`CDG`, `JFK`) - a city code such as `PAR`, `NYC` or `LON` covers all its airports. Several codes separated by commas = one search per code.

## `origins` (type: `array`):

Several departure airports in one run, one IATA code per line (`ORY`, `BVA`). Added to **From**: every departure airport is searched to every destination (departure airports x destinations x dates max 500 searches).

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

Arrival airport or city, as a 3-letter IATA code (`JFK`, `NYC`). Several codes separated by commas = one search per code.

## `destinations` (type: `array`):

Several destinations in one run, one IATA code per line. Added to **To**.

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

Ready-made routes, one per line: `CDG-JFK`, optionally with their own dates `CDG-JFK 2026-12-10` (one-way) or `CDG-JFK 2026-12-10 2026-12-17` (round trip). A route without dates uses the dates below. Added to the airports above; max 500 routes.

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

Google Flights search links copied from the address bar (`https://www.google.com/travel/flights/search?tfs=...`): their airports, dates, passengers, cabin, stops and airlines are kept, and the Actor reads the full list of flights, not only the top ones. Added to the searches of this form. Max 500 links (one link = one search).

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

Outbound day: a date (`2026-12-20`), or a period from the run date such as `30 days`, `2 weeks` or `3 months` - a saved task then always looks the same distance ahead. Empty = 30 days from the run date. Google Flights sells up to about 330 days ahead.

## `departureDateTo` (type: `string`):

Search every departure day from **Departure date** to this day, each day being its own full search (max 60 days). A date (`2026-12-20`), or a period from the run date such as `45 days` or `2 months` - a saved task then always looks the same distance ahead. Empty = the departure date only. For the cheapest price of each day without the flight lists, use the **Price calendar** option.

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

Return day of a round trip: a date (`2026-12-20`), or a period from the run date such as `30 days`, `2 weeks` or `3 months` - a saved task then always looks the same distance ahead. Empty = one-way (unless **Trip length** is set). Prices of a round trip are for the whole trip, as on Google Flights.

## `tripLengthDays` (type: `integer`):

Round trip of this many days after each departure day - handy with a date range or a saved task. Used when **Return date** is empty. 0 = one-way. The return must be within 330 days of today, so with a departure 30 days ahead the longest trip is 300 days.

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

Passengers aged 12 or more.

## `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 (at most one per adult; Google Flights takes 9 passengers in all).

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

Cabin searched.

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

Most stops allowed, sent to Google with the search.

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

Only these airlines, sent to Google with the search: 2-character IATA codes (`AF`, `DL`, `B6`) or an alliance (`ONEWORLD`, `SKYTEAM`, `STAR_ALLIANCE`). Empty = all airlines.

## `carryOnBags` (type: `integer`):

Carry-on bags per passenger (0-1), sent to Google: prices then include the airline's fee for them, and fares without overhead bin access disappear - as with the Bags filter of Google Flights.

## `checkedBags` (type: `integer`):

Checked bags per passenger (0-2), sent to Google: prices then include their fee.

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

Currency of every price (Google converts it). A pasted link keeps its own currency.

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

Language of airport, city and airline names.

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

Country Google Flights prices for: fares and sellers can differ by market.

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

Order of the flights of each search. `Best` = Google's own order (its top flights first).

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

Most flights saved for the whole run (after filters). 0 = no limit. Google Flights lists about 80 to 190 flights per search; rows of the options are not counted here. The free row of a search with no flight takes one place.

## `maxItemsPerQuery` (type: `integer`):

Most flights saved for each search (route x date). 0 = no limit per search.

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

Add one row per search (`recordType` = `search-summary`): lowest price, Google's price level (low / typical / high) with the usual price range, the price history of the last 60 days, and the cheapest nearby dates Google shows. Read from the page already loaded: no extra request. Charged per summary row, see Pricing.

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

Round trips only. For the top outbound flights of each search (see the next field), add the return flights Google offers with it (`recordType` = `return-flight`), with the price of the whole trip. One extra page per outbound flight. Charged per return flight saved.

## `returnFlightsForTop` (type: `integer`):

Used with **Return flights**: how many outbound flights of each search (in the order of **Sort by**) get their return flights.

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

For the top flights of each search (see the next field), add every place that sells the ticket - the airline and the travel agencies - with its price and booking link (`recordType` = `booking-option`). Opens a browser: give the run at least 1 GB of memory. Read by a real Chrome browser started only for this option, about 2-4 seconds per flight. Charged per seller saved.

## `bookingOptionsForTop` (type: `integer`):

Used with **Booking options**: how many flights of each search (in the order of **Sort by**) get their sellers.

## `includeCalendar` (type: `boolean`):

Add, day by day from the departure date, the cheapest price Google shows for that day (`recordType` = `calendar-day`), with the airline and stops of the cheapest flight. For a round trip, the return keeps the same trip length. One light page per day. Charged per day with a price.

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

Used with **Price calendar**: number of days, from the departure date.

## `includeExplore` (type: `boolean`):

For each departure airport, add the destinations Google Explore suggests with their cheapest price for the dates (`recordType` = `explore-destination`) - to find where to go, not only how. Opens a browser: give the run at least 1 GB of memory. Read by a real Chrome browser started only for this option. Charged per destination saved.

## `maxExploreDestinations` (type: `integer`):

Used with **Explore destinations**: most destinations per departure airport.

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

Highest price, in the chosen currency. 0 = no limit.

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

Longest door-to-door time, layovers included. 0 = no limit.

## `departureTimeFrom` (type: `integer`):

Earliest local departure hour of the flight, 0-23. Empty = any.

## `departureTimeTo` (type: `integer`):

Latest local departure hour, 1-24 (24 = midnight). Empty = any.

## `arrivalTimeFrom` (type: `integer`):

Earliest local arrival hour, 0-23. Empty = any.

## `arrivalTimeTo` (type: `integer`):

Latest local arrival hour, 1-24. Empty = any.

## `minLayoverMinutes` (type: `integer`):

Shortest connection allowed. 0 = no limit.

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

Longest connection allowed. 0 = no limit.

## `connectingAirports` (type: `array`):

Keep flights whose every connection is at one of these airports (IATA codes). Nonstop flights are kept.

## `excludeConnectingAirports` (type: `array`):

Drop flights with a connection at one of these airports.

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

Drop a flight when one of its segments is marketed by, or also sold under a flight number of, one of these airlines (2-letter codes). The operating carrier is only given by name and is not matched.

## `excludeBasicEconomy` (type: `boolean`):

Drop the flights whose shown fare has no overhead bin access (`carryOnIncluded` = false): the basic economy fares. The shown fare is the cheapest one, the one `price` holds; a dearer fare of the same flight with a bag is not looked at, and a flight shown without a price is kept.

## `lessEmissionsOnly` (type: `boolean`):

Keep flights whose CO2 estimate is below the usual one for the route.

## `excludeKeywords` (type: `array`):

Drop flights whose airline, aircraft or airport names contain one of these whole words (case ignored; "A320" does not drop "A320neo").

## `onlyNew` (type: `boolean`):

Skip the flights a previous run (same **Memory key**) already delivered for the same search: not saved, not charged. A flight = same date, flight numbers and cabin. First run = everything is new.

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

Needs **Only new flights**. A flight already delivered comes back when its price has moved by at least the threshold below since the run that delivered it: `previousPrice`, `priceChange` and `priceChangePct` are filled. Charged per flight that comes back as a price change, on top of the flight itself, see Pricing; a flight whose price did not move enough is skipped and costs nothing.

## `priceChangeThreshold` (type: `number`):

Used with **Price changes**: 3 means a price going from 100 to 103 or to 97.

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

Name of the memory used by **Only new flights**. Give each schedule / task its own key (e.g. `cdg-jfk`). Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget the flights delivered under this **Memory key** before the run.

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

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

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

Maximum number of requests processed in parallel.

## `maxRequestsPerMinute` (type: `integer`):

Most requests to Google in any 60 seconds, all pages counted. Lower it if the log shows Google's "unusual traffic" page.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests, in milliseconds. 0 = no gap.

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. Behind a proxy, a request the site turns away is also retried on a new proxy session up to 10 times without using up these retries.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## Actor input object example

```json
{
  "origin": "CDG",
  "origins": [],
  "destination": "JFK",
  "destinations": [],
  "routes": [],
  "startUrls": [],
  "tripLengthDays": 0,
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "airlines": [],
  "carryOnBags": 0,
  "checkedBags": 0,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "sortBy": "best",
  "maxItems": 20,
  "maxItemsPerQuery": 0,
  "includeSearchSummary": false,
  "includeReturnFlights": false,
  "returnFlightsForTop": 3,
  "includeBookingOptions": false,
  "bookingOptionsForTop": 3,
  "includeCalendar": false,
  "calendarDays": 30,
  "includeExplore": false,
  "maxExploreDestinations": 50,
  "maxPrice": 0,
  "maxDurationMinutes": 0,
  "minLayoverMinutes": 0,
  "maxLayoverMinutes": 0,
  "connectingAirports": [],
  "excludeConnectingAirports": [],
  "excludeAirlines": [],
  "excludeBasicEconomy": false,
  "lessEmissionsOnly": false,
  "excludeKeywords": [],
  "onlyNew": false,
  "trackPriceChanges": false,
  "priceChangeThreshold": 3,
  "stateKey": "default",
  "resetState": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 8,
  "maxRequestsPerMinute": 120,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# 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": "CDG",
    "destination": "JFK",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/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": "CDG",
    "destination": "JFK",
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/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": "CDG",
  "destination": "JFK",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/google-flights-scraper --silent --output-dataset

```

## MCP server setup

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