# Google Flights Scraper: Fares, Calendar & Sellers, $0.50/1K (`laptime/google-flights-scraper`) Actor

$0.50/1K flights, no start fee. One of the fastest Google Flights scrapers, with price alerts. No login. Input airports or cities and dates: one-way, round trip, multi-city, cheapest-date calendar, price insight, every seller's fare, nearby airports, Anywhere.

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

## Pricing

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

**Google Flights Scraper** turns Google Flights into a spreadsheet of fares: type a route like `JFK` → `LAX` and dates, click **Start**, export to Excel. Every itinerary with price, times, stops, airlines, CO2 and Google's price insight. No login.

[![How to use Google Flights Scraper without coding: 1. Try for free 2. Type From, To and dates + Start 3. Fares, times and stops per flight 4. Export to Excel](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/google-flights-scraper-steps.jpg)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/google-flights-scraper-steps.jpg)

1. Click **Try for free** at the top of this page (a free Apify account includes $5 of credit every month).
2. In **From** and **To**, type airport codes, cities or a country, for example `JFK` and `LAX`; set **Departure date** and, for a round trip, **Return date**.
3. Click **Start**. The example round trip (20 flights) finishes in about 1–3 seconds.
4. Open the **Output** tab and click **Export** → **Excel** or CSV.

### Why this one

