Google Flights Scraper: Prices & Times (Apify Actor)

Get Google Flights prices for a route and dates: airlines, flight numbers, times, duration, stops, layovers, CO2 and exact price in your currency. One-way or round trip, cabin, passengers, stops filter and date range. No login. JSON or CSV. Price: $0.01665 per search with results, $0.001 per empty search. Runs as an Apify Actor, callable from MCP clients via the Apify MCP server (https://mcp.apify.com/?tools=cliqtomedia/google-flights-scraper).

Hosted MCP Server

npx add-mcp 'https://mcp.apify.com/?tools=cliqtomedia/google-flights-scraper'

Installs into Claude Code, Codex, Cursor and more

Documentation

Google Flights Scraper - Prices & Times, No Login (cliqtomedia/google-flights-scraper) Actor

Get Google Flights prices for a route and dates: airlines, flight numbers, departure and arrival times, duration, stops, layovers, CO2 and exact price in your currency. One-way or round trip, cabin, passengers, stops filter, date range. No login.

Pricing

from $11.60 / 1,000 flight search with results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events. Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes. In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours, and optionally produces a well-defined JSON output, datasets with results, or files in key-value store. In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects. You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the API section below.

Each client library has reference documentation the quickstart does not restate: JavaScript/TypeScript (npm install apify-client) and Python (pip install apify-client).

README

Google Flights Scraper searches Google Flights for your route and dates and returns one row per flight: airline, flight numbers, departure and arrival time, duration, stops, layovers, COโ‚‚ and the exact price in your currency.

Add two airport codes and a date. A normal search takes a few seconds, costs one search event and needs no login, cookies or API key. Use it as a simple flight price API for fare tracking, airfare research and cheapest-day searches.

Google Flights Scraper: route and dates in, flights with exact prices out

Run it now: open the prefilled input form and search Google Flights prices, no coding

Table of contents

What it does

The Actor opens the public Google Flights results page for one route, one departure date and your passengers, the same page you see in a browser without signing in. It reads the flight list from that page and saves each flight option as one Dataset row. Prices are the total for all passengers, in the currency you choose.

You can search one-way or round trip, choose the cabin class and the maximum number of stops, and search up to 31 departure days and up to 10 routes in one run to find the cheapest day. You can sort the flights by price, duration, departure time or COโ‚‚, and keep only flights under a price, within a departure-time window or with chosen airlines.

๐Ÿ‘‰ Try it now: open the input form

Good fit

  • Compare fares and flight times for one route on one or more dates.
  • Find the cheapest departure day in a date range of up to a month.
  • Compare several routes on the same dates, for example nearby airports.
  • Collect flight prices on a schedule to see how they change over time.

Not a fit / limits

  • No booking, no booking links and no airline-site prices: the Actor only reads what Google Flights shows on its results page.
  • No price insights (price level, price history graph), no Google Flights calendar or date grid and no multi-city trips. To find the cheapest day, search a date range with additionalDepartureDays.
  • Round trip: each row is an outbound flight with the round-trip total price, as Google shows it on the first step. Return flights are not listed.
  • Searches with children or infants: on some routes Google does not put the flights into the page and loads them later in the browser. Such a date gets a free error row with SOURCE_INCOMPLETE. With children, Google can also show fewer flights than for adults only.
  • Prices change often and can differ from the price on the airline website.

๐Ÿ‘‰ Try it now: open the input form

How it works

  1. You give two airport codes and a departure date (and optionally more dates, routes, passengers and filters). The Actor checks the input before it sends anything.
  2. For each route and date it opens the public Google Flights results page, the same page you see without signing in, and reads the flight list. It starts with a direct connection and moves to an Apify proxy by itself only if Google refuses.
  3. It applies your sort order and filters and saves one Dataset row per flight, plus a free not_found or error row for a date without flights. RUN_SUMMARY and a plain status message tell you how the run ended.

๐Ÿ‘‰ Try it now: open the input form

Quick start

Input form: route BKK to SIN and departure date +30 marked as box 2

  1. Open the Input tab.

  2. Keep the prefilled route BKK โ†’ SIN and departureDate +30 (box 2: 30 days from today), or add your own airport codes and date.

  3. Click Start.

  4. Open the Flights view of the Dataset and check airline, departure, price and currency (box 4).

    Flights table: airline, times, stops, price and currency marked as box 4

Expected result: about 10โ€“60 flight rows (prefill: up to 50) in a few seconds, best flights first, as Google orders them.

๐Ÿ‘‰ Try it now: open the input form

Use cases

Buyer jobInputKey fieldsNext step
Compare fares for a triporigin, destination, departureDate, returnDateairline, departure, arrival, stops, priceExport to CSV or a spreadsheet
Find the cheapest dayadditionalDepartureDays, sortBy: "price", maxResults: 1departureDate, price (or cheapestPrice in RUN_SUMMARY)Pick the lowest row
Compare nearby airportsadditionalRoutesroute, price, durationMinGroup by route
Fares for one airline or allianceincludeAirlinesairlineCodes, flightNumbers, priceExport to a spreadsheet
Track a route over timeSame input on a scheduleflightNumbers, departure, price, fetchedAtCompare runs by flight number and departure time
Travel COโ‚‚ reportsRoute and datesemissionsKg, typicalEmissionsKg, durationMinJoin with your trip list

๐Ÿ‘‰ Try it now: open the input form

Input

Input fields

FieldPlain nameTypeRequiredDefault / prefillAllowed valuesEffect
originFrom airportstringyesprefill BKK3-letter IATA codeDeparture airport
destinationTo airportstringyesprefill SIN3-letter IATA code, not the same as originArrival airport
departureDateDeparture datestringyesprefill +30YYYY-MM-DD or +N days from today, up to about 330 days aheadFirst departure date
returnDateReturn datestringnoempty (one-way)YYYY-MM-DD or +N, not before departureDateMakes the search a round trip
additionalDepartureDaysExtra daysintegerno00โ€“30Also searches the next N days; each day is one search
additionalRoutesMore routesarray of stringsnoemptyup to 9 entries like JFK-LAXSearches each route on the same dates and with the same settings
adultsAdultsintegerno11โ€“9Passengers aged 12+
childrenChildrenintegerno00โ€“8Passengers aged 2โ€“11
infantsInSeatInfants in seatintegerno00โ€“8Passengers under 2 with their own seat
infantsOnLapInfants on lapintegerno00โ€“8, at most one per adultPassengers under 2 without a seat
cabinClassCabinstringnoeconomyeconomy, premium_economy, business, firstCabin to search
maxStopsStopsstringnoanyany, nonstop, 1, 2Keeps flights with at most this many stops
sortBySort flights bystringnogooglegoogle, price, duration, departure, emissionsOrder of rows in each search; rank follows it
maxResultsMax flights per searchintegerno50 (prefill 50)1โ€“300Maximum rows for each route and date, after sorting and filters
maxPriceMax priceintegernoempty1 or more, in currencyKeeps flights at or below this total price
maxDurationMinutesMax durationintegernoempty30โ€“6000Keeps flights with total travel time up to this
departureTimeFrom, departureTimeToDeparture hoursintegernoempty0โ€“23Keeps flights that leave in this local-hour window (inclusive)
lessEmissionsOnlyLess emissions onlybooleannofalsetrue, falseKeeps flights with lower COโ‚‚ than typical for the route
includeAirlinesOnly these airlinesarray of stringsnoempty2-letter IATA codes, up to 30Keeps a flight only if every airline on it is listed
excludeAirlinesSkip these airlinesarray of stringsnoempty2-letter IATA codes, up to 30Drops a flight if any airline on it is listed
currencyCurrencystringnoUSD3-letter ISO code, e.g. EUR, THBCurrency of price
countryPoint of salestringnoUS2-letter country codeGoogle's point of sale; prices can differ by country
languageLanguagestringnoenlanguage code, e.g. de, pt-BRLanguage of airline and airport names; codes, times and prices do not change
proxyConfigurationProxyobjectnoNo proxyApify proxy settingsLeave as is; see below
deliveryConnectorSend results tostringnoemptyyour Slack, Notion or other MCP connectorPosts a short run summary there (see Send results to Slack or Notion)
deliveryTargetNotion page or channelstringnoemptyNotion page link or Slack channel IDWhere the summary goes

Passengers in total: 9 at most. Routes ร— dates: at most 100 searches per run; about 70 fit into the run time when Google is slow (see Limits). The run checks the input before it sends any request. A wrong input (for example, the same airport twice or a return date before the departure date) ends the run as succeeded with no results, RUN_SUMMARY.status invalid_input and inputErrors (field, message, example), and costs nothing; the status message names the field and gives an example. One wrong entry in additionalRoutes does not stop the run: it gets a free error row and the other routes are searched.

Field names from other flight scrapers also work when our field is not set: departure_id, from โ†’ origin; arrival_id, to โ†’ destination; outbound_date, date โ†’ departureDate; return_date โ†’ returnDate; maxItems, limit โ†’ maxResults; hl โ†’ language; gl โ†’ country; sort_by โ†’ sortBy. If both are set, our field wins. Unknown fields are ignored and listed in the log and in RUN_SUMMARY.ignoredInputFields.

Interacting settings

WhenInput AInput BEffective behavior
Date rangedepartureDateadditionalDepartureDaysSearches departureDate and the next N days, in date order
Round trip with a date rangereturnDateadditionalDepartureDaysThe return date moves with each departure date, so the trip length stays the same
Several routesadditionalRoutesdates and filtersEvery route gets the same dates, passengers, cabin, sorting and filters. Searches run route by route, each in date order
Many flightsmaxResultsGoogle's listYou get at most maxResults rows per search. Google usually lists 10โ€“60 flights for one search
Sorting and filterssortBy, maxPrice, maxDurationMinutes, departure hours, lessEmissionsOnly, airlinesGoogle's listApplied to the flights Google listed in the page, then maxResults keeps the first ones. A flight without the value (for example no price) is dropped by that filter and sorted last. If filters remove every flight, the search gets one not_found row that names the filters; it is charged as empty-search
Night windowdepartureTimeFrom: 22departureTimeTo: 5A window that passes midnight: 22:00โ€“05:59
Row limit of the runMax items set in the run optionsall searchesThe run writes no more rows than the limit, sends no new searches after it and ends with PARTIAL and limitReached: "MAX_ITEMS"
ProxyproxyConfigurationโ€”With "No proxy" the run connects directly and, only if Google refuses, moves to Apify datacenter and then residential proxy automatically. This is included in the price. You cannot choose the RESIDENTIAL group by hand (the run ends at once with an input error, free). If Google answers only through residential proxy and lists no flights for 3 dates, the run stops with REQUEST_CAP and marks the other dates as not processed

Input example

{
  "origin": "BKK",
  "destination": "SIN",
  "departureDate": "2026-11-14",
  "maxResults": 20
}

Expected behavior: one Google Flights search, one-way, 1 adult, economy, USD. Expected output: up to 20 flight rows with airline, flightNumbers, departure, arrival and price. Cost: one flight-search event.

Cheapest nonstop morning flights on two routes for a week:

{
  "origin": "JFK",
  "destination": "LAX",
  "additionalRoutes": ["EWR-LAX"],
  "departureDate": "+30",
  "additionalDepartureDays": 6,
  "maxStops": "nonstop",
  "departureTimeFrom": 6,
  "departureTimeTo": 11,
  "sortBy": "price",
  "maxResults": 5
}

Expected behavior: 2 routes ร— 7 dates = 14 searches; for each one the 5 cheapest nonstop flights leaving 06:00โ€“11:59. Cost: 14 search events (a date where no flight passes the filters is an empty-search).

๐Ÿ‘‰ Try it now: open the input form

Output

Each flight option is one row in the default Dataset. The Flights view shows the main columns as a table. The key-value store record RUN_SUMMARY has the run status and, for each date, how many flights Google listed and the cheapest price.

Output example

{
  "status": "complete",
  "statusReason": null,
  "errorCode": null,
  "route": "BKK-SIN",
  "tripType": "one_way",
  "departureDate": "2026-11-14",
  "returnDate": null,
  "cabinClass": "economy",
  "adults": 1,
  "rank": 1,
  "isBest": true,
  "airline": "Scoot",
  "airlineCodes": ["TR"],
  "flightNumbers": ["TR625"],
  "departureAirport": "BKK",
  "arrivalAirport": "SIN",
  "departure": "2026-11-14T11:50",
  "arrival": "2026-11-14T15:25",
  "durationMin": 155,
  "stops": 0,
  "layovers": [],
  "segments": [
    {
      "flightNumber": "TR625",
      "airline": "Scoot",
      "operatedBy": null,
      "departureAirport": "BKK",
      "arrivalAirport": "SIN",
      "aircraft": "Boeing 787",
      "legroom": "31 in"
    }
  ],
  "price": 129.05,
  "currency": "USD",
  "emissionsKg": 96,
  "typicalEmissionsKg": 103,
  "sourceUrl": "https://www.google.com/travel/flights?tfs=GhoSCjIwMjYtMTEtMTRqBRIDQktLcgUSA1NJTkABSAGYAQI&hl=en&gl=US&curr=USD",
  "fetchedAt": "2026-10-15T04:36:08.068Z"
}

This example is trimmed: it shows one row from the input example above, and some fields (origin, destination, children, infantsInSeat, infantsOnLap, airlines, airport names and times inside segments) are left out. null means Google did not show the value. It never means zero.

Output fields

FieldMeaningTypeCan be empty?Example / enum
statusRow typestringnocomplete, not_found, error
statusReasonWhy a row is not_found or errorstringyesPlain-English reason
errorCodeError type for error rowsstringyesSOURCE_BLOCKED, SOURCE_INCOMPLETE, SOURCE_UNAVAILABLE
routeOrigin and destinationstringnoBKK-SIN
tripTypeOne-way or round tripstringnoone_way, round_trip
departureDate, returnDateSearch datesstringreturnDate yes2026-11-14
origin, destinationAirport codes of the searchstringonly on the error row of an invalid extra routeBKK
cabinClass, adults, children, infantsInSeat, infantsOnLapSearch settingsstring / integernoeconomy, 1
rankPosition in the chosen order (sortBy)integerfor flight rows no1
isBestIn Google's "Best" groupbooleanfor flight rows notrue
airlineMain airlinestringyesScoot
airlines, airlineCodesAll airlines of the triparrayyes["TR"]
flightNumbersFlight numbers, in orderarrayyes["TR625"]
departureAirport, arrivalAirportAirportsstringyesBKK
departure, arrivalLocal date and timestringyes2026-11-14T11:50
durationMinTotal travel time in minutesintegeryes155
stopsNumber of stopsintegeryes0
layoversStop airport and wait timearrayyes[{"airport": "KUL", "durationMin": 95, โ€ฆ}]
segmentsEach flight leg: flight number, airline, operator, airports, times, aircraft, legroomarrayyessee example
priceTotal price for all passengersnumberyes, when Google writes "Price unavailable"129.05
currencyCurrency of pricestringyesUSD
emissionsKg, typicalEmissionsKgCOโ‚‚ of this flight and a typical one for the route, kgintegeryes96
sourceUrlThe Google Flights page of this searchstringnohttps://www.google.com/travel/flights?tfs=โ€ฆ
fetchedAtWhen the page was read (UTC)stringnoISO time

Rows and run status

SituationWhat you getWhat to do
Flights foundOne complete row per flight, up to maxResults per searchUse price, departure, flightNumbers
Google listed no flights for a date, or none passed your filtersOne not_found row with statusReasonCheck the airport codes, date and filters
A wrong entry in additionalRoutesOne free error row with INVALID_INPUT, route = your textFix the entry, e.g. JFK-LAX
Unknown airport codeOne not_found row: "check that both airport codes exist"Fix origin or destination
Google did not put the flights into the page (SOURCE_INCOMPLETE, searches with children or infants)One free error row for that date; the run goes on with other datesSearch adults only or another date
A date failed (block, Google error)One free error row with errorCode. After a block, a Google error or two failed dates in a row the run stops, and the other dates get free "Not processed" rowsRun again later (see Troubleshooting)
The max charge is reachedRows of paid searches stay; run status PARTIAL, CHARGE_LIMITRaise the max charge of the run
The run's max items is reachedRows up to the limit stay; PARTIAL, limitReached: "MAX_ITEMS"Raise the limit or search fewer dates
Run time is almost overRows of answered searches stay; PARTIAL, DEADLINESplit the dates and routes across runs

RUN_SUMMARY.status is COMPLETE, NO_RESULTS, PARTIAL, ERROR, invalid_input or CANCELLED. invalid_input means your own input was wrong: the run ends succeeded with no results, inputErrors lists the field and an example, and nothing is charged. PARTIAL runs succeed: the run stopped at your charge or item limit, at the time limit, or some dates had free error rows. The run fails when nothing could be searched (every date failed, time ran out before the first answer) or when Google blocked or broke the run after some dates; the rows it saved stay in the Dataset.

Status messages

The last status message of the run (the line under the run name in Apify Console) tells you in plain words how it ended. A โญ link is only in a line where flights were saved. If delivery to your connector failed, ยท Delivery to your connector failed, see the log. is added at the end of the line. For the lines below, N is the number of saved flights and M is the number of searches.

Final line starts withRun stateMeaningWhat to do
โœ… N flights saved from M searchesSucceededEvery search was answeredUse the Dataset
โœ… N flights saved and Stopped at the max items of this run.SucceededThe limit of rows was reached when every search was already doneNothing, or raise the limit
โš ๏ธ N flights saved, F of M searches failed and See the error rows in the Dataset.SucceededSome dates got a free error rowSee SOURCE_INCOMPLETE and SOURCE_BLOCKED or SOURCE_UNAVAILABLE
โš ๏ธ N flights saved, K of M searches not done and Stopped at the maximum charge you set for this run.SucceededThe next search did not fit into the maximum chargeSee CHARGE_LIMIT or MAX_ITEMS
โš ๏ธ โ€ฆ and Stopped at the max items of this run.SucceededThe limit of rows was reached before every search was doneSee CHARGE_LIMIT or MAX_ITEMS
โš ๏ธ โ€ฆ and Stopped at the time limit of the Actor; split dates and routes across runs.SucceededAbout 270 seconds passedSee DEADLINE
โš ๏ธ โ€ฆ and Google kept refusing requests, so the other dates were not searched.SucceededGoogle refused every route for 3 dates in a rowSee REQUEST_CAP
โ„น๏ธ 0 flights: Google Flights shows none for this route, these dates and filtersSucceededEvery search got one not_found rowSee not_found
Invalid input: followed by the field and an exampleSucceededYour input was wrong, nothing was searched or chargedSee input error
โŒ No flights saved: or โŒ N flights saved, then the run failed:, then one of the reasons time ran out before any search was answered, Google blocked the searches or returned an error, no search could be completed, something went wrongFailedNothing could be searched, or Google blocked the run after some datesSee The run failed
โŒ Run failed: the proxy settings are invalid or not available for this accountFailedThe chosen proxy cannot be usedSee The run failed
โŒ Run failed followed by Report it: and Run link:FailedAn unexpected error; the log has the masked messageSee The run failed
โš ๏ธ Run abortedAbortedYou stopped the run (or the platform sent a stop signal): same line both waysSee Run aborted
No final line, a platform message such as out of memoryFailed or stopped by the platformThe platform ended the run from outsideSee memory or platform error

When the run's max items (ACTOR_MAX_PAID_DATASET_ITEMS of the run options) is reached, the Actor writes no more rows and ends with the max-items lines above.

Send results to Slack or Notion

Pick your connector in the optional deliveryConnector field. After the run saves its data, the Actor posts a short summary there: the first 25 flights (route, date, airline, flight numbers, times, stops and price) and a link to the full dataset. Put a Notion page link or a Slack channel ID in deliveryTarget: in Notion every run is added on top of that one page, so your workspace does not fill up with new pages. Without a page link, Notion delivery is skipped and the log says so. A delivery error never fails the run and costs nothing extra; RUN_SUMMARY.delivery shows what happened. Connect a service once in Apify Console โ†’ MCP connectors.

๐Ÿ‘‰ Try it now: open the input form

Pricing

Pricing unit

You pay per search. One search is one route and one departure date (with its return date for a round trip).

EventWhenFree planBronzeSilverGold and higher
flight-searchGoogle listed flights for the search. Includes every row up to maxResults$0.01665$0.015$0.0133$0.0116
empty-searchGoogle listed no flights, none passed your filters, or an airport code is unknown (one not_found row)$0.001$0.001$0.001$0.001

Error rows, invalid input and delivery to Slack or Notion are free. Proxy and platform usage are included in the price. The price does not depend on how many rows a search returns.

If the next search does not fit into the maximum charge you set for the run, the Actor does not write it and stops with PARTIAL and CHARGE_LIMIT.

Cost examples (Free plan prices)

ScenarioInputEventsCharge
One date (prefill)BKK โ†’ SIN, +301 flight-search (17 flights in our test)$0.01665
Cheapest day in two weeksadditionalDepartureDays: 1415 flight-search$0.24975
Cheapest day in a monthadditionalDepartureDays: 3031 flight-search$0.51615
Three routes, one dateadditionalRoutes: ["JFK-LAX", "EWR-LAX"]3 flight-search$0.04995
Route without flights1 date1 empty-search$0.001
Wrong inputsame airport twicenone$0

๐Ÿ‘‰ Try it now: open the input form

Limits

  • Up to 31 departure dates (additionalDepartureDays 0โ€“30), up to 10 routes and up to 100 searches per run, and up to 300 rows per search. This is a limit, not a typical count: in our tests Google listed 10โ€“60 flights per date.
  • Sorting and filters work on the flights Google put into the first results page; the Actor does not load more pages.
  • In our tests a search took about 1โ€“3 seconds; 15 dates with 260 flights took 4.3 seconds.
  • The Actor stops searching about 270 seconds after the start (about 230 seconds when deliveryConnector is set, to leave time for the summary); a longer run timeout does not extend this. In our test with 100 searches Google slowed the run down, and it answered 76 searches (228 flights) before this limit and ended PARTIAL with DEADLINE. For more than about 70 searches, split the routes and dates across runs.
  • Dates can be up to about 330 days ahead, as on Google Flights.
  • Searches with children or infants can come back without flights on some routes (a free error row), and a search is one route and one date: there is no multi-city, calendar or price-insights data.

๐Ÿ‘‰ Try it now: open the input form

API, export and integrations

  • Export: download the Dataset as JSON, CSV, Excel, XML or HTML from the run page, or use the Apify API.
  • API: start the Actor with the Apify API and read rows from the default Dataset (view=flights for the table columns).
  • Scheduling: create an Apify schedule with the same input to collect prices every day. Each run is a new search; the Actor does not keep state between runs.
  • Webhooks / no-code: use Apify webhooks or the Make, Zapier and n8n integrations to send new rows to your sheet or database.
  • Slack or Notion: set deliveryConnector to get a short summary after each run (see Send results to Slack or Notion).

Use with AI agents (MCP)

  • MCP server URL with only this Actor: https://mcp.apify.com?tools=cliqtomedia/google-flights-scraper.
  • Smallest useful input:
{ "origin": "BKK", "destination": "SIN", "departureDate": "+30" }
  • Key output fields: airline and flightNumbers (who flies), departure and arrival (local time), stops, price with currency (total for all passengers), status (complete, not_found or error).
  • One date usually finishes in a few seconds and costs one search event (see Pricing). Limits: 31 dates, 10 routes, 100 searches (about 70 fit in time when Google is slow) and 300 rows per search per run; airport codes must be 3-letter IATA codes.

๐Ÿ‘‰ Try it now: open the input form

Troubleshooting

A date has not_found

Symptom: one not_found row and no flights. Likely reason: Google has no flights for this route, date and filter, an airport code is wrong, or your filters (maxPrice, departure hours, airlines) removed every flight; statusReason then names the filters. Check: open sourceUrl in a browser and read statusReason. Action: check the codes, loosen the filters, try maxStops: "any" or another date.

A date has error with SOURCE_INCOMPLETE

Symptom: the search has children or infants, and the row says Google did not include flights in the page. Likely reason: on some routes Google loads these results later in the browser. Action: search for adults only, or try another date. This row is free.

A date has error with SOURCE_BLOCKED or SOURCE_UNAVAILABLE

Symptom: Google showed an unusual-traffic page or an internal error after retries. Action: run again later. Keep proxyConfiguration on "No proxy" so the Actor can move to Apify proxy by itself. Error rows are free.

The run stopped with REQUEST_CAP

Symptom: the summary says Google answered only through residential proxy and listed no flights for 3 dates. Likely reason: Google refused the direct and datacenter routes, and the route has no flights on these dates. Action: check the route and dates, then run the rest later. The rows for dates that were not processed are free.

The run stopped with CHARGE_LIMIT or MAX_ITEMS

Symptom: status PARTIAL, fewer dates than asked. Action: raise the maximum charge or max items of the run, or search fewer days.

The run stopped with DEADLINE

Symptom: status PARTIAL, the log says the run time is almost over. Action: split the dates and routes across runs. The Actor stops searching about 270 seconds after the start, so a longer run timeout does not add searches. If not one search was answered by then, the run fails with the reason time ran out before any search was answered (see below).

The run failed (red status message)

Symptom: the run ends FAILED and the status message starts with โŒ. It always has a reason in plain words, the Issues link and a run link. Rows saved before the failure stay in the Dataset. Reasons and what to do:

  • time ran out before any search was answered: Google was too slow for even one search before the time limit of about 270 seconds. Run again later with fewer dates and routes.
  • Google blocked the searches or returned an error: Google showed an unusual-traffic page or an error on every route the Actor tried (direct, Apify datacenter proxy, residential proxy). Run again later and keep proxyConfiguration on "No proxy".
  • no search could be completed: every date failed. Open the error rows in the Dataset (see the sections about SOURCE_INCOMPLETE and SOURCE_BLOCKED above) and change the search or run later.
  • something went wrong: an unexpected stop. Report it in the Issues tab with the run link.
  • the proxy settings are invalid or not available for this account: the proxy group you chose is not available to your account. Set proxyConfiguration back to "No proxy".

A line with only โŒ Run failed, the Issues link and the run link means the Actor stopped on an unexpected error. The log has the error message with tokens and proxy addresses masked. Send the run link in the Issues tab. Nothing is charged for a failed search.

The run was stopped by me (Run aborted)

Symptom: you pressed Abort or Stop, and the status message usually says โš ๏ธ Run aborted with the number of flights saved. Apify marks the run ABORTED. A stop signal from the platform gives the same line. If the stop came very fast, the status can stay at the last progress line; the run is still ABORTED. Rows already written stay in the Dataset, and you pay only for searches that had been answered. Start the run again with fewer dates or routes if you want the rest.

The run ended with a memory or platform error

Symptom: the run page shows a platform message (for example that the Actor ran out of memory or was stopped by Apify) and the status message is the last progress line, not a final one. The Actor cannot write a final line when the platform stops it from outside. The Actor runs with 256 MB; a run with 451 rows fit in our tests. If this happens, open the Issues tab with the run ID and your input.

My field was ignored

Symptom: the log lists ignored input fields. Action: check the field name in the Input fields table; RUN_SUMMARY.ignoredInputFields lists what was not used.

The run finished at once with no results and an input error

Run finished with no results and an input error message โ€” fix the named field and run again. The status message says which field to fix, for example a 3-letter airport code or a return date before the departure date. RUN_SUMMARY.status is invalid_input. Nothing was charged.

๐Ÿ‘‰ Try it now: open the input form

FAQ

Do I need a Google account, login or API key?

No. The Actor reads the public Google Flights results page, without login or cookies.

Is the price the same as on the airline website?

Not always. The Actor returns the price Google Flights shows for the point of sale in country at the time in fetchedAt. Airlines and agents can show other prices, and fares change often.

Why do I get fewer flights than in my browser?

The Actor returns the flights Google puts on the first results page, up to maxResults, after your filters. With children, Google can put fewer flights into the page. Booking options for each flight are not part of the output.

Can I get the Google Flights calendar or price graph?

Not in this Actor. Search a date range with additionalDepartureDays (up to 31 days) and sortBy: "price": RUN_SUMMARY has the cheapest price for each date.

Is there an official Google Flights API?

No public one. This Actor gives you the same flight list as JSON through the Apify API.

๐Ÿ‘‰ Try it now: open the input form

Related Actors

๐Ÿ‘‰ Try it now: open the input form

Support

For bugs, questions or feature requests, open an issue in the Issues tab of this Actor. Include the run ID and the route and date that gave an unexpected result. Do not send API tokens or private data.

โญ Found it useful? Rate this Actor. Something wrong? Report a problem โ€” we fix reported problems.

๐Ÿ‘‰ Try it now: open the input form

Run it now: open the prefilled input form and search Google Flights prices, no coding

Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/google-flights-scraper/changelog.md

Actor input Schema

origin (type: string):

Departure airport as a 3-letter IATA code, e.g. BKK, JFK, LHR.

destination (type: string):

Arrival airport as a 3-letter IATA code, e.g. SIN, CDG.

departureDate (type: string):

YYYY-MM-DD, or +N for N days from today (e.g. +30). Up to about 330 days ahead.

returnDate (type: string):

Leave empty for one-way. YYYY-MM-DD or +N. For a round trip, each row is an outbound flight with the round-trip total price, as Google Flights shows it on the first step.

additionalDepartureDays (type: integer):

Also search the next N days (0โ€“30) to find the cheapest day. Each day is one search; the return date moves with it. Routes ร— days: at most 100 searches per run; about 70 fit into the run time when Google is slow, so split larger jobs across runs.

additionalRoutes (type: array):

Up to 9 extra routes as FROM-TO airport codes, e.g. JFK-LAX. Each route is searched on the same dates with the same passengers and filters. An invalid entry gets a free error row; the rest still run.

adults (type: integer):

Adults (12+), 1โ€“9. Prices are the total for all passengers.

children (type: integer):

Children aged 2โ€“11. On some routes Google does not return flights for searches with children or infants; such dates get a free SOURCE_INCOMPLETE row and the run goes on.

infantsInSeat (type: integer):

Infants under 2 with their own seat. Counts toward 9 passengers in total.

infantsOnLap (type: integer):

Infants under 2 on an adult's lap. At most one per adult; 9 passengers in total.

cabinClass (type: string):

Cabin class to search.

maxStops (type: string):

Only flights with at most this many stops.

sortBy (type: string):

Order of rows within each search. Google order is Google's 'best flights first'; the others sort the flights Google listed. Flights without the value go last.

maxResults (type: integer):

Maximum flight options returned for each search (route + date), after sorting and filters. One charge per search that lists flights, however many rows it returns; a search with no flights costs $0.001 and error rows are free.

maxPrice (type: integer):

Keep only flights at or below this total price, in the search currency. Flights without a price are dropped when this is set.

maxDurationMinutes (type: integer):

Keep only flights whose total travel time is at most this many minutes, e.g. 600 for 10 hours.

departureTimeFrom (type: integer):

Earliest departure hour, local time at the origin (0โ€“23). With 'Depart until hour' it makes a window, e.g. 6 to 11 for mornings; 22 to 5 wraps past midnight.

departureTimeTo (type: integer):

Latest departure hour, inclusive (0โ€“23): 11 keeps departures up to 11:59.

lessEmissionsOnly (type: boolean):

Keep only flights Google marks with lower CO2 emissions than typical for the route.

includeAirlines (type: array):

2-letter IATA airline codes, e.g. SQ, TG. Keeps a flight only if every airline on it is in the list.

excludeAirlines (type: array):

2-letter IATA airline codes to drop, e.g. TR. A flight with any of these airlines is removed.

currency (type: string):

3-letter ISO code such as USD, EUR, THB. The currency field of each row shows the currency Google really used.

country (type: string):

2-letter country code Google uses as the point of sale (prices can differ by country).

language (type: string):

Language code for Google's text (airline and airport names), e.g. en, de, pt-BR. Codes, prices and times do not change.

proxyConfiguration (type: object):

Leave on "No proxy": the run connects directly and, only if Google refuses, moves to Apify datacenter and then residential proxy automatically (included in the price). Pick a datacenter group only if you need a specific one; the RESIDENTIAL group cannot be chosen by hand.

deliveryConnector (type: string):

Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console โ†’ MCP connectors.

deliveryTarget (type: string):

Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why.

Actor input object example

{
  "origin": "BKK",
  "destination": "SIN",
  "departureDate": "+30",
  "additionalDepartureDays": 0,
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "sortBy": "google",
  "maxResults": 50,
  "lessEmissionsOnly": false,
  "currency": "USD",
  "country": "US",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}

Actor output Schema

flights (type: string):

Flight options as a table.

runSummary (type: string):

Status, per-date cheapest price, charged events and request statistics.

API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

JavaScript example

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "origin": "BKK",
    "destination": "SIN",
    "departureDate": "+30",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/google-flights-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/js/docs

Python example

from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "origin": "BKK",
    "destination": "SIN",
    "departureDate": "+30",
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/google-flights-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/python/docs/quick-start

CLI example

echo '{
  "origin": "BKK",
  "destination": "SIN",
  "departureDate": "+30",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call cliqtomedia/google-flights-scraper --silent --output-dataset

MCP server setup

{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/google-flights-scraper"
        }
    }
}

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an Authorization: Bearer <APIFY_API_TOKEN> header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cBDlaP9ACYpRCGngm/builds/TqJ9iIZitaMqbgMaE/openapi.json