Google Flights Scraper — Fares, Stops, Layovers & CO₂ avatar

Google Flights Scraper — Fares, Stops, Layovers & CO₂

Pricing

from $0.70 / 1,000 flight itinerary returneds

Go to Apify Store
Google Flights Scraper — Fares, Stops, Layovers & CO₂

Google Flights Scraper — Fares, Stops, Layovers & CO₂

Scrape Google Flights one-way and round-trip fares by route and date: price, airlines, stops, layovers, flight numbers, aircraft, carbon emissions and the Google Flights link. Filter by stops, airline and max price.

Pricing

from $0.70 / 1,000 flight itinerary returneds

Rating

0.0

(0)

Developer

Khadin Akbar

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

17

Total users

4

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

What is Google Flights Scraper?

Google Flights Scraper returns one dataset row per flight option from Google Flights for the route and dates you choose. Each row has the price, currency, airlines, stops, total duration, departure and arrival times, every segment with flight number and aircraft, layovers, carbon emissions and a link back to the Google Flights search. Travel agencies, fare analysts, travel managers and AI agents use it to compare fares and schedules, with no Google account.

Why travel teams use it

  • One route or hundreds. Send a routes list (up to 200 routes) and they run in parallel in one run.
  • One-way and round trip. Leave returnDate empty for one-way; add it for round-trip prices.
  • Segment detail. Flight numbers, aircraft types, cabins and layover airports and durations.
  • Carbon data. carbonKg and how it compares with a typical flight on the route.
  • 32 currencies and markets. Set currency, country and language for local prices.
  • Relative dates. Use +30 days style dates for schedules that never go stale; if you leave the date empty it defaults to 30 days from today.
  • Plain-language summary. Every run saves OUTPUT with the cheapest and fastest option, ready for an AI agent to read.

How to use it

One-way fares from Los Angeles to New York in a month:

{
"origin": "LAX",
"destination": "JFK",
"departureDate": "+30 days",
"maxResults": 20
}

Business-class round trip London to New York, priced in euros:

{
"origin": "LHR",
"destination": "JFK",
"departureDate": "+45 days",
"returnDate": "+52 days",
"cabinClass": "business",
"currency": "EUR",
"country": "uk",
"maxResults": 10
}

Price 3 routes in one run:

{
"routes": [
{ "origin": "LAX", "destination": "JFK", "departureDate": "+30 days" },
{ "origin": "SFO", "destination": "ORD", "departureDate": "+45 days", "returnDate": "+52 days" },
{ "origin": "SEA", "destination": "DEN", "departureDate": "+21 days" }
],
"maxResults": 10
}

The other settings (passengers, cabin, stops, airlines, currency) apply to every route. maxResults is per route.

InputWhat it controls
routesOptional list of routes (origin, destination, departureDate, optional returnDate), up to 200; replaces the single route
origin, destinationAirport codes such as LAX, JFK, LHR (not needed when you send routes)
departureDate, returnDateYYYY-MM-DD or relative such as +30 days; empty departureDate = 30 days from today; empty returnDate = one-way
adults, children, infantsInSeat, infantsOnLapPassengers
cabinClasseconomy (default), premium_economy, business or first
maxStopsMost stops allowed; 0 for non-stop
includeAirlines, excludeAirlines2-letter airline codes such as UA, BA; use one or the other (alliance names are not supported)
maxPriceHighest total price to keep, in the chosen currency
currency, country, languagePrice currency and Google market
maxResultsMost flight options to save per route (default 50, up to 200)

Output: flight data you receive

