Google Flights Scraper: Flight Prices, Schedules and Airfare avatar

Google Flights Scraper: Flight Prices, Schedules and Airfare

Pricing

$0.01 / 1,000 flight itineraries

Go to Apify Store
Google Flights Scraper: Flight Prices, Schedules and Airfare

Google Flights Scraper: Flight Prices, Schedules and Airfare

Google Flights scraper and API, no browser: flight prices and airfare for your route, dates, passengers and cabin, with flight schedules, stops, layovers, bags and CO2. One way or round trip flights, many dates per run to find cheap flights. Trial: 0.01 USD per 1,000 itineraries until 31 Dec 2026.

Pricing

$0.01 / 1,000 flight itineraries

Rating

0.0

(0)

Developer

Cozybit

Cozybit

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Google Flights Scraper: flight prices, schedules and airfare for any route and date

Get flight options and prices from Google Flights as clean records, without a browser and without a Google account. For each route and date you get the itineraries Google shows before "View more flights":

  • Price for your whole party and trip (one way or round trip), in the currency you choose.
  • Schedule: departure and arrival times, total duration, number of stops and each layover with its airport and length.
  • Flights: every leg with airline, flight number, aircraft, legroom, times and on-board amenities (Wi-Fi, power, entertainment).
  • Bags and price level: carry-on and checked bags included in the fare, and whether Google rates prices for the search as low, typical or high.
  • Emissions: CO2 estimate for the itinerary and the typical value for the route.
  • Whether Google ranks the itinerary among its "best" options.
  • Optional fare calendar: the cheapest fare for every day over up to 180 days, with a choice of round-trip lengths.

Prices include all platform costs: you pay per itinerary returned and nothing for proxies or compute.

Use cases

  • Travel agencies and corporate travel teams monitor fares on the routes they sell or fly, with schedules, stops and included bags.
  • Travel-deal sites and newsletters spot cheap fares and the cheapest dates, using Google's own low, typical or high price rating.
  • Airlines and airports compare competitors' schedules, aircraft, connections and prices on a route.
  • Travellers and travel bloggers find the cheapest day in a date range for a trip.
  • Analysts and researchers collect fare and emissions data across routes and dates for studies and dashboards.

Input

FieldWhat it doesDefault
Routes1-100 routes as FROM-TO with three-letter airport or city codes, such as SFO-LAX, LON-NYCrequired
Departure datesUp to 30 dates (YYYY-MM-DD, or a time from the run date such as 3 weeks; up to 330 days ahead); each route is searched for each date14 days from today
Return after days0 for one way; 1-30 for a round trip returning that many days later0 (one way)
Adults, children, lap infants1-9 adults, up to 8 children, up to one lap infant per adult1 adult
Cabin classEconomy, premium economy, business or firsteconomy
Maximum stopsAny, nonstop, at most 1 or at most 2any
CurrencyAny currency Google supports, such as USD, EUR, GBP, INR, JPYUSD
Search countryThe Google market to search from, such as US, DE, GBUS
Maximum itineraries per search1-200100
Fare calendar (days)1-180 to get the cheapest fare for each day instead of itineraries (see below); 0 is off0
Maximum return after days (returnAfterDaysMax)Calendar only: upper end of a round-trip length range, for example 7-13 days; at most 15 lengths, each 1-30 days0 (fixed length)

Example: cheapest day to fly London to New York in business class, four Fridays, prices in pounds:

{
"routes": ["LON-NYC"],
"departureDates": ["2027-01-08", "2027-01-15", "2027-01-22", "2027-01-29"],
"cabinClass": "business",
"currency": "GBP",
"country": "GB"
}

Example: round trip Berlin-Lisbon for a week, two adults:

{ "routes": ["BER-LIS"], "departureDates": ["2027-04-02"], "returnAfterDays": 7, "adults": 2, "currency": "EUR", "country": "DE" }

Output

One record per itinerary. Example (round trip, one stop):

