# Google Flights Scraper & Fare Monitor · $1/1K (`xpandalabs/google-flights-fare-monitor`) Actor

From $1 per 1,000 flights. Google Flights fares for any route and date, a fare calendar with Google's low/typical/high price level, and Explore: the cheapest destinations from any airport, with dates. Price-drop alerts between runs.

- **URL**: https://apify.com/xpandalabs/google-flights-fare-monitor.md
- **Developed by:** [Weijie Xiong](https://apify.com/xpandalabs) (community)
- **Categories:** Travel, Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 & Fare Monitor

**$1 per 1,000 flights. No start fee, no proxy fee.** Get Google Flights fares for any route and date as clean JSON, CSV or Excel: airline, flight numbers, departure and arrival times, duration, stops, layovers, aircraft, CO₂ and the total price. Or get a **fare calendar**: the cheapest fare for every departure date, whether Google rates it **low, typical or high**, the typical price range and the 60-day price history ($2 per 1,000 route-dates).

**New: Explore.** Give an origin and get the **cheapest destinations** from it, the way the Google Flights Explore map shows them: every city with its cheapest fare, dates, airline, stops and flight time, cheapest first, anywhere in the world or by continent. Turn on **flexible dates** and Google picks each destination's cheapest dates in the coming months ($1 per 1,000 destinations).

Run it on a schedule and it tells you what changed: **price drops, price rises and fares at or below your target price**.

### What you can do with it

| You want to | Set this |
|---|---|
| All flights JFK → LAX on 20 December | Routes `JFK-LAX`, Departure date `2026-12-20` |
| The cheapest day to fly in the next month | What to return: **Fare calendar**, Departure dates to check `30` |
| Where can I fly cheapest from New York in January? | Explore from `New York`, Departure date `2027-01-15`, Return date `2027-01-22` |
| The cheapest week-long trips from London in the coming months | Explore from `London`, Flexible dates on, Destinations in `Europe` |
| A fare alert below $150 | Target price `150`, Only return changes on, daily schedule |
| Round trips, families, business class | Trip type, Adults / Children / Infants, Cabin |
| Nonstop only, or only your airline | Stops `Nonstop only`, Airlines `DL` or `Delta` |
| Prices in your currency | Region preset (USD, GBP, EUR, AUD, JPY, HKD, CNY...) |

### How to use it

1. Enter one or more **routes**: airport codes (`JFK-LAX`, `LHR to CDG`), city codes that search every airport in the city (`NYC-LON`, `TYO-SEL`), major city names (`New York to London`, `上海到东京`) or a Google Flights link.
2. Pick a **departure date**, or leave it empty and set **Days ahead** so a scheduled run always looks forward.
3. Choose **Every flight** or **Fare calendar**, then click **Start**.
4. Download the results as JSON, CSV or Excel, or open the **Fare calendar (HTML)** in the Output tab: a colour-coded grid of the cheapest fare per route and date.

Empty input runs an example search (JFK-LAX, 14 days from today) so you can see the output first.

### Pricing

Pay only for results. Apify's free plan includes $5 of credit every month, about 5,000 flights.

| Result | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Flight row (every-flight mode) | $0.001 | $0.0009 | $0.0008 | $0.0007 |
| Fare calendar row (one route and date) | $0.002 | $0.0018 | $0.0016 | $0.0014 |
| Destination row (Explore) | $0.001 | $0.0009 | $0.0008 | $0.0007 |

Examples: one route on one date returns 10–70 flights, so $0.01–0.07. A 30-day fare calendar for 3 routes is 90 rows, $0.18. Rows you don't get are not charged: with **Only return changes** on, unchanged fares are free. Set a maximum cost per run in the run options and the Actor stops there.

### Output

#### Every flight

```json
{
  "route": "LHR-CDG", "departDate": "2027-01-15", "returnDate": "2027-01-19", "tripType": "round_trip",
  "airline": "Air France", "flightNumbers": ["AF 1381"],
  "departureTime": "06:20", "arrivalTime": "08:40", "durationMinutes": 80, "stops": 0, "layovers": [],
  "aircraft": ["Airbus A220-300 Passenger"], "co2Kg": 115,
  "price": 204, "pricePerPassenger": 102, "currency": "GBP", "adults": 2,
  "isCheapest": true, "flightPriceLevel": "low", "typicalPriceLow": 210, "typicalPriceHigh": 275,
  "changeType": "new", "previousPrice": null, "priceChangePct": null, "lowestPriceSeen": 204,
  "segments": [{ "flightNumber": "AF 1381", "from": "LHR", "to": "CDG", "legroom": "30 inches", "...": "..." }],
  "googleFlightsUrl": "https://www.google.com/travel/flights/search?tfs=..."
}
```

#### Fare calendar

```json
{
  "route": "SYD-MEL", "departDate": "2026-11-30", "currency": "AUD",
  "cheapestPrice": 142, "cheapestAirline": "Jetstar", "cheapestFlightNumbers": ["JQ 539"], "cheapestStops": 0,
  "cheapestNonstopPrice": 142, "flightsFound": 70, "airlines": ["Jetstar", "Qantas", "Virgin Australia"],
  "priceLevel": "typical", "typicalPriceLow": 90, "typicalPriceHigh": 170,
  "priceHistory": [{ "date": "2026-09-20", "price": 91 }, "... 60 days"],
  "belowTargetPrice": true, "changeType": "down", "previousPrice": 159, "priceChangePct": -10.7
}
```

#### Cheapest destinations (Explore)

```json
{
  "type": "destination", "origin": "LON", "originAirport": "STN", "rank": 1,
  "destination": "Glasgow", "country": "United Kingdom", "destinationAirport": "GLA", "region": "Europe",
  "price": 30, "currency": "GBP", "departDate": "2026-12-28", "returnDate": "2027-01-05", "flexibleDates": true,
  "airline": "Ryanair UK", "airlineCode": "RK", "stops": 0, "durationMinutes": 95,
  "latitude": 55.86, "longitude": -4.25, "imageUrl": "https://...",
  "changeType": "down", "previousPrice": 34, "googleFlightsUrl": "https://www.google.com/travel/flights/search?tfs=..."
}
```

Prices are the **total for all passengers** (round trips: the whole round trip). `pricePerPassenger` divides it evenly.

| Field | Meaning |
|---|---|
| `priceLevel` | Google's verdict for this search: `low`, `typical` or `high` |
| `typicalPriceLow` / `typicalPriceHigh` | Google's typical price range for this route and date |
| `flightPriceLevel` | Where this flight's price falls in that range |
| `changeType` | `new`, `up`, `down`, `unchanged`, `unavailable` (lost its price; reported once) or `available` (priced again) since the previous run |
| `comparedWith` | `same dates`, or `same days ahead` for schedules using Days ahead |
| `lowestPriceSeen` | Lowest price recorded for this flight or route-date across your runs |
| `belowTargetPrice` | At or below your target price |

### Explore: cheapest destinations

1. Put one or more origins under **Explore from**: airport codes (`JFK`), city codes or names for every airport in a city (`LON`, `London`, `上海`).
2. Pick **Destinations in**: Anywhere (several hundred destinations) or one or more continents.
3. Set dates as usual (fixed dates, Days ahead, several dates), or turn on **Flexible dates** to let Google pick each destination's cheapest dates in the coming months.
4. Passengers, cabin, stops and currency apply as usual. You get one row per destination, cheapest first (keep the top N with *Max destinations per origin*), and the **Report** shows a ranked table per origin.

On a schedule with **Only return changes**, you only get destinations that are new, got cheaper or more expensive, or hit your target price. Fares come from Google Flights Explore and match a normal search for the same route and dates; use the row's `googleFlightsUrl` (or a route search here) for the flight details.

### Fare alerts on a schedule

1. Set routes, **Days ahead** (or fixed dates), **Target price** and turn on **Only return changes**.
2. Save it as a task and add a daily schedule in Apify.
3. Add an integration (email, Slack, webhook, Make, Zapier, n8n) on "run succeeded with results".

The first run saves a baseline. After that you only get, and only pay for, fares that moved or hit your target.

### API

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("xpandalabs/google-flights-fare-monitor").call(run_input={
    "routes": ["JFK-LAX"],
    "departDate": "2026-12-20",
    "maxStops": "nonstop",
    "sortBy": "price",
})
for f in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f["airline"], f["flightNumbers"], f["departureTime"], f["price"], f["currency"])
```

More runnable examples (Python, JavaScript, cURL, n8n): [github.com/bigxiong001-pixel/google-flights-api](https://github.com/bigxiong001-pixel/google-flights-api).

AI assistants (Claude, ChatGPT, Cursor and others) can call it as a tool through the [Apify MCP server](https://mcp.apify.com), for example to answer "cheapest nonstop from London to New York next Friday" with live fares.

### What it does not do

So you know before you run it:

- **No booking**, and no seat maps, baggage fees or fare rules: it reads the prices and flights Google Flights shows, with a link to book there.
- **Infants are not supported yet**, and **multi-city trips** are not supported. One-way and round trips only.
- **Round trips: flight details are for the outbound flights.** The price is the exact round-trip total; search the return as its own one-way route for its flight list.
- **Explore shows the destinations Google's Explore map shows**: about 70–120 per map area, so "Anywhere" gives several hundred destinations, not every airport in the world. The airline filter does not apply there.
- **Flexible dates in Explore are about one-week round trips in the coming months.** You cannot pick the month or trip length there yet; use fixed dates and *Departure dates to check* for that.
- **Explore can take 20–60 seconds per origin**, because Google refuses part of the requests and the Actor retries through fresh IPs. Route searches are faster.
- **Fares are what Google Flights shows at that moment**, up to about 330 days ahead; the final price on the airline's site can differ slightly.

### FAQ

**Is there an official Google Flights API?** No. Google shut down the QPX Express API in 2018. This Actor reads the same public results page any visitor sees.

**How fresh is the data?** Live: every run searches Google Flights at that moment.

**Can I get the return flights of a round trip?** The round-trip price is exact. Flight details are for the outbound flights Google shows for that round trip; search the return as its own one-way route if you need its flight list.

**Can I add infants?** Not yet: Google Flights links do not return fares for infant passengers. Prices cover adults and children (2–11).

**Can I search "from X to anywhere"?**
Yes: that is Explore. Put the origin under *Explore from*. The airline filter does not apply to Explore.

**Which dates work?** From today up to about 330 days ahead, which is as far as airlines sell.

### Notes

The data is the public Google Flights results page. You are responsible for using it in line with applicable laws and Google's terms. Questions, bugs or feature requests: open an issue on the Issues tab, usually answered within a day.

### In other languages

- **中文**：Google 机票价格爬虫 / API：任意航线和日期的航班与票价、从某地出发去哪里最便宜（Explore 探索目的地，可灵活日期）、最便宜出发日的票价日历、Google 价格高低判断、降价提醒，支持人民币和港币。
- **Deutsch**: Google Flights Scraper: Flugpreise für jede Strecke, günstigster Reisetag, Preisalarme.
- **Français** : scraper Google Flights : prix des vols, calendrier des tarifs, jour le moins cher, alertes de baisse de prix.
- **Español**: scraper de Google Flights: precios de vuelos, calendario de tarifas, día más barato para volar, alertas de precio.
- **Italiano**: scraper di Google Flights: prezzi dei voli, calendario tariffe, avvisi di calo prezzi.
- **日本語**：Google フライトの航空券価格取得：路線・日付ごとの運賃、最安日カレンダー、値下がりアラート。

### More from XPanda Labs

- [Google Hotels Scraper & Rate Monitor](https://apify.com/xpandalabs/google-hotels-rate-monitor): hotel prices, every booking site's rate, rate parity, competitor rate shopping
- [Google Trends Scraper & Monitor](https://apify.com/xpandalabs/google-trends-monitor): rising/falling verdict, rising and breakout searches, trending now
- [Google Shopping Scraper & Price Monitor](https://apify.com/xpandalabs/google-shopping-price-monitor): product prices, discounts, sellers, price-drop alerts in 31 countries

### Changelog

- **0.3** (November 2026): Explore: the cheapest destinations from any airport or city, anywhere or by continent, with fixed or flexible dates, one row per destination with fare, dates, airline, stops and flight time.
- **0.2** (November 2026): city names and Google Flights links as routes, airline names as well as codes, a return date now always makes a round trip, unknown airport codes get a clear message, and a flight that loses its price is reported as `unavailable` once (then `available` when it is priced again).
- **0.1** (November 2026): first release. Every-flight and fare-calendar modes, round trips, passengers, cabins, stop and airline filters, 15 currency presets, price tracking, target-price alerts, HTML fare calendar.

# Actor input Schema

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

One route per line. Airport codes (<code>JFK-LAX</code>), city codes for every airport in a city (<code>NYC-LON</code>, <code>TYO-SEL</code>), major city names (<code>New York to London</code>, <code>上海到东京</code>) or a Google Flights link. Each route is searched for every departure date below.

## `tripType` (type: `string`):

Round trip prices are the total for the return trip; flight details are the outbound flights Google lists for it.

## `outputMode` (type: `string`):

<b>Every flight</b>: airline, flight numbers, times, duration, stops, layovers, aircraft, CO₂ and price.<br><b>Fare calendar</b>: the cheapest fare per route and departure date, whether Google rates it low, typical or high, the typical price range and the 60-day price history. Best for price alerts and finding the cheapest day.

## `exploreFrom` (type: `array`):

Airports or cities to fly from, one per line: <code>JFK</code>, <code>LON</code> (every London airport), <code>London</code>, <code>上海</code>. Returns one row per destination with its cheapest fare, cheapest first ($1 per 1,000 destinations). Uses the dates, trip type, passengers, cabin, stops and currency set below. When this is filled, Routes are not searched.

## `exploreTo` (type: `array`):

Which parts of the world to search. Anywhere covers all of them (several hundred destinations).

## `flexibleDates` (type: `boolean`):

Let Google pick each destination's cheapest dates in the coming months (round trips of about a week). The departure and return dates are then ignored.

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

Keep the cheapest N destinations for each origin and date.

## `departDate` (type: `string`):

YYYY-MM-DD. Leave empty and use <b>Days ahead</b> so a scheduled run always checks a future date.

## `daysAhead` (type: `integer`):

When no departure date is set: depart this many days after the run date.

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

YYYY-MM-DD. Setting a return date makes the search a round trip. With several departure dates the trip length stays the same.

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

Round trip only, when no return date is set.

## `datesToCheck` (type: `integer`):

Check this many departure dates in one run, starting from the departure date. 30 gives a month-long fare calendar.

## `dateStepDays` (type: `integer`):

1 = every day, 7 = the same weekday each week.

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

Prices are the total for all passengers. Infants are not supported yet.

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

Passengers aged 2-11.

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

Cabin class for every flight.

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

Most stops allowed on each one-way journey.

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

Only these airlines: 2-letter codes (DL, UA, BA, SQ) or common names (Delta, Cathay Pacific). Empty = all airlines.

## `maxFlightsPerSearch` (type: `integer`):

Every flight mode: keep the first N flights of each search after sorting. 0 = all (usually 10-60).

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

Order of the flights within each search.

## `region` (type: `string`):

Sets currency and Google market in one go. Default: United States (USD).

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

ISO code (USD, EUR, GBP, CNY...). Overrides the region preset.

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

2-letter Google market code (us, gb, de...). Overrides the region preset.

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

Google interface language, e.g. en. Airport and airline names follow it.

## `targetPrice` (type: `integer`):

Rows at or below this total price get <code>belowTargetPrice: true</code>. Combine with a schedule and an email or Slack integration for fare alerts.

## `trackChanges` (type: `boolean`):

Compare with the previous run: <code>changeType</code> up / down / new / unavailable / available, previous price, % change and the lowest price seen.

## `onlyChanges` (type: `boolean`):

Return only rows whose price moved (or that hit your target price). Unchanged rows are not saved and not charged. The first run returns everything as a baseline.

## `changeThresholdPct` (type: `integer`):

Price moves smaller than this % count as unchanged.

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

How many searches run at the same time.

## `maxRetries` (type: `integer`):

Extra tries when a search fails.

## `residentialFallback` (type: `boolean`):

Retry a search through residential proxies if datacenter proxies keep failing.

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

Apify Proxy (datacenter) works for Google Flights; keep the default.

## Actor input object example

```json
{
  "routes": [
    "JFK-LAX",
    "LHR-CDG",
    "SYD-MEL"
  ],
  "tripType": "one_way",
  "outputMode": "flights",
  "exploreFrom": [
    "JFK",
    "London",
    "上海"
  ],
  "exploreTo": [
    "anywhere"
  ],
  "flexibleDates": false,
  "maxDestinations": 100,
  "daysAhead": 14,
  "tripLengthDays": 7,
  "datesToCheck": 1,
  "dateStepDays": 1,
  "adults": 1,
  "children": 0,
  "cabin": "economy",
  "maxStops": "any",
  "airlines": [
    "DL",
    "UA"
  ],
  "maxFlightsPerSearch": 0,
  "sortBy": "best",
  "trackChanges": true,
  "onlyChanges": false,
  "changeThresholdPct": 1,
  "maxConcurrency": 4,
  "maxRetries": 3,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Every flight mode: one row per flight with airline, times, stops, price and price change.

## `fareCalendar` (type: `string`):

Fare calendar mode: cheapest fare per route and date with Google's price level.

## `destinations` (type: `string`):

Explore: one row per destination with its cheapest fare and dates, cheapest first.

## `report` (type: `string`):

Fare calendar grid, or the cheapest destinations per origin for Explore.

## `summary` (type: `string`):

Searches that succeeded or failed, counts, and the settings used.

# 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 = {
    "routes": [
        "JFK-LAX"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xpandalabs/google-flights-fare-monitor").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 = {
    "routes": ["JFK-LAX"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xpandalabs/google-flights-fare-monitor").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 '{
  "routes": [
    "JFK-LAX"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xpandalabs/google-flights-fare-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xpandalabs/google-flights-fare-monitor"
        }
    }
}
```

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/ewwp28Ur7OGcZD45v/builds/iBv0oSEZPoBr13Ug8/openapi.json
