Build a Google Flights price tracker that tells you when fares move

· All my Apify Actors

Build a Google Flights price tracker that tells you when fares move

Google Flights already knows whether a fare is cheap. It shows you a typical price range for the route and a little chart of how the price has moved. What it won't do is check your routes every morning and tell you only when something changed, or hand you the results as rows for a spreadsheet, a deal site or a travel planner.

I built a scraper that reads Google Flights results for a route and date and returns one row per flight option, plus a summary row per route. Here's what I learned about Google's flight data along the way.

What to watch for

Getting the data

I packaged this as an Apify Actor, Google Flights Scraper. A JFK to London round-trip option comes back like this (trimmed):

{
  "type": "flight",
  "route": "JFK-LHR",
  "date": "2026-12-19",
  "returnDate": "2027-01-03",
  "tripType": "round-trip",
  "cabin": "economy",
  "adults": 1,
  "currency": "USD",
  "departureAirport": "JFK",
  "arrivalAirport": "LHR",
  "departureTime": "2026-12-19T09:30",
  "arrivalTime": "2026-12-19T21:40",
  "durationMinutes": 430,
  "stops": 0,
  "airlines": ["JetBlue"],
  "flightNumbers": ["B61107"],
  "aircraft": ["Airbus A321neo"],
  "price": 2014,
  "isBest": true,
  "emissionsKg": 588,
  "typicalEmissionsKg": 435,
  "emissionsVsTypicalPercent": 35,
  "changeType": null,
  "previousPrice": null
}

Each route also gets a free summary row with cheapestPrice, Google's usualPrice, typicalPriceLow and typicalPriceHigh, a priceLevel of low, typical or high, and up to 60 days of priceHistory where Google has them. For that same search the cheapest fare was $1,863 against a typical range of $620 to $1,400, so priceLevel was high.

Nonstop business class from London to Dubai, in pounds:

curl -X POST "https://api.apify.com/v2/acts/rjmacarthy~google-flights-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "routes": [{ "from": "LHR", "to": "DXB", "date": "2027-01-15" }],
    "cabin": "business",
    "stops": "nonstop",
    "currency": "GBP",
    "country": "gb"
  }'

Add returnDate to a route for a round trip, and leave out date to search 30 days ahead. You can also paste a Google Flights URL from your browser into searchUrls; the search in the URL is used as is.

Tracking fares on a schedule

Set monitorMode to changes and give the tracker its own stateKey. Use fixed dates, because a route without a date moves every day:

{
  "routes": [
    { "from": "LAX", "to": "HND", "date": "2027-03-20", "returnDate": "2027-03-30" },
    { "from": "LAX", "to": "NRT", "date": "2027-03-20", "returnDate": "2027-03-30" }
  ],
  "monitorMode": "changes",
  "stateKey": "lax-tokyo-spring"
}
  1. The first run outputs every flight and saves it as the baseline.
  2. Schedule it daily in Apify.
  3. Later runs output only flights that are new or changed price, with changeType and previousPrice. The summary row carries previousCheapestPrice.
  4. Send the rows to Slack, email or a sheet with a webhook or a Make, Zapier or n8n step.

Because Google's list shifts between loads, treat a single "new" flight as a hint and a move in the route's cheapest price as the stronger signal.

Pricing

Pay per event, no run fee:

On the free Apify plan each run is limited to 5 page requests, usually 3 to 5 routes, as a route sometimes needs a quick retry. Any paid plan removes the limit. You can also set a maximum cost per run and the Actor stops cleanly when it's reached.

It reads public flight search results only, with no login and no personal data.