Google Flights Scraper – Batch Route Prices to CSV avatar

Google Flights Scraper – Batch Route Prices to CSV

Pricing

from $0.10 / 1,000 flights

Go to Apify Store
Google Flights Scraper – Batch Route Prices to CSV

Google Flights Scraper – Batch Route Prices to CSV

Search multiple Google Flights routes in one run and export results to CSV. Get flight prices, airlines, flight numbers, departure and arrival times, stops, layovers, duration and CO2 estimates. Supports one-way and round-trip searches. Uses plain HTTP.

Pricing

from $0.10 / 1,000 flights

Rating

0.0

(0)

Developer

Kilo Metric

Kilo Metric

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Try two routes in one run

Paste this JSON in the Input tab and click Start. Open Output to export the results as CSV.

{
"routes": [
{ "origin": "BCN", "destination": "LHR", "departureDate": "30 days" },
{ "origin": "JFK", "destination": "LAX", "departureDate": "3 weeks" }
],
"currency": "GBP",
"market": "GB",
"sortBy": "price",
"maxResults": 5
}

What does Google Flights Scraper do?

Google Flights Scraper searches Google Flights for the routes and dates you enter and saves every itinerary listed on the results page: price, airline, flight numbers, departure and arrival times, stops, layovers, total duration, aircraft, legroom and CO₂ estimate.

Enter two airport codes and a date, click Start, and get one row per flight. Search a single route, or a whole list of routes in one run.

  • One-way and round-trip searches: for a round trip, price is the total round-trip fare and the row describes the outbound flights
  • Many routes per run, all with the same passenger, cabin and stop settings
  • Passengers and cabin: adults, children, infants in a seat or on a lap; economy, premium economy, business or first; any number of stops, nonstop only, or up to 1 or 2 stops
  • Currency, market (country of sale) and language of your choice
  • Relative dates such as 30 days or 2 weeks, so scheduled runs and saved tasks never search a date in the past
  • Sorting and limits: Google's own ranking, price, duration or departure time, and a cap on flights per search
  • Nothing fails silently: input mistakes, refused searches and searches without flights each get a row that explains what happened, and the run's status message sums it up
  • Pay for flights, not for errors: rows that explain an error or an empty search are free
  • Plain HTTP, no browser: a search is one request for the results page, plus retries only when needed
  • Apify Proxy by default: a search that Google refuses is retried from a new IP address
  • Apify platform: start runs through the API, schedule them, connect them to integrations and webhooks, use proxies and monitor every run

What data can you get from Google Flights?

FieldExampleDescription
price, currency952, USDFare as listed by Google Flights, taxes and fees included; for a round trip, the total round-trip fare
airline, airlineCodesIcelandair, ["FI"]Airline name(s) and IATA airline codes
flightNumbers["FI451", "FI617"]One flight number per leg
departAirport, departAtLHR, 2026-12-21T12:15First departure, local time at the airport
arriveAirport, arriveAtJFK, 2026-12-21T17:40Final arrival, local time at the airport
stops, layovers1, KEF for 60 minNumber of stops; airport, name, city and minutes of each layover
totalDurationMinutes, duration625, 10 hr 25 minTotal travel time, in minutes and as text
legs2 legsPer leg: flight number, airline, airports, times, duration, aircraft, legroom, CO₂
emissionsKg, emissionsVsTypicalPercent421, 21Google's CO₂ estimate in kg, and how much it differs from the typical value for the route (%)
isBestFlighttrueListed under Google's "Top flights"
rank1Position after sorting
bookingTokenGoogle's price token for the itinerary, as is
googleFlightsUrlThe searched results page; opens in a browser
origin, destination, departureDate, returnDate, tripType, cabinClass, passengersThe search the flight belongs to

How to scrape Google Flights

  1. Open the Actor's Input tab.
  2. Enter the departure airport (From), the arrival airport (To) and the Departure date. Add a Return date for a round trip.
  3. To search several routes in one run, list them under Routes instead.
  4. Set the passengers, cabin class and stops, and optionally the currency, market, language, sorting and the maximum number of flights per search.
  5. Click Start. When the run finishes, the flights are in the Output tab, ready to export or to read through the Apify API.

Input

The simplest input is one route:

{
"origin": "LHR",
"destination": "JFK",
"departureDate": "30 days"
}

For a batch input, see Try two routes in one run.