A real round-trip row (segments shortened to the first leg's two flights):

{
"tripType": "round_trip",
"origin": "LHR",
"destination": "JFK",
"departureDate": "2026-11-16",
"returnDate": "2026-11-23",
"price": 2191,
"currency": "EUR",
"isBestFlight": true,
"cabinClass": "business",
"totalDurationMinutes": 645,
"stops": 1,
"airlines": ["Icelandair"],
"outbound": {
"departureTime": "2026-11-16T12:15:00",
"arrivalTime": "2026-11-16T18:00:00",
"segments": [
{ "flightNumber": "FI 451", "aircraft": "Boeing 767", "origin": "LHR", "destination": "KEF", "cabin": "Business Class" },
{ "flightNumber": "FI 615", "aircraft": "Boeing 737MAX 9 Passenger", "origin": "KEF", "destination": "JFK", "cabin": "Business Class" }
],
"layovers": [{ "airport": "KEF", "durationMinutes": 80, "overnight": false }]
},
"return": null,
"carbonKg": 983,
"carbonVsTypical": "-15%",
"googleFlightsUrl": "https://www.google.com/travel/flights?hl=en&gl=uk&curr=EUR&tfs=..."
}
FieldWhat it contains
price, currency, isBestFlightFare and whether Google ranks it a best flight
airlines, stops, totalDurationMinutesThe itinerary at a glance
outbound.segments, outbound.layoversFlight numbers, aircraft, cabins and connections
carbonKg, carbonVsTypicalEmissions estimate
googleFlightsUrlThe search on Google Flights
bookingUrlGoogle Flights booking-options page when Google returns one (mostly one-way); otherwise null
tripType, departureDate, returnDate, cabinClassSearch context

For round trips, price is the round-trip fare and outbound describes the first leg; Google Flights chooses the return flight on a second screen, so return stays null.

Example workflow: a fare tracker for a team trip

A travel manager watches fares for a team flying San Francisco to Seattle. Each Monday they collect non-stop options with maxStops 0 for the trip dates and record the lowest price per airline. When the price drops, they book. They continue with Kayak Flights Scraper for the same route to compare booking-site prices and baggage fees.

Pricing

This Actor uses Pay per event. You pay a tiny start event and one event per flight option saved. Apify platform usage is included, so there is no second bill. The live Pricing tab on this page always shows the current prices.

Apify planPrice per flight option saved
Free$0.001
Bronze$0.0009
Silver$0.0008
Gold and above$0.0007

Start event: $0.00005 per run.

JobRowsFree plan priceGold plan price
One route, maxResults 2020about $0.02about $0.014
100 routes, maxResults 202,000about $2.00about $1.40
  • A search that returns no flights is free. Empty and failed searches are never charged.
  • maxStops, airline filters, maxPrice and maxResults reduce the rows saved and charged.
  • Invalid input stops before any search and is not charged. If the search service is unavailable for every route, the run fails with a clear message instead of empty rows.
  • maxResults is the cost ceiling per route. A spending limit on the run stops the search cleanly and the run ends as PARTIAL.

Free Apify plan

Runs started from a free Apify plan return up to 50 results per run, with every input mode and output field available. Paid Apify plans have no per-run limit, so your usual result settings apply.

Flight data with AI agents (MCP)

Connect this Actor to an AI agent through Apify MCP and ask in plain language:

Find the cheapest non-stop flight from San Francisco to Seattle three weeks from today and tell me the airline and time.

Agent checklist:

  1. Set origin, destination and departureDate (relative dates such as +21 days work).
  2. Add returnDate only for round trips.
  3. Use maxStops: 0 for non-stop requests.
  4. Read the run's OUTPUT record first: agentSummary names the cheapest and fastest option and says if any route failed.
  5. Read rows with get-dataset-items and sort by price when you need more.
  6. For several routes, send them all in one routes list instead of starting many runs.

Run outcomes

OUTPUT.outcomeMeaning
COMPLETEEvery route searched and its flights saved
PARTIALSome routes failed, were cut short by the time limit or a spending limit; rows saved so far are kept and billed
VALID_EMPTYThe routes exist but no flights matched the date and filters; nothing charged for the search
INVALID_INPUTThe input was rejected before searching; the message says what to fix
UPSTREAM_FAILEDEvery search failed; the run is marked failed

API example

curl -X POST "https://api.apify.com/v2/acts/khadinakbar~google-flights-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"origin": "SFO", "destination": "SEA", "departureDate": "+21 days", "maxStops": 0, "maxResults": 10}'
Your next stepUseWhy
When you compare booking-site prices and bag feesKayak Flights ScraperBooking options with baggage costs
When you look for award seatsFlight Award Availability ScraperPoints availability on routes
When you then price a hotel for the tripBooking Scraper PROHotel prices and review scores

Best results

Starting situationHelpful actionExpected outcome
Regular trackingUse relative dates such as +30 daysA schedule that never goes stale
A local marketSet currency and country togetherPrices as locals see them
Non-stop onlySet maxStops to 0Direct flights only
Premium cabinsSet cabinClassBusiness or first fares

Builder's note

I found that people comparing flights look at stops, layover length and aircraft as much as price, so every row carries full segment and layover detail. I learned that saved searches with fixed dates go stale, so relative dates such as +30 days are accepted everywhere a date is.

FAQ

Do I need a Google account?

No. The Actor reads public Google Flights results.

Why is return empty on round trips?

Google Flights shows the round-trip price with the outbound flight first and lists return flights on a separate screen. The price covers the whole round trip.

It returns Google Flights links, and airline or travel-agency offers stay on Google Flights. Every row links to the Google Flights search (googleFlightsUrl). When Google returns a booking-options page for an itinerary, mostly on one-way searches, its link is in bookingUrl; otherwise that field is null.

Can I search many routes at once?

Yes. Put up to 200 routes in the routes list. They run in parallel, and the run's memory scales with the list size so large batches finish quickly.

Which airport codes work?

IATA airport codes such as JFK, LHR or NRT.

Can I get prices in my currency?

Yes. Set currency (for example EUR, GBP, JPY) and the matching country.

What do the carbon fields mean?

carbonKg is Google's emissions estimate for the itinerary, and carbonVsTypical compares it with a typical flight on the route.

Responsible use

This Actor collects publicly visible Google Flights results. Use the data for fare research and travel planning, and follow Google's terms and the laws that apply to you. Read Apify's guide on whether web scraping is legal for more context. Google is a trademark of Google LLC. This independent Actor is not affiliated with, associated with, or endorsed by Google. For questions or bugs, open a ticket in the Issues tab.