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
- One route is one results page. That's usually 10 to 30 options: Google's "Best" flights plus the other departing flights it shows. Long-haul and nonstop-only searches often have fewer than 10. Flights behind "View more flights" are not loaded.
- Round trips are outbound rows. Each row is an outbound flight priced for the whole round trip, exactly as Google shows the first step. Return-flight choices aren't included.
- Prices are totals.
priceis the total for all passengers, and it can differ from the airline's final price once baggage and seat fees are added. Booking links aren't included. - Times are local at each airport, with no time-zone offset, as Google shows them.
- The list changes between loads. In testing, a second run minutes after the first returned 5 rows for an 8-option route: 3 "new" flights that simply hadn't been shown before and 2 real re-pricings. A tracker will report some of this noise.
- Use airport codes. City names like "London" work for most searches, but premium economy and "1 stop or fewer" need codes (LHR, or the city code LON). If Google reads a search differently from what you asked, that route is skipped with a message rather than returning the wrong flights.
- One date per route. To compare dates, add one route per date. Dates up to about 11 months ahead work.
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"
}
- The first run outputs every flight and saves it as the baseline.
- Schedule it daily in Apify.
- Later runs output only flights that are new or changed price, with
changeTypeandpreviousPrice. The summary row carriespreviousCheapestPrice. - 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:
- $0.0003 per flight option, so $0.30 per 1,000 flights. A route with about 20 options is $0.006.
- The summary row per route is free.
- $0.0045 per route checked in tracker mode, even when nothing changed. A daily tracker on 10 routes for 30 days is 300 checks, $0.45, plus only the flights that changed. Normal runs never pay this 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.