FieldTypeDefaultDescription
originstringDeparture airport, 3-letter IATA code (e.g. LHR)
destinationstringArrival airport, 3-letter IATA code (e.g. JFK)
departureDatestringYYYY-MM-DD, or relative to the day of the run (UTC): 30 days, 2 weeks, 1 month, 1 year
returnDatestringemptyReturn date for a round trip. Same formats; relative dates also count from the day of the run
routesarrayemptyList of { "origin", "destination", "departureDate", "returnDate" }. When it is not empty, the four fields above are ignored
adultsinteger11 to 9
childreninteger0Aged 2 to 11
infantsInSeatinteger0Under 2, with their own seat
infantsOnLapinteger0Under 2, on an adult's lap; no more than the number of adults. At most 9 passengers in total
cabinClassstringeconomyeconomy, premium_economy, business or first
maxStopsstringanyany, 0 (nonstop only), 1 or 2
currencystringUSD3-letter currency code for the prices
marketstringempty2-letter country code of the point of sale (e.g. US, GB). Empty lets Google decide
languagestringenLanguage of airport and airline names (e.g. en, de, en-GB)
maxResultsinteger1001 to 300 flights per search, kept after sorting
sortBystringbestbest (Google's order: Top flights first, then the other flights by price), price, duration or departure
proxyConfigurationobjectApify Proxy (datacenter)Proxy settings, see the FAQ

If part of the input is wrong, for example a date in the past or the same airport twice, that route is skipped and explained in the output, and the other routes still run.

Output

Each search adds one row per flight to the dataset. A real result from a one-way search London Heathrow → New York JFK, run on 21 November 2026:

{
"type": "flight",
"rank": 1,
"origin": "LHR",
"destination": "JFK",
"departureDate": "2026-12-21",
"returnDate": null,
"tripType": "one_way",
"cabinClass": "economy",
"passengers": { "adults": 1, "children": 0, "infantsOnLap": 0, "infantsInSeat": 0 },
"currency": "USD",
"price": 952,
"isBestFlight": true,
"airline": "Icelandair",
"airlineCodes": ["FI"],
"flightNumbers": ["FI451", "FI617"],
"stops": 1,
"layovers": [
{ "airport": "KEF", "airportName": "Keflavík International Airport", "city": "Reykjavík", "durationMinutes": 60 }
],
"departAirport": "LHR",
"departAt": "2026-12-21T12:15",
"arriveAirport": "JFK",
"arriveAt": "2026-12-21T17:40",
"totalDurationMinutes": 625,
"duration": "10 hr 25 min",
"legs": [
{
"flightNumber": "FI451", "airline": "Icelandair", "airlineCode": "FI",
"from": "LHR", "fromName": "Heathrow Airport", "to": "KEF", "toName": "Keflavík International Airport",
"departAt": "2026-12-21T12:15", "arriveAt": "2026-12-21T15:30", "durationMinutes": 195,
"aircraft": "Boeing 767", "legroom": "31 in", "emissionsKg": 153
},
{
"flightNumber": "FI617", "airline": "Icelandair", "airlineCode": "FI",
"from": "KEF", "fromName": "Keflavík International Airport", "to": "JFK", "toName": "John F. Kennedy International Airport",
"departAt": "2026-12-21T16:30", "arriveAt": "2026-12-21T17:40", "durationMinutes": 370,
"aircraft": "Boeing 737MAX 8 Passenger", "legroom": "31 in", "emissionsKg": 268
}
],
"emissionsKg": 421,
"emissionsVsTypicalPercent": 21,
"bookingToken": "CjRIeEszZnhqV1RYZDBBR3I5a1FCRy0tLS0tLS0teWliZGcxNEFBQUFBR3NCbVVVTTFKbHNBEgtGSTQ1MXxGSTYxNxoLCKLnBRACGgNVU0Q4HXCi5wU=",
"googleFlightsUrl": "https://www.google.com/travel/flights?tfs=CBwQAhoeEgoyMDI2LTEyLTIxagcIARIDTEhScgcIARIDSkZLQAFIAXABmAEC&hl=en&curr=USD",
"resultsSource": "page"
}

Rows that are not flights

The dataset also explains what did not work, so a run never ends with an unexplained empty result. These rows are free: only flight rows are charged. Filter on "type": "flight" if you only want flights.

  • "type": "error": a route that could not be searched. reason is one of invalid_input (the route is skipped, field names the mistake), blocked:refused, blocked:rate_limited, blocked:captcha, blocked:consent, blocked:forbidden, blocked:redirect, skipped:blocked (not requested, see the FAQ on refused searches), network, server_error, no_payload, http_error, parse_error or internal_error.
  • "type": "notice" with "reason": "no_results": the search worked, but Google Flights listed no flights for it.

The Output tab has two views of the same rows: Flights (price, airline, flight numbers, times, stops, duration) and Searches, errors and notices (the search each row belongs to, and the reason and message of error and notice rows).

{
"type": "error",
"reason": "invalid_input",
"field": "departureDate",
"message": "departureDate 2026-11-01 is in the past (today is 2026-11-21, UTC)",
"origin": "LHR",
"destination": "JFK",
"departureDate": "2026-11-01",
"returnDate": null
}
{
"type": "error",
"origin": "BCN",
"destination": "LHR",
"departureDate": "2026-12-10",
"returnDate": null,
"tripType": "one_way",
"cabinClass": "economy",
"currency": "GBP",
"reason": "blocked:refused",
"message": "blocked:refused without a proxy to rotate to; stopped. Google refused or limited the requests: try again later, or set a proxy.",
"googleFlightsUrl": "https://www.google.com/travel/flights?tfs=CBwQAhoeEgoyMDI2LTEyLTEwagcIARIDQkNOcgcIARIDTEhSQAFIAXABmAEC&hl=en&curr=GBP&gl=GB"
}

In addition, the key-value store record SEARCH_SUMMARY holds one summary per search: status, flights found and returned, lowest price, time taken, bytes transferred and every HTTP attempt.

Run status. A run ends as Succeeded when at least one search worked, even if it listed no flights, and when the input only had mistakes (nothing was searched). It ends as Failed when routes were searched and every search failed, so schedules, webhooks and API clients can tell.

How much does it cost to scrape Google Flights?

The Actor uses pay-per-event pricing: you pay for the flights you get.

WhatPrice
Flight: one dataset row of "type": "flight"$0.10 per 1,000 flights ($0.0001 per flight)
Actor start (based on run memory)$0.00005 per GB, with a minimum of one event. At the default 4 GB, the start fee is $0.0002 per run.
Error and notice rowsfree
  • The platform usage of the run, including Apify Proxy, is covered by these prices.
  • One search usually returns 9 to 30 flights, so the flight rows cost about $0.001 to $0.003, plus the start fee for the run. Use Max flights per search (maxResults) to cap it.
  • Apify's free plan gives $5 of usage credit every month: enough for about 50,000 flights.
  • If you set a spending limit for a run, the Actor stops searching once the limit is reached, and the status message says how many routes were not searched.

FAQ

Why do I get fewer flights than Google Flights shows in my browser?

The Actor reads the itineraries that Google embeds in the results page. That is a limited list: in tests in November 2026, one search returned between 9 and 32 itineraries (9 to 30 in the test runs on the Apify platform). The Actor does not page through further results.

Google sometimes answers a search with an error instead of results.

  • With a proxy (the default): the Actor retries the search from a new proxy session, i.e. a new IP address, up to 3 attempts in total. Rate limits (HTTP 429), CAPTCHA pages and consent pages are retried the same way. If every attempt fails, the search gets an error row and the run moves on to the next route.
  • Without a proxy: a refused search is not retried. It gets an error row (blocked:refused) and the run moves on to the next route. A rate limit, CAPTCHA page or consent page applies to every request from the same IP address, so the remaining routes of the run are not requested: each of them gets an error row with skipped:blocked. Set a proxy, or try again later.

Error rows are free.

Which proxy should I use?

Keep the default: Apify Proxy with datacenter IP addresses. In a test run on the Apify platform in November 2026, Google refused 2 of 8 datacenter attempts, and the retries from new IP addresses completed all 6 searches.

  • Apify's residential proxies (the RESIDENTIAL group) are not offered in this version. A run that selects them stops with an invalid_input row for proxyConfiguration and searches nothing.
  • You can enter your own proxy URLs in the Proxy configuration field instead. Their cost is yours.
  • Without a proxy, a refused search is not retried (see above).

Are prices per person or for all passengers?

Prices are the fares listed by Google Flights, taxes and fees included; for one adult the results page says "Prices include required taxes + fees for 1 adult". Whether the listed price for several passengers is per person or for the whole group has not been verified yet, so check googleFlightsUrl when you search for more than one passenger.

What does a round-trip row contain?

price is the total fare of the round trip. The rest of the row (legs, flightNumbers, times, stops, duration) describes the outbound flights; the return flights are not listed. returnDate and tripType (round_trip) show which search the row belongs to.

Known limitations

  • Airports must be 3-letter IATA codes; city names and city codes such as LON or NYC are not supported yet.
  • Round trips list the outbound flights only, with the round-trip price; the return flights are not listed.
  • No multi-city trips, price calendar, price insights (low, typical or high), booking options, or filters by airline or price.
  • Times are local times at each airport, without a time zone.

The Actor reads publicly visible flight listings and its output contains no personal data. However, Google's Terms of Service restrict automated access to Google services. Make sure your use complies with the terms that apply to you and with the law where you are, and ask a lawyer before using the data commercially. You are responsible for how you use the data. This Actor is not affiliated with, endorsed by or sponsored by Google.

Can I run it through the API or on a schedule?

Yes. Like any Apify Actor, it can be started through the Apify API, run on a schedule, and connected to integrations and webhooks. Relative dates such as 30 days keep scheduled searches pointed at the future.

Something looks wrong?

Open an issue on the Issues tab and include the run link. If a search ends with parse_error, or with a no_results notice while its googleFlightsUrl shows flights in your browser, the results page format may have changed: please report it.