- 💰 **$0.50 per 1,000 flights**, no start fee, search summaries free: the example round trip (20 flights) costs **$0.01**. Half the price of the most used Google Flights scraper ($1 per 1,000).
- ⚡ **One of the fastest:** a 20-flight round trip in 1.2–3.4 s, 10 round trips (200 flights) in 6.1 s, 40 routes in 5.1 s (Apify, 19 November 2026, [benchmarks](#benchmarks)).
- ✈️ **Whole trips, not half trips:** round trips come as outbound + return pairs with the trip total; multi-city too.
- 📈 **Is it a good price?** Google's typical range, the price level, 60 days of price history and a plain **book now / wait** signal on every search, free.
- 🔔 **Price-drop alerts** to Slack, Discord or any webhook, only when a fare drops; a run where nothing changed costs $0.

[![Google Flights Scraper results in Apify: JFK to LAX round trips with price, departure and arrival, stops, airlines and CO2](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/google-flights-scraper-output.jpg?v=20261120)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/google-flights-scraper-output.jpg?v=20261120)

| Rank | Price | Outbound | Return | Stops | CO2 | Price level |
|---|---|---|---|---|---|---|
| 1 | $605 | JetBlue B6 618, B6 1187 · 19 Dec 18:30 → 00:59 | B6 2388, B6 117 · 26 Dec 16:30 | 1 | 985 kg | high (typical $285–580) |
| 2 | $713 | JetBlue B6 2223 · 19 Dec 08:01 → 11:25 | B6 2388, B6 117 · 26 Dec 16:30 | 0 | 920 kg | high |

*A real run of the example input (JFK ⇄ LAX, 19–26 Dec 2026). The search summary said: "605 USD is above Google's typical range (285–580 USD) and was 409 USD within the last 61 days" → **wait**; a cheaper nearby date: 16 Dec at $383.*

**Common mistakes**

- You get fewer flights than **Flights per search** → Google lists only that many for the route and filters; loosen **Stops**, **Max price** or the time windows.
- A city returns flights from airports you didn't expect → a city searches all its airports (New York = JFK, EWR, LGA). Type airport codes to pin one.
- Children or infants return fewer itineraries → Google prices some itineraries for children only after you pick them; adults-only shows the full schedule.

**Questions or problems?** [Open an issue](https://apify.com/laptime/google-flights-scraper/issues/open) (we read every one and usually answer within a few hours). **Need a custom version** (another site, extra fields, a private build)? Ask in an issue.

### What is Google Flights Scraper?

**Google Flights Scraper** extracts flight prices from [Google Flights](https://www.google.com/travel/flights) for any route and dates: every itinerary with total price, departure and arrival times, duration, stops and layovers, airlines and flight numbers, aircraft, legroom and Wi-Fi, CO2 against the route's typical, and a link that opens the same flight on Google. Each search also gets a free summary with Google's price insight (typical range, low / typical / high, 60-day history) and our booking advice. Type airport codes, cities, a country or "Anywhere", pick dates, click **Start**, and download JSON, CSV or Excel. No login, no API key, no browser.

- 💸 **Fare tracking and price alerts:** schedule a route and get a Slack or Discord message only when the fare drops or falls under your target.
- 📅 **Cheapest dates:** the cheapest fare for every departure day for up to 330 days (round trips keep your trip length), ranked, at $0.10 per 1,000 days.
- 🌍 **Cheapest destinations:** "Anywhere", "Europe" or "Asia" as the destination lists the cheapest fare to every place from your airport (Google Flights Explore as data).
- 🧾 **Sellers and fares:** for the top flights, every airline and travel agency price with the fare name (Basic Economy, Main Cabin…), checked-bag fees and booking links.
- 📊 **Travel apps, research and AI agents:** many routes per run, flat documented fields, an API and an MCP server.

### Use from Claude, Cursor or any MCP client

Add `https://mcp.apify.com?tools=laptime/google-flights-scraper` as a remote MCP server and sign in to Apify (Claude: **Settings → Connectors → Add custom connector**). Claude Code:

```bash
claude mcp add --transport http laptime-flights "https://mcp.apify.com?tools=laptime/google-flights-scraper"
```

Then ask, for example: *"Find the cheapest round trip from Amsterdam to Lisbon for a long weekend next month, and say if the price is good"* or *"Which cities in Europe can I fly to from Chicago for under $500 in March?"*

### Google Flights API: route and dates in, JSON out

One request runs the Actor and returns the rows as JSON:

```bash
curl -X POST "https://api.apify.com/v2/acts/laptime~google-flights-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' -d '{"origin":"JFK","destination":"LAX","departureDate":"30 days","returnDate":"37 days"}'
```

- **Many routes:** put them in `routes` (up to 200 searches per run, 6 at a time); 40 routes return in about 5 seconds.
- **Stable output:** every row has `recordType` (`flight`, `search-summary`, `price-date`, `destination`) and the same fields every time (null when Google shows nothing).
- **Relative dates** (`"30 days"`, `"2 weeks"`) keep scheduled runs valid forever.
- **Why not an official API:** Google has no public Google Flights API (the QPX Express API closed in 2018).

### Price-drop alerts (recipe)

1. Fill **From**, **To** and the dates (relative dates like `60 days` keep working on a schedule).
2. Set a **Monitor name** (e.g. `nyc-london`), turn on **Only new flights and changed prices**, optionally set **Alert only below this price**.
3. Paste your Slack or Discord webhook in **Alert webhooks**, save as a task and add a **daily schedule**.

You get one message per run, only when a fare dropped (by at least **Min price change**, default 1) or fell under your target. **Monthly cost example:** one route checked daily with 20 flights ≈ 600 flights a month ≈ **$0.30/month** at most, and $0 on days when nothing changed.

### Input

Every field is optional except a route. Accepted places: airport codes in any case (`JFK`, `jfk`), several (`JFK,EWR`), metro codes (`NYC`, `LON`), cities in English or their own language (`New York`, `München`, `東京`, `Portland, Maine`), countries (`Japan` = its main airports), airport names (`Schiphol`) and, as the destination, `Anywhere` or a continent. Small typos are corrected (`Londn` → London) and said in the log. Dates: `YYYY-MM-DD`, `Dec 20 2026`, `12/20/2026`, `20.12.2026` or relative (`30 days`, `2 weeks`, `tomorrow`), up to about 330 days ahead. An entry that can't run (unknown place, past date, same origin and destination) gets a free row with the reason in `error`; the other searches still run. Via the API, a search without `maxResults` returns 20 flights.

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "30 days",
  "returnDate": "37 days"
}
```

| Field | What it does |
|---|---|
| `origin`, `destination` | Airport, city, country; `Anywhere`/continent as destination = cheapest destinations. One per line for several. |
| `departureDate`, `returnDate`, `tripLength` | Dates (absolute or relative). No return date = one-way. |
| `routes` | Many searches: `[{"origin","destination","departureDate","returnDate"}]` or `"JFK-LAX 2026-12-19"`. |
| `multiCityLegs` | One multi-city ticket: `[{"origin","destination","date"}, …]`. |
| `startUrls` | Google Flights search links (with `tfs=`, or `?q=Flights to LAX from JFK on …`); route, dates, cabin and travellers are read from them, and their currency when Currency is left at USD. |
| `cabinClass`, `adults`, `children`, `infantsOnLap`, `infantsInSeat` | Cabin and travellers (up to 9). Prices are the total for all travellers. |
| `maxStops`, `airlines`, `excludeAirlines`, `maxPrice`, `maxDurationHours`, `departureTimeFrom/To`, `arrivalTimeFrom/To`, `checkedBags`, `carryOnBag`, `excludeBasicEconomy`, `lessEmissionsOnly`, `maxLayoverHours`, `sortBy` | Google's own filters (airlines also take ONEWORLD, SKYTEAM, STAR_ALLIANCE). |
| `maxResults` | Flights per search (default 20, up to 300). |
| `returnFlights` | Round trips: how many top outbounds get every return flight (default 3). |
| `bookingOptions` | Sellers, fares and bag fees for the top N flights. |
| `calendarDays`, `calendarOnly` | Cheapest fare per departure day (up to 330). |
| `nearbyAirports`, `nearbyRadiusKm` | Also search airports within the radius (same country). |
| `currency`, `country`, `language` | Market: prices and sellers differ by country. |
| `monitorName`, `onlyChanged`, `minPriceDrop`, `alertBelowPrice`, `alertWebhookUrls` | Price tracking and alerts. |
| `aiVerdict` | Optional AI verdict per search. |
| `maxItems` | Hard cap on charged rows for the whole run. |

### Output

Four kinds of rows (`recordType`), every field documented in the dataset schema, with views **Flights** (route, total price, local times, airline, stops, return flight, link), **Flight details**, **Search summaries**, **Price calendar** and **Cheapest destinations**. `price` is always the total for all travellers (`pricePerTraveller` divides it); times are local at each airport, so an overnight arrival shows the next day's date.

**`flight`** (one itinerary; a round trip is an outbound + return pair), real row, shortened:

```json
{
  "recordType": "flight",
  "search": "JFK → LAX, 2026-12-19 to 2026-12-26",
  "route": "JFK ⇄ LAX",
  "rank": 1,
  "price": 605,
  "pricePerTraveller": 605,
  "currency": "USD",
  "priceLevel": "high",
  "departureTime": "2026-12-19T18:30",
  "arrivalTime": "2026-12-20T00:59",
  "durationMinutes": 569,
  "stops": 1,
  "airlines": "JetBlue",
  "flightNumbers": "B6 618, B6 1187",
  "layoverAirports": "BOS",
  "aircraft": "Airbus A220-300 Passenger, Airbus A320",
  "returnDepartureTime": "2026-12-26T16:30",
  "returnFlightNumbers": "B6 2388, B6 117",
  "co2Kg": 985,
  "co2TypicalKg": 656,
  "wifi": "free",
  "legroom": "32 inches, 33 inches",
  "typicalPriceLow": 285,
  "typicalPriceHigh": 580,
  "googleFlightsUrl": "https://www.google.com/travel/flights/booking?tfs=…",
  "legs": [{ "flightNumber": "B6 618", "from": "JFK", "to": "BOS", "departure": "2026-12-19T18:30", "arrival": "2026-12-19T19:50", "aircraft": "Airbus A220-300 Passenger", "legroom": "32 inches", "seat": "above average legroom", "wifi": "free", "power": true, "video": "live TV", "co2Grams": 69954 }],
  "layovers": [{ "airport": "BOS", "city": "Boston", "durationMinutes": 64, "overnight": false, "changeOfAirport": false }]
}
```

With `bookingOptions`, the top flights also carry `bookingOptions` (seller, price, fare name, checked-bag fees, link), `cheapestSeller` and `fareNames`. With a monitor: `monitorStatus` (new / changed / unchanged), `previousPrice`, `priceChange`.

**`search-summary`** (one per search, **free**): `cheapestPrice`, `cheapestFlight`, `fastestFlight`, `nonstopAvailable`, `priceLevel`, `typicalPriceLow/High`, `bookingAdvice` (`book_now`: below the typical range or at its 60-day low; `wait`: above it and ≥10% cheaper within 60 days; else `typical`) with `bookingAdviceReason`, `priceTrend`, `lowestPrice60Days`, `priceHistory`, `cheapestNearbyDate/Price`, `cheapestCalendarDate/Price`, the AI verdict when on, and `error` when a search failed, found no flights (with the reason, e.g. no non-stop flights on the route) or was skipped.

**`price-date`**: `departureDate`, `returnDate`, `weekday`, `price`, `priceLevel`, `isCheapest`, `rankByPrice`, link. **`destination`**: `destination`, `country`, `airport`, `price`, dates, airline, stops, duration, coordinates, image, link.

### Pricing

Pay per event, Apify platform usage included, lower prices on paid Apify plans:

| Event | Price per 1,000 | Charged when |
|---|---|---|
| `flight` | **$0.50** (down to $0.33) | a flight row is delivered |
| `booking-options` | $1.00 | a flight row carries its sellers (only with `bookingOptions`) |
| `date-price` | $0.10 | a calendar day is delivered |
| `destination` | $0.30 | an explore destination is delivered |
| `ai-verdict` | $1.00 | a search gets an AI verdict (only with `aiVerdict`, never with your own key) |

Search summaries, failed searches, filtered and unchanged monitored flights are free. No start fee.

Examples: the example round trip (20 flights) ≈ **$0.01**. 1,000 flights ≈ **$0.50**. A 60-day calendar for 10 routes ≈ **$0.06**. Top 5 flights with every seller on 10 routes ≈ $0.15. **Works on the free plan:** $5 of monthly credit covers about 10,000 flights. Cap any run with *Maximum cost per run* in the run options.

### Ready-made examples

- Flight price-drop alert to Slack or Discord (daily)
- Cheapest dates to fly: 60-day price calendar
- Cheapest destinations from your airport (Anywhere)
- Compare airline and agency prices, fares and bag fees
- Fares for many routes in one run

### Benchmarks

Measured on Apify on 19 November 2026 (tools/benchmarks/google-flights-bench.sh), default memory. "Scrape" is the work after start-up; "run" is the total time Apify reports.

| Job | Scrape | Run | Result |
|---|---|---|---|
| Example input (JFK ⇄ LAX round trip), 9 runs | 1.2–3.4 s (one run 27 s, a slow retry) | 3.0–5.0 s | 20 flights each time |
| 10 round trips | 6.1 s | 7.6 s | 200 flights |
| 40 one-way routes | 5.1 s | 6.7 s | 406 flights, 40 summaries |
| 2 transatlantic routes, up to 100 flights each | 11.3 s | 12.8 s | 108 flights |
| One-way + 60-day calendar + sellers for 3 flights + an "Anywhere" search | 13.4 s | 15.0 s | 10 flights, 60 days, 10 destinations |
| Monitored route, second run with no change | 1.2 s | 2.8 s | 0 rows, $0 |

Platform cost per 1,000 rows on these runs: $0.005–0.03, included in the price.

### Switch from another Google Flights Actor

Your old input works as is. Understood names: `origin`/`destination`, `departure_id`/`arrival_id`, `outbound_date`/`return_date`, `departDate`, `travel_class`, `max_stops`, `hl`/`gl`, `market`, `searches` and `routes` lists, `multiCityLegs`/`multi_city_json`, `startUrls`/`searchUrls`/`flightUrl`, `maxItems`/`limit`, `exploreOrigin`, `returnFlightsTop`, `maxBookingResolutions`, `fetch_booking_options`, `priceGraphDays`, `onlyNewSinceLastRun`, `targetPrice`. The run log lists the names it understood.

### FAQ

#### Is this cheaper than other Google Flights scrapers?

Yes for what you get: $0.50 per 1,000 flights with no start fee, half of the most used Google Flights scraper ($1 per 1,000) and a quarter of others at $2 per 1,000 plus a start fee (Free-plan list prices, 19 November 2026). Round trips are priced per whole trip, search summaries with the price insight are free, and the calendar costs $0.10 per 1,000 days.

#### How many flights can I get per search?

Up to 300 (`maxResults`). Google typically lists 10–150 itineraries per route and date; long lists come through Google's own "all flights" answer.

#### Does it do round trips and multi-city properly?

Yes. Round trips: the top `returnFlights` outbounds (default 3) each get every return flight, and each pair is a row with the trip total, sorted by price. Multi-city: every leg is chained into a whole ticket. Multi-city answers come slower from Google (expect 30–60 s).

#### How does the "best time to book" signal work?

It uses Google's own data for your exact search: the price against Google's typical range and the last ~60 days of prices. `book_now` when the price is below the typical range or at its 60-day low; `wait` when it is above the range and was at least 10% lower within 60 days; otherwise `typical`. The reason, with the numbers, is in `bookingAdviceReason`.

#### What does the AI option add?

With **AI** on, each search gets `aiVerdict` (great_deal, good_price, fair_price, expensive, very_expensive), `aiBestOption` (which of the top flights to book, balancing price, time, stops and layovers) and a one-line `aiReason`. It costs $1 per 1,000 searches; with your own LLM key it's not charged.

#### Why are some prices or itineraries missing?

Google shows no price for some itineraries (sold out, or priced only after you choose a flight); those rows have `price: null`. Parties with children or infants get fewer pre-priced itineraries. Nearby-airport and multi-airport searches don't get Google's typical price range.

#### Can I cap what a run costs?

Yes: set *Maximum cost per run* in the run options, or `maxItems`. The run stops cleanly before going over and says so.

#### Is it reliable?

It reads the same data Google Flights' own page loads, through two routes (Google's flights API and the search page), and retries refused or slow requests on other IPs at once. A search that still fails is listed in the summary and RUN_STATS and costs nothing; a run with no results at all fails with the reason instead of finishing empty.

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

It reads public flight prices only, without logging in, and collects no personal data. You are responsible for how you use the data. *Unofficial; not affiliated with Google.*

### Laptime tools

**Travel**

- [Google Flights Scraper](https://apify.com/laptime/google-flights-scraper) *(this tool)* – fares, calendar, sellers and alerts, $0.50/1K
- [Google Hotels Scraper](https://apify.com/laptime/google-hotels-scraper) – every booking site's price per hotel, price calendar, $1/1K
- [Google Trends Scraper](https://apify.com/laptime/google-trends-scraper) – search interest for destinations and anything else

**More**

- [Reddit Scraper](https://apify.com/laptime/reddit-scraper) – posts and comments, one of the fastest
- [Google Jobs Scraper](https://apify.com/laptime/google-jobs-scraper) – job listings from Google
- All Laptime scrapers: [apify.com/laptime](https://apify.com/laptime)

**Questions or problems?** [Open an issue](https://apify.com/laptime/google-flights-scraper/issues/open) (we read every one). **Need a custom version?** Ask in an issue.

Found it useful? A short review on this page helps other travellers and developers find it.

# Changelog

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

# Actor input Schema

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

Airport code (JFK), a city (New York = JFK, EWR and LGA; non-English names like München work), several codes (JFK,EWR) or a country (Japan = its main airports). One place per line runs one search per place. Lowercase and small typos are fine.

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

Airport code (LAX), city (Paris) or country (Spain). "Anywhere", "Europe" or "Asia" lists the cheapest destinations instead of flights. One place per line runs one search per place.

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

Pick a date or type a relative one like "30 days" (stays valid when you schedule the run). Google sells flights up to about 330 days ahead. Default: 30 days from today.

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

Optional. Leave empty for one-way. Round trips come as whole trips: each row is an outbound + return pair with the trip total. Relative dates ("37 days") count from today.

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

Travellers aged 12+. Prices are the TOTAL for all travellers together (as on Google Flights); pricePerTraveller divides it. Up to 9 travellers in total.

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

Optional. Children aged 2–11. Google prices some itineraries for children only after you pick them, so fewer itineraries may come back.

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

Optional. Infants under 2 on an adult's lap (usually ~10% of the adult fare). At most one per adult.

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

Optional. Infants under 2 in their own seat (usually priced like a child).

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

Cabin class to price. Mixed-cabin itineraries are marked per flight in the legs field.

## `tripLength` (type: `integer`):

Optional. Return this many days after departure, e.g. 7. Handy with relative dates and the price calendar (every departure day keeps the same trip length).

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

Optional. Several searches in one run, one per item: \[{"origin": "JFK", "destination": "LHR", "departureDate": "2026-12-19", "returnDate": "2026-12-26"}]. Text works too: "JFK-LAX 2026-12-19". An item that can't run gets a free row with the reason; the others still run.

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

Optional. 2 to 6 legs of one ticket, in travel order: \[{"origin": "JFK", "destination": "LHR", "date": "2026-12-19"}, {"origin": "LHR", "destination": "CDG", "date": "2026-12-23"}]. Each row is one whole trip with its total price.

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

Optional. Paste searches from google.com/travel/flights (the link with "tfs="). Route, dates, cabin and travellers come from the link; its currency too, if you leave Currency at USD.

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

Most stops per direction. Google applies it, so the list fills up with matching flights. Non-stop on a long-haul route can return 0 flights.

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

2-letter airline codes (DL, BA) or alliances ONEWORLD, SKYTEAM, STAR_ALLIANCE. Empty = all airlines.

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

2-letter airline codes or alliances to leave out, e.g. NK, F9.

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

Only flights at or under this price, in the currency below (Google's own price filter).

## `maxDurationHours` (type: `integer`):

Only itineraries whose total travel time, layovers included, is at most this many hours.

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

Earliest departure hour of the outbound flight, local time. Example: 6 = from 06:00.

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

Latest departure hour of the outbound flight, local time. Example: 12 = until 12:59.

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

Earliest arrival hour of the outbound flight, local time.

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

Latest arrival hour of the outbound flight, local time.

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

Prices include the fee for this many checked bags per traveller (0–2), like Google's bags filter. Compares low-cost and full-service fares fairly. 2 bags go through Google's flight API, which is slower and now and then busy.

## `carryOnBag` (type: `boolean`):

Prices include a carry-on bag fee where the fare doesn't include one (low-cost airlines; most US basic fares include a carry-on, so their prices stay the same).

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

Leave out basic economy fares (no seat choice, no carry-on on some airlines). US airlines mostly.

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

Only itineraries Google marks as lower CO2 than typical for the route.

## `maxLayoverHours` (type: `integer`):

Longest connection allowed at any layover. Empty = any.

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

Order of the flights, as on Google Flights. "Best" is Google's own ranking of price and convenience. Round trips with Best or Cheapest first list the cheapest whole trips first.

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

Most flights per route and date (Google lists ~10–150). Each flight row is charged; search summaries are free. Default 20.

## `returnFlights` (type: `integer`):

For the top N outbound flights, fetch every return flight; each outbound + return pair is a row with the trip total. 0 = outbound rows only.

## `bookingOptions` (type: `integer`):

Every airline and agency price for the top N flights: seller, fare name (Basic Economy…), checked-bag fees, booking link. Extra event per flight. When Google refuses these lookups the run says so and they aren't charged.

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

The cheapest fare for each departure day, from the departure date on (up to 330 days). Round trips keep the same trip length. One cheap row per day. When Google refuses it the run says so (not charged).

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

Only the cheapest-date calendar and the search summary, without the flight list. Cheapest way to scan many routes for the best dates.

## `nearbyAirports` (type: `boolean`):

Also search medium and large airports within the radius below on both ends (e.g. EWR and LGA for JFK), in the same search.

## `nearbyRadiusKm` (type: `integer`):

How far nearby airports may be from the ones you entered.

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

Hard cap on flights, calendar days and destinations for the whole run, across all searches. Empty or 0 = no cap.

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

3-letter currency code for every price: USD, EUR, GBP, INR… (€, £ and $ work too).

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

2-letter country Google prices for (US, GB, DE, IN…). Fares and sellers differ by country.

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

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

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

Remembers prices between runs under this name: rows get the previous price and the change. Use one name per schedule, e.g. "nyc-london-december".

## `onlyChanged` (type: `boolean`):

With a monitor name: deliver (and charge) only flights that are new or whose price moved. A run where nothing changed costs $0.

## `minPriceDrop` (type: `integer`):

Price moves smaller than this (in your currency) count as unchanged, and alerts need at least this drop. Default 1.

## `alertBelowPrice` (type: `integer`):

Target fare: alert when a search's cheapest price is at or below it (first time, then on further drops).

## `alertWebhookUrls` (type: `array`):

Slack or Discord webhook URLs, or any https URL for JSON. One message per run, only when a price dropped. Schedule the run to get alerts.

## `aiVerdict` (type: `boolean`):

Per search: a verdict (great deal … very expensive) from Google's price history, the best of the top flights and a one-line reason. Extra event per search.

## `aiApiKey` (type: `string`):

OpenRouter (sk-or-…), OpenAI, Anthropic (sk-ant-…) or Gemini (AIza…). With your key AI events are not charged.

## `aiModel` (type: `string`):

Model id for your key, e.g. gpt-4.1-nano or google/gemini-2.5-flash-lite. Empty = a fast default.

## `telemetry` (type: `boolean`):

Sends anonymous error and run-end counters (never inputs, outputs, URLs or IDs) so we fix breakages fast. Off = nothing is sent.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "30 days",
  "returnDate": "37 days",
  "adults": 1,
  "children": 0,
  "infantsOnLap": 0,
  "infantsInSeat": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "checkedBags": 0,
  "carryOnBag": false,
  "excludeBasicEconomy": false,
  "lessEmissionsOnly": false,
  "sortBy": "best",
  "maxResults": 20,
  "returnFlights": 3,
  "bookingOptions": 0,
  "calendarDays": 0,
  "calendarOnly": false,
  "nearbyAirports": false,
  "nearbyRadiusKm": 150,
  "currency": "USD",
  "country": "US",
  "language": "en",
  "onlyChanged": false,
  "aiVerdict": false,
  "telemetry": true
}
```

# Actor output Schema

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

Every row, in the order scraped.

## `flights` (type: `string`):

One row per flight: route, total price, local times, airline, stops, return flight, link.

## `details` (type: `string`):

Per flight: per-traveller price, layovers, CO2, aircraft, legroom, sellers, price changes.

## `summaries` (type: `string`):

Price insight, booking advice and AI verdict per search.

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

Cheapest fare per departure day.

## `runStats` (type: `string`):

RUN_STATS: counts, seconds, requests, refusals, errors.

# 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 days",
    "returnDate": "37 days"
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/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 days",
    "returnDate": "37 days",
}

# Run the Actor and wait for it to finish
run = client.actor("laptime/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 days",
  "returnDate": "37 days"
}' |
apify call laptime/google-flights-scraper --silent --output-dataset

```

## MCP server setup

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