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.
- URL: https://apify.com/cliqtomedia/google-flights-scraper.md
- Developed by: Cliqto Media (community)
- Categories: Travel
- Features: Limited permissions
- Stats: 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- User rating: No ratings yet
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.

Table of contents
- What it does
- How it works
- Quick start
- Use cases
- Input
- Output
- Pricing
- Limits
- API, export and integrations
- Troubleshooting
- FAQ
- Related Actors
- Support
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.
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
errorrow withSOURCE_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.
How it works
- 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.
- 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.
- It applies your sort order and filters and saves one Dataset row per flight, plus a free
not_foundorerrorrow for a date without flights.RUN_SUMMARYand a plain status message tell you how the run ended.
Quick start
-
Open the Input tab.
-
Keep the prefilled route
BKKโSINanddepartureDate+30(box 2: 30 days from today), or add your own airport codes and date. -
Click Start.
-
Open the Flights view of the Dataset and check
airline,departure,priceandcurrency(box 4).
Expected result: about 10โ60 flight rows (prefill: up to 50) in a few seconds, best flights first, as Google orders them.
Use cases
| Buyer job | Input | Key fields | Next step |
|---|---|---|---|
| Compare fares for a trip | origin, destination, departureDate, returnDate | airline, departure, arrival, stops, price | Export to CSV or a spreadsheet |
| Find the cheapest day | additionalDepartureDays, sortBy: "price", maxResults: 1 | departureDate, price (or cheapestPrice in RUN_SUMMARY) | Pick the lowest row |
| Compare nearby airports | additionalRoutes | route, price, durationMin | Group by route |
| Fares for one airline or alliance | includeAirlines | airlineCodes, flightNumbers, price | Export to a spreadsheet |
| Track a route over time | Same input on a schedule | flightNumbers, departure, price, fetchedAt | Compare runs by flight number and departure time |
| Travel COโ reports | Route and dates | emissionsKg, typicalEmissionsKg, durationMin | Join with your trip list |
Input
Input fields
| Field | Plain name | Type | Required | Default / prefill | Allowed values | Effect |
|---|---|---|---|---|---|---|
origin | From airport | string | yes | prefill BKK | 3-letter IATA code | Departure airport |
destination | To airport | string | yes | prefill SIN | 3-letter IATA code, not the same as origin | Arrival airport |
departureDate | Departure date | string | yes | prefill +30 | YYYY-MM-DD or +N days from today, up to about 330 days ahead | First departure date |
returnDate | Return date | string | no | empty (one-way) | YYYY-MM-DD or +N, not before departureDate | Makes the search a round trip |
additionalDepartureDays | Extra days | integer | no | 0 | 0โ30 | Also searches the next N days; each day is one search |
additionalRoutes | More routes | array of strings | no | empty | up to 9 entries like JFK-LAX | Searches each route on the same dates and with the same settings |
adults | Adults | integer | no | 1 | 1โ9 | Passengers aged 12+ |
children | Children | integer | no | 0 | 0โ8 | Passengers aged 2โ11 |
infantsInSeat | Infants in seat | integer | no | 0 | 0โ8 | Passengers under 2 with their own seat |
infantsOnLap | Infants on lap | integer | no | 0 | 0โ8, at most one per adult | Passengers under 2 without a seat |
cabinClass | Cabin | string | no | economy | economy, premium_economy, business, first | Cabin to search |
maxStops | Stops | string | no | any | any, nonstop, 1, 2 | Keeps flights with at most this many stops |
sortBy | Sort flights by | string | no | google | google, price, duration, departure, emissions | Order of rows in each search; rank follows it |
maxResults | Max flights per search | integer | no | 50 (prefill 50) | 1โ300 | Maximum rows for each route and date, after sorting and filters |
maxPrice | Max price | integer | no | empty | 1 or more, in currency | Keeps flights at or below this total price |
maxDurationMinutes | Max duration | integer | no | empty | 30โ6000 | Keeps flights with total travel time up to this |
departureTimeFrom, departureTimeTo | Departure hours | integer | no | empty | 0โ23 | Keeps flights that leave in this local-hour window (inclusive) |
lessEmissionsOnly | Less emissions only | boolean | no | false | true, false | Keeps flights with lower COโ than typical for the route |
includeAirlines | Only these airlines | array of strings | no | empty | 2-letter IATA codes, up to 30 | Keeps a flight only if every airline on it is listed |
excludeAirlines | Skip these airlines | array of strings | no | empty | 2-letter IATA codes, up to 30 | Drops a flight if any airline on it is listed |
currency | Currency | string | no | USD | 3-letter ISO code, e.g. EUR, THB | Currency of price |
country | Point of sale | string | no | US | 2-letter country code | Google's point of sale; prices can differ by country |
language | Language | string | no | en | language code, e.g. de, pt-BR | Language of airline and airport names; codes, times and prices do not change |
proxyConfiguration | Proxy | object | no | No proxy | Apify proxy settings | Leave as is; see below |
deliveryConnector | Send results to | string | no | empty | your Slack, Notion or other MCP connector | Posts a short run summary there (see Send results to Slack or Notion) |
deliveryTarget | Notion page or channel | string | no | empty | Notion page link or Slack channel ID | Where 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
| When | Input A | Input B | Effective behavior |
|---|---|---|---|
| Date range | departureDate | additionalDepartureDays | Searches departureDate and the next N days, in date order |
| Round trip with a date range | returnDate | additionalDepartureDays | The return date moves with each departure date, so the trip length stays the same |
| Several routes | additionalRoutes | dates and filters | Every route gets the same dates, passengers, cabin, sorting and filters. Searches run route by route, each in date order |
| Many flights | maxResults | Google's list | You get at most maxResults rows per search. Google usually lists 10โ60 flights for one search |
| Sorting and filters | sortBy, maxPrice, maxDurationMinutes, departure hours, lessEmissionsOnly, airlines | Google's list | Applied 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 window | departureTimeFrom: 22 | departureTimeTo: 5 | A window that passes midnight: 22:00โ05:59 |
| Row limit of the run | Max items set in the run options | all searches | The run writes no more rows than the limit, sends no new searches after it and ends with PARTIAL and limitReached: "MAX_ITEMS" |
| Proxy | proxyConfiguration | โ | 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).
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
| Field | Meaning | Type | Can be empty? | Example / enum |
|---|---|---|---|---|
status | Row type | string | no | complete, not_found, error |
statusReason | Why a row is not_found or error | string | yes | Plain-English reason |
errorCode | Error type for error rows | string | yes | SOURCE_BLOCKED, SOURCE_INCOMPLETE, SOURCE_UNAVAILABLE |
route | Origin and destination | string | no | BKK-SIN |
tripType | One-way or round trip | string | no | one_way, round_trip |
departureDate, returnDate | Search dates | string | returnDate yes | 2026-11-14 |
origin, destination | Airport codes of the search | string | only on the error row of an invalid extra route | BKK |
cabinClass, adults, children, infantsInSeat, infantsOnLap | Search settings | string / integer | no | economy, 1 |
rank | Position in the chosen order (sortBy) | integer | for flight rows no | 1 |
isBest | In Google's "Best" group | boolean | for flight rows no | true |
airline | Main airline | string | yes | Scoot |
airlines, airlineCodes | All airlines of the trip | array | yes | ["TR"] |
flightNumbers | Flight numbers, in order | array | yes | ["TR625"] |
departureAirport, arrivalAirport | Airports | string | yes | BKK |
departure, arrival | Local date and time | string | yes | 2026-11-14T11:50 |
durationMin | Total travel time in minutes | integer | yes | 155 |
stops | Number of stops | integer | yes | 0 |
layovers | Stop airport and wait time | array | yes | [{"airport": "KUL", "durationMin": 95, โฆ}] |
segments | Each flight leg: flight number, airline, operator, airports, times, aircraft, legroom | array | yes | see example |
price | Total price for all passengers | number | yes, when Google writes "Price unavailable" | 129.05 |
currency | Currency of price | string | yes | USD |
emissionsKg, typicalEmissionsKg | COโ of this flight and a typical one for the route, kg | integer | yes | 96 |
sourceUrl | The Google Flights page of this search | string | no | https://www.google.com/travel/flights?tfs=โฆ |
fetchedAt | When the page was read (UTC) | string | no | ISO time |
Rows and run status
| Situation | What you get | What to do |
|---|---|---|
| Flights found | One complete row per flight, up to maxResults per search | Use price, departure, flightNumbers |
| Google listed no flights for a date, or none passed your filters | One not_found row with statusReason | Check the airport codes, date and filters |
A wrong entry in additionalRoutes | One free error row with INVALID_INPUT, route = your text | Fix the entry, e.g. JFK-LAX |
| Unknown airport code | One 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 dates | Search 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" rows | Run again later (see Troubleshooting) |
| The max charge is reached | Rows of paid searches stay; run status PARTIAL, CHARGE_LIMIT | Raise the max charge of the run |
| The run's max items is reached | Rows up to the limit stay; PARTIAL, limitReached: "MAX_ITEMS" | Raise the limit or search fewer dates |
| Run time is almost over | Rows of answered searches stay; PARTIAL, DEADLINE | Split 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 with | Run state | Meaning | What to do |
|---|---|---|---|
โ
N flights saved from M searches | Succeeded | Every search was answered | Use the Dataset |
โ
N flights saved and Stopped at the max items of this run. | Succeeded | The limit of rows was reached when every search was already done | Nothing, or raise the limit |
โ ๏ธ N flights saved, F of M searches failed and See the error rows in the Dataset. | Succeeded | Some dates got a free error row | See 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. | Succeeded | The next search did not fit into the maximum charge | See CHARGE_LIMIT or MAX_ITEMS |
โ ๏ธ โฆ and Stopped at the max items of this run. | Succeeded | The limit of rows was reached before every search was done | See CHARGE_LIMIT or MAX_ITEMS |
โ ๏ธ โฆ and Stopped at the time limit of the Actor; split dates and routes across runs. | Succeeded | About 270 seconds passed | See DEADLINE |
โ ๏ธ โฆ and Google kept refusing requests, so the other dates were not searched. | Succeeded | Google refused every route for 3 dates in a row | See REQUEST_CAP |
โน๏ธ 0 flights: Google Flights shows none for this route, these dates and filters | Succeeded | Every search got one not_found row | See not_found |
Invalid input: followed by the field and an example | Succeeded | Your input was wrong, nothing was searched or charged | See 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 wrong | Failed | Nothing could be searched, or Google blocked the run after some dates | See The run failed |
โ Run failed: the proxy settings are invalid or not available for this account | Failed | The chosen proxy cannot be used | See The run failed |
โ Run failed followed by Report it: and Run link: | Failed | An unexpected error; the log has the masked message | See The run failed |
โ ๏ธ Run aborted | Aborted | You stopped the run (or the platform sent a stop signal): same line both ways | See Run aborted |
| No final line, a platform message such as out of memory | Failed or stopped by the platform | The platform ended the run from outside | See 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.
Pricing
Pricing unit
You pay per search. One search is one route and one departure date (with its return date for a round trip).
| Event | When | Free plan | Bronze | Silver | Gold and higher |
|---|---|---|---|---|---|
flight-search | Google listed flights for the search. Includes every row up to maxResults | $0.01665 | $0.015 | $0.0133 | $0.0116 |
empty-search | Google 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)
| Scenario | Input | Events | Charge |
|---|---|---|---|
| One date (prefill) | BKK โ SIN, +30 | 1 flight-search (17 flights in our test) | $0.01665 |
| Cheapest day in two weeks | additionalDepartureDays: 14 | 15 flight-search | $0.24975 |
| Cheapest day in a month | additionalDepartureDays: 30 | 31 flight-search | $0.51615 |
| Three routes, one date | additionalRoutes: ["JFK-LAX", "EWR-LAX"] | 3 flight-search | $0.04995 |
| Route without flights | 1 date | 1 empty-search | $0.001 |
| Wrong input | same airport twice | none | $0 |
Limits
- Up to 31 departure dates (
additionalDepartureDays0โ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
deliveryConnectoris 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 endedPARTIALwithDEADLINE. 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
errorrow), and a search is one route and one date: there is no multi-city, calendar or price-insights data.
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=flightsfor 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
deliveryConnectorto 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:
airlineandflightNumbers(who flies),departureandarrival(local time),stops,pricewithcurrency(total for all passengers),status(complete,not_foundorerror). - 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.
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 keepproxyConfigurationon "No proxy".no search could be completed: every date failed. Open theerrorrows in the Dataset (see the sections aboutSOURCE_INCOMPLETEandSOURCE_BLOCKEDabove) 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. SetproxyConfigurationback 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.
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.
Related Actors
- Google Hotels Scraper - Prices & Offers, No Login โ hotel prices for the same trip, from Google Hotels.
- Airbnb Scraper: Listings, Prices, Calendar - No Login โ stays and nightly prices at your destination.
- Expedia & Hotels.com Hotels Scraper - No Login โ hotel offers to compare with Google Hotels.
- Booking.com Scraper: Hotels, Prices, Reviews, No Login โ Booking.com hotel prices at your destination.
- Tripadvisor Scraper: Places, Reviews, Hotel Prices โ places and reviews for trip planning.
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.
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