{
"route": "BER-LIS", "origin": "BER", "destination": "LIS",
"departure_date": "2026-11-29", "return_date": "2026-12-06", "trip_type": "round_trip",
"position": 2, "is_best": true, "status": "ok", "error": null,
"price": 209, "currency": "EUR", "typical_price_low": 180, "typical_price_high": 280, "price_level": "typical",
"carry_on_bags_included": 1, "checked_bags_included": 0,
"passengers": { "adults": 1, "children": 0, "infants_on_lap": 0 }, "cabin_class": "economy",
"airline_codes": ["KL"], "airlines": ["KLM"],
"departure_airport": "BER", "arrival_airport": "LIS",
"departure_time": "2026-11-29T06:00", "arrival_time": "2026-11-29T10:30", "duration_minutes": 330,
"stops": 1,
"layovers": [{ "airport": "AMS", "airport_name": "Amsterdam Airport Schiphol", "city": "Amsterdam", "minutes": 65 }],
"legs": [
{ "airline_code": "KL", "airline": "KLM", "flight_number": "1770", "operated_by": null, "from": "BER", "from_name": "Berlin Brandenburg Airport",
"to": "AMS", "to_name": "Amsterdam Airport Schiphol", "departure_time": "2026-11-29T06:00", "arrival_time": "2026-11-29T07:25",
"duration_minutes": 85, "aircraft": "Airbus A321neo", "legroom": "29 in", "amenities": ["In-seat USB outlet"] },
{ "airline_code": "KL", "airline": "KLM", "flight_number": "1579", "operated_by": null, "from": "AMS", "from_name": "Amsterdam Airport Schiphol",
"to": "LIS", "to_name": "Humberto Delgado Airport", "departure_time": "2026-11-29T08:30", "arrival_time": "2026-11-29T10:30",
"duration_minutes": 180, "aircraft": "Airbus A321neo", "legroom": "29 in", "amenities": ["Wi-Fi for a fee", "In-seat USB outlet"] }
],
"co2_grams": 172000, "typical_co2_grams": 217000,
"source_url": "https://www.google.com/travel/flights/search?tfs=...&hl=en&gl=de&curr=EUR",
"booking_url": "https://www.google.com/travel/flights/search?tfs=...&hl=en&gl=de&curr=EUR",
"booking_token": "Google-provided itinerary token...",
"scraped_at": "2026-10-30T18:08:57.882Z"
}
  • Times are local to each airport, as on Google Flights.
  • price covers all passengers. For round trips it is the round-trip total, and the record describes the outbound flights (as on Google Flights before you pick a return).
  • price is null when Google shows "price unavailable" for an itinerary.
  • typical_price_low and typical_price_high are Google's typical price bounds for the search, in your chosen currency, or null when Google omits them.
  • price_level is Google's own rating of prices for the search (route and date): low, typical or high, the same on every itinerary of that search, or null when Google gives no rating we recognise.
  • carry_on_bags_included and checked_bags_included are the bag counts Google shows for the fare, or null when Google gives no count (often on international and premium fares).
  • Each leg's amenities lists Google's labels, such as Free Wi-Fi, Wi-Fi for a fee, In-seat power & USB outlets, On-demand video, Live TV or Stream media to your device; [] when Google lists none.
  • booking_url opens the selected one-way itinerary's Google Flights booking page. For round trips it is the search URL, since the record does not select a return flight. Missing booking details also use the search URL. booking_token is Google's itinerary token, or null if absent; links and tokens may expire.
  • Each leg's operated_by is Google's explicit operating-carrier text, or null when absent. It is not a list of codeshare airlines.
  • Records keep the same field names in format v1; any future change will be announced here first.

Fare calendar

Set Fare calendar (days) to compare the cheapest fare on each day's Google Flights search page, starting at your earliest departure date, for up to 180 days per route. For round trips, set Return after days to a fixed length or add Maximum return after days to compare a range. One row per departure date and trip length.

Allow about 2.5 minutes for a 30-day one-way route, or 15-20 minutes for 7-13-day round trips over 30 departure days. Calendar searches use datacenter proxies; residential or custom settings are overridden to keep large-page transfer costs included in the price. Itinerary-mode proxy settings are unchanged.

Example: compare 7-13-day trips from New York to Paris over 30 departure days (210 rows):

{ "routes": ["JFK-CDG"], "departureDates": ["3 weeks"], "fareCalendarDays": 30, "returnAfterDays": 7, "returnAfterDaysMax": 13 }

Calendar row example:

{
"record_type": "calendar_day", "route": "JFK-CDG", "origin": "JFK", "destination": "CDG",
"departure_date": "2026-11-08", "return_date": null, "trip_type": "one_way", "trip_length_days": 0,
"price": 316, "currency": "USD", "is_cheapest": true,
"passengers": { "adults": 1, "children": 0, "infants_on_lap": 0 }, "cabin_class": "economy",
"source_url": "https://www.google.com/travel/flights/search?tfs=...&hl=en&gl=us&curr=USD",
"status": "ok", "error": null, "scraped_at": "2026-11-01T23:04:45.633Z"
}
  • price is the lowest fare on the search page before "View more flights", for that departure and trip length and your whole party, or null if Google shows none. Null-price rows are uncharged. trip_length_days is 0 for one way; otherwise return_date is that many days after departure. is_cheapest marks every lowest-priced row across the route's whole window and all lengths, before free-plan caps. source_url opens that row's dated search.
  • Use airport codes such as JFK for calendar routes. A failed date returns one uncharged error row; the remaining dates continue. A day with no flights returns status: "ok" and price: null.
  • Itinerary records carry record_type: "flight". The dataset has a "Fare calendar" view.

status: "no_data" means Google listed no flights for that route and date. status: "error" means the search failed after all retries; error says why. You never pay for no_data or error records. A run summary (RUN_SUMMARY) is saved in the run's key-value store.

Use it from code

Get your API token in Apify Console under Settings > API & Integrations. Each example runs the actor, waits for it to finish and prints the itineraries.

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("cozybit/google-flights-scraper").call(run_input={
"routes": ["JFK-CDG"],
"departureDates": ["2027-03-12"],
"returnAfterDays": 7,
})
for flight in client.dataset(run["defaultDatasetId"]).iterate_items():
print(flight["airlines"], flight["departure_time"], flight["stops"], flight["price"])

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('cozybit/google-flights-scraper').call({
routes: ['JFK-CDG'],
departureDates: ['2027-03-12'],
returnAfterDays: 7,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const flight of items) console.log(flight.airlines, flight.departure_time, flight.stops, flight.price);

HTTP API, one request that runs the actor and returns the records as JSON (for runs up to 5 minutes; use the clients above for longer ones):

curl -X POST "https://api.apify.com/v2/acts/cozybit~google-flights-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer <YOUR_API_TOKEN>" -H "Content-Type: application/json" \
-d '{"routes": ["JFK-CDG"], "departureDates": ["2027-03-12"], "returnAfterDays": 7}'

To watch fares over time, save the input as a task in Apify Console and add a schedule; relative dates such as "departureDates": ["3 weeks"] keep each run looking the same distance ahead.

Use with AI agents and automation

AI agents (MCP): Claude, ChatGPT, Cursor and other MCP clients can run this actor through Apify's MCP server. Add the server to your client with only this actor as a tool:

{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=cozybit/google-flights-scraper" } } }

On first use your browser opens to sign in to Apify; alternatively, send your API token as an Authorization: Bearer <YOUR_API_TOKEN> header. Then ask, for example: "Find flights from JFK to London Heathrow on 12 March for two adults and list the three cheapest with their included bags." The agent fills in the input from the field descriptions and reads the itineraries from the run's dataset. Client guides: Claude Desktop, ChatGPT, Cursor.

n8n and Make: run the actor from a workflow with Apify's official n8n node or Make module, and pass the fares on to Google Sheets, Slack or a price-alert step.

Pricing

Trial price until 31 December 2026: 0.01 USD per 1,000 flights (the lowest price Apify allows). From 1 January 2027 this scraper costs 0.75 USD per 1,000 flights. Apify notifies all users before a price change.

You pay per itinerary returned; platform usage (compute and proxies) is included.

EventPrice
Flight (one itinerary with its price)0.75 USD per 1,000 (0.00075 USD each)

Worked examples (a search typically returns about 17 itineraries, see Limits):

  • One route on one date, about 17 itineraries: about 0.013 USD.
  • One route on 30 dates to find the cheapest day, about 500 itineraries: about 0.38 USD.

The fare calendar is included during the trial until 31 December 2026. Its planned price is 0.80 USD per 1,000 priced calendar rows; a separate calendar event is not charged until announced and enabled.

To cap spending, set a maximum cost per run in the run options, or lower "Maximum itineraries per search"; the actor stops cleanly when the cap is reached.

Free Apify plan

On the free Apify plan a run returns at most 40 itineraries (or 40 calendar rows across all dates and trip lengths). When the limit is reached the run finishes successfully with the status message "Free Apify plan limit reached"; everything collected so far is in the dataset. Any paid Apify plan removes the limit.

Reliability

In 48 test runs on the Apify platform (15 routes, 5 countries and currencies, dates 3-180 days ahead, one-way and round trips), 45 of 48 searches returned itineraries (1,123 in total) and Google limited no IP. The other 3 got a temporary Google error page; the actor retries such pages through a new IP, up to eight attempts. The median run took 5 seconds. Fare calendar prices matched another scraper's calendar on all 30 days of a side-by-side test.

How it stays reliable: the actor reads the data Google embeds in its result page instead of driving a browser, sends a few paced requests per IP and switches to a new IP when Google limits one. Each search is checked against your date and currency, so a page where Google ignored your request becomes a clear error instead of wrong prices. If Google changes its page format, the run fails with a message naming the changed part rather than returning an empty or wrong dataset.

Limits

  • Round trips return the outbound options with round-trip prices; the matching return flights (a second step on Google Flights) are not included.
  • Only the list before "View more flights" is returned, not Google's full list: a median of 17 itineraries per search in our tests, range 7-68. Raising the per-search cap does not fetch the extra flights.
  • Children and lap infants (experimental) are sent to Google, but Google's response does not confirm the party, so check family prices.
  • Fare calendar: at most 600 searches per run (departure days × trip lengths × routes), up to 180 departure days and 15 trip lengths per route. The last return must be within 330 days ahead. Use airport codes. Each date is retried independently when Google returns a temporary error.
  • Multi-city trips are not supported in this version.
  • Prices are what Google shows at the time of the run and change often.
  • Google Flights has no official public API; when Google changes its site the actor may fail until it is updated.

FAQ

Does it return every flight on the route? It returns the list Google shows before "View more flights", typically about 17 itineraries per search (see Limits).

Does it include return flights? Round trips return the outbound options with the round-trip price; the matching return flights are not included.

Can I use city codes such as NYC or LON? Yes, for itineraries. Use airport codes such as JFK for the fare calendar.

Which bags are included in the price? Each itinerary has carry_on_bags_included and checked_bags_included as Google shows them, or null when Google gives no count.

How do I find the cheapest day to fly? Set Fare calendar (days) to get the cheapest fare for every day over up to 180 days, or use Google Flights Fare Calendar for many routes.

Can I watch fares every day? Yes: save the input as a task with a schedule and use relative dates such as "3 weeks" (see Use it from code).

Can I try it on the free Apify plan? Yes, with up to 40 itineraries or calendar days per run (see Free Apify plan).

Support

Report problems and feature requests on the actor's Issues tab, ideally with the run link.