Google Flights Scraper — Global Flight Prices API avatar

Google Flights Scraper — Global Flight Prices API

Pricing

from $0.95 / 1,000 flight itineraries

Go to Apify Store
Google Flights Scraper — Global Flight Prices API

Google Flights Scraper — Global Flight Prices API

Scrape Google Flights worldwide with a fast HTTP-based API. Extract airfare prices, schedules, one-way and round-trip itineraries across multiple markets and currencies.

Pricing

from $0.95 / 1,000 flight itineraries

Rating

0.0

(0)

Developer

aiconsulting

aiconsulting

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

0

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Search Google Flights worldwide. Extract structured flight itineraries, live airfare quotes, schedules, airline flight numbers, connections, and passenger-aware prices through a fast, HTTP-based Apify Actor.

Apify Actor HTTP-Based Global Markets JSON Output

Google Flights Scraper is a production-oriented flight data extraction API built for developers, travel companies, airfare research platforms, automation engineers, and AI applications.

Search flights across international and domestic markets using configurable countries, currencies, airports, travel dates, passengers, cabin classes, and connection preferences.

Receive clean, machine-readable JSON instead of browser screenshots, unstructured HTML, or manually collected flight information.

Actor: aiconsulting/google-flights-scraper-v2

Architecture: HTTP requests + structured Google Flights response parsing. No browser automation required.

Important: This is an independent scraper, not an official Google Flights API. Flight prices are search-time quotations, not guaranteed booking totals.


Why choose this Google Flights Scraper?

FeatureBenefits
Global flight searchSearch domestic and international flight routes across supported Google Flights market configurations
Multiple currenciesConfigure currency to request fares in USD, EUR, GBP, INR, JPY, AUD, and other currency codes accepted by Google Flights
HTTP-only architectureNo Puppeteer, Playwright, Selenium, or headless browser required
One-way flightsRetrieve outbound schedules, flight numbers, stops, and fare quotations
Round-trip flightsSearch selected outbound flights and pair them with available return itineraries
Passenger-aware searchesSearch for adults, children, and infants occupying seats
Four cabin classesEconomy, Premium Economy, Business, and First
Nonstop and connecting flightsFilter journeys using flightType and maxStops
Structured fare extractionNumeric Google-quoted itinerary prices returned in JSON
Validated outputsInvalid route/date combinations and malformed fare records are rejected
Adaptive retry handlingRecognized transient non-flight Google responses trigger bounded retries and cooldowns
AI and automation readyIntegrate with Apify API, n8n, LangChain, LangGraph, MCP clients, and custom applications

Designed for real developer workflows

Build:

  • Flight search applications and travel comparison websites
  • International airfare research dashboards
  • AI-powered travel planning assistants
  • Automated flight quotation tools
  • Airline fare comparison pipelines
  • Flight price monitoring systems
  • Travel agency workflow automation
  • Corporate travel research tools
  • Data analytics and business intelligence pipelines
  • Travel-focused RAG and AI agent applications

The Actor returns raw search results for downstream filtering, ranking, storage, and comparison.

It does not book tickets, guarantee the cheapest available fare, or provide an airline reservation system.


1. Global Flight Search Coverage

The Actor supports configurable Google Flights market and currency parameters.

Instead of restricting search behavior to the Indian market, the global implementation accepts:

{
"country": "US",
"currency": "USD",
"locale": "en"
}

The country determines the requested Google Flights market.

The currency determines the requested fare denomination.

The locale controls the requested language setting.

These parameters are transmitted to Google Flights as market, currency, and language preferences.

1.1 Successfully tested international markets

The following configurations produced successful structured flight results during our global acceptance tests on 13 November 2026.

MarketCountryCurrencyRouteTripResult
IndiaININRDEL → BOMDomesticPASS
United StatesUSUSDJFK → LAXDomesticPASS
United StatesUSINRJFK → LAXCross-currencyPASS
United KingdomGBGBPLHR → JFKInternationalPASS
FranceFREURCDG → FCOInternationalPASS
JapanJPJPYHND → KIXDomesticPASS
AustraliaAUAUDSYD → MELDomesticPASS

Cross-currency validation

We searched the same US domestic route with two different currencies:

JFK → LAX, 15 December 2026, one adult, Economy.

FlightUSD resultINR result
AA171$169₹15,861
AA33$169₹15,861
AA1$169₹15,861
AA3$235₹22,077
DL742$274₹25,750

All ten published itineraries matched by flight identity, date, scheduled times, and stop count.

The resulting numerical prices differed consistently with the requested currency.

What this verifies: The numeric price extraction is currency-sensitive; the Actor does not merely change a currency label while retaining the same numerical fare.

What it does not verify: The exact Google UI price or checkout amount for every possible market and currency combination.

The currencies above are representative successful tests, not an exhaustive list of all accepted currency codes.


2. Quick Start

Step 1 — Open the Actor

Visit:

https://apify.com/aiconsulting/google-flights-scraper-v2

Enter:

  • Origin airport
  • Destination airport
  • Trip type
  • Departure and optional return dates
  • Passenger composition
  • Cabin class
  • Flight type
  • Maximum connections
  • Market and currency
  • Maximum results

Step 3 — Run the Actor

Click Start.

The Actor sends an HTTP-based search request, extracts the flight response, validates returned itineraries, and publishes structured results.

Step 4 — Retrieve results

Flight records are published to the Actor's default dataset.

The search outcome is available separately through SEARCH_RESULT_SUMMARY in the default key-value store.

For a successful flight search:

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "JFK-LAX",
"outboundDeparture": "2026-12-15T06:05:00",
"outboundArrival": "2026-12-15T09:30:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AA171",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 169,
"currency": "USD",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

This is an actual sample from the US-market acceptance test performed on 13 November 2026.


3. Input Parameters — Complete Developer Reference

3.1 Route and trip configuration

ParameterTypeRequiredDescription
originstringYesOrigin IATA airport code, e.g. JFK, DEL, LHR
destinationstringYesDestination IATA airport code
tripTypeenumYesONE_WAY or ROUND_TRIP
departureDatestringYesYYYY-MM-DD or supported rolling-date value AUTO
returnDatestringRound tripReturn date in YYYY-MM-DD format
localestringOptionalGoogle Flights language preference
countrystringOptionalTwo-letter Google Flights market country code
currencystringOptionalThree-letter requested fare currency

Airport codes

Use three-letter IATA airport codes.

Examples:

DEL = Delhi
BOM = Mumbai
JFK = New York JFK
LAX = Los Angeles
LHR = London Heathrow
CDG = Paris Charles de Gaulle
FCO = Rome Fiumicino
HND = Tokyo Haneda
KIX = Osaka Kansai
SYD = Sydney
MEL = Melbourne

Origin and destination must differ.

The Actor performs request validation before making unnecessary Google requests.

3.2 Passenger configuration

ParameterTypeDescription
adultsintegerNumber of adult passengers
childrenintegerNumber of child passengers
infantsInSeatsintegerInfants occupying their own seats
infantsOnLapsintegerInfant-on-lap search input in the global beta; end-to-end fare validation is still pending

The production acceptance tests include:

  • One adult
  • Two adults
  • Two adults plus one child
  • One adult plus one child plus one infant occupying a seat

Passenger quantities are encoded into the Google Flights search request.

The resulting quoted price is extracted for the requested search configuration.

Important: The Actor does not independently calculate child discounts or infant tariffs. These rules vary by airline and itinerary.

The legacy production implementation did not support infants on laps. Although the global-beta input path includes infantsOnLaps, this README does not claim that its pricing behavior has been independently validated.

3.3 Cabin classes

ValueDescription
ECONOMYEconomy cabin
PREMIUM_ECONOMYPremium Economy search
BUSINESSBusiness Class search
FIRSTFirst Class search

The cabin class is encoded in the Google Flights request.

The output cabinClass field reports the requested search cabin.

It does not independently certify the cabin assigned to every segment in a connecting itinerary.

3.4 Flight filters

ValueBehavior
ALLInclude eligible nonstop and connecting itineraries
NONSTOPOnly itineraries without connections
CONNECTINGOnly itineraries with at least one connection

The maxStops parameter limits accepted connections.

Example:

{
"flightType": "NONSTOP",
"maxStops": 0
}

For connecting itineraries:

{
"flightType": "CONNECTING",
"maxStops": 2
}

maxStops is the maximum number of connections per direction, not the number of flight segments.

One-stop travel normally contains two flight segments.

3.5 Result and retry controls

ParameterDescription
maxResultsMaximum number of published itinerary records
maxOutboundSelectionsMaximum outbound selections examined for round-trip pairing
maxReturnOptionsMaximum return choices per selected outbound flight
maxRetriesAdditional HTTP attempts allowed after an initial failed stage

The previously documented production schema accepted maxResults from 1–250, maxOutboundSelections from 1–5, maxReturnOptions from 1–30, and maxRetries from 0–3.

Verify the selected deployed build's current input schema for authoritative bounds and defaults.

Increasing round-trip selection limits expands search coverage but can increase the number of HTTP requests.

Important: maxResults is a publication limit. It does not guarantee that the Actor searched every possible itinerary or returned the cheapest N flights in the entire market.


4. Real Example — US Domestic Flights in USD

Route: New York JFK → Los Angeles LAX
Market: United States
Currency: USD
Date: 15 December 2026

Request

{
"origin": "JFK",
"destination": "LAX",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "US",
"currency": "USD"
}

Actual response

[
{
"rank": 1,
"tripType": "ONE_WAY",
"route": "JFK-LAX",
"outboundDeparture": "2026-12-15T06:05:00",
"outboundArrival": "2026-12-15T09:30:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AA171",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 169,
"currency": "USD",
"passengerCount": 1,
"cabinClass": "ECONOMY"
},
{
"rank": 2,
"tripType": "ONE_WAY",
"route": "JFK-LAX",
"outboundDeparture": "2026-12-15T07:59:00",
"outboundArrival": "2026-12-15T11:27:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AA33",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 169,
"currency": "USD",
"passengerCount": 1,
"cabinClass": "ECONOMY"
},
{
"rank": 3,
"tripType": "ONE_WAY",
"route": "JFK-LAX",
"outboundDeparture": "2026-12-15T09:00:00",
"outboundArrival": "2026-12-15T12:19:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AA1",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 169,
"currency": "USD",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}
]

The full tested dataset contained ten published itineraries, with quotations between $169 and $274.

Reliability test

Five identical US/USD searches were completed using the adaptive-cooldown beta.

RunHTTP attemptsOutcome
11SUCCESS
21SUCCESS
31SUCCESS
41SUCCESS
52SUCCESS after cooldown

The fifth run encountered a recognized non-flight Google response on its first attempt, then recovered following a cooldown of 5,711 milliseconds.

Observed result: 5 successful runs out of 5 in this limited test batch.

This is acceptance-test evidence, not a statistical uptime guarantee.


5. Real Example — Same US Flight in Indian Rupees

The Actor can request a currency different from the selected country market.

Request

{
"origin": "JFK",
"destination": "LAX",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "US",
"currency": "INR"
}

Actual response

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "JFK-LAX",
"outboundDeparture": "2026-12-15T06:05:00",
"outboundArrival": "2026-12-15T09:30:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AA171",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 15861,
"currency": "INR",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Currency comparison

Market: US
Route: JFK → LAX
Flight: AA171
Date: 2026-12-15
USD request: 169
INR request: 15861
Implied ratio: approximately 93.85 INR per USD

The Actor did not calculate this conversion itself.

Both numbers were extracted from separate Google Flights search responses.

The implied ratio is a test observation, not a foreign-exchange rate supplied by the Actor.


6. Real Example — UK to USA in GBP

Route: London Heathrow → New York JFK
Market: United Kingdom
Currency: GBP

Request

{
"origin": "LHR",
"destination": "JFK",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "GB",
"currency": "GBP"
}

Actual response — British Airways nonstop

{
"rank": 6,
"tripType": "ONE_WAY",
"route": "LHR-JFK",
"outboundDeparture": "2026-12-15T08:20:00",
"outboundArrival": "2026-12-15T11:20:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "BA117",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 829,
"currency": "GBP",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Actual response — connecting flight

{
"rank": 2,
"tripType": "ONE_WAY",
"route": "LHR-JFK",
"outboundDeparture": "2026-12-15T08:15:00",
"outboundArrival": "2026-12-15T20:05:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "TP1351, TP209",
"returnFlightNumbers": null,
"outboundStops": 1,
"inboundStops": null,
"googleQuotedPrice": 328,
"currency": "GBP",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Test outcome

  • 22 flight candidates detected
  • 22 parsed successfully
  • Zero parser rejections
  • 10 itinerary records published
  • One successful HTTP request
  • Approximately 675 milliseconds application execution

7. Real Example — Europe in EUR

Route: Paris Charles de Gaulle → Rome Fiumicino
Market: France
Currency: EUR

Request

{
"origin": "CDG",
"destination": "FCO",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "FR",
"currency": "EUR"
}

Actual response — nonstop

{
"rank": 3,
"tripType": "ONE_WAY",
"route": "CDG-FCO",
"outboundDeparture": "2026-12-15T11:40:00",
"outboundArrival": "2026-12-15T13:45:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "AZ319",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 130,
"currency": "EUR",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Actual response — connecting itinerary

{
"rank": 6,
"tripType": "ONE_WAY",
"route": "CDG-FCO",
"outboundDeparture": "2026-12-15T18:20:00",
"outboundArrival": "2026-12-16T09:00:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "VY8063, VY6000",
"returnFlightNumbers": null,
"outboundStops": 1,
"inboundStops": null,
"googleQuotedPrice": 80,
"currency": "EUR",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

The second itinerary arrives the following calendar day.

This demonstrates why consumers should consider travel duration and arrival date in addition to fare.

Test outcome

  • 19 candidates parsed successfully
  • 10 results published
  • No warnings
  • No malformed records
  • Approximately 709 milliseconds application execution

Note: Rank does not necessarily represent ascending-price order. A lower-priced itinerary can appear later in Google's ranked results.


8. Real Example — Japan Domestic Flights in JPY

Route: Tokyo Haneda → Osaka Kansai
Market: Japan
Currency: JPY

Request

{
"origin": "HND",
"destination": "KIX",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "JP",
"currency": "JPY"
}

Actual response

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "HND-KIX",
"outboundDeparture": "2026-12-15T12:00:00",
"outboundArrival": "2026-12-15T13:30:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "7G23",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 11920,
"currency": "JPY",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Additional tested results:

FlightQuoted fare
7G23¥11,920
7G25¥11,920
7G27¥11,920
NH97¥12,360
NH95¥12,800
JL221¥14,120

Test outcome

  • 12 candidates detected
  • 12 parsed
  • 10 published
  • No parser rejections
  • One successful HTTP request
  • Approximately 810 milliseconds application execution

This test confirms the parser can handle yen-denominated numerical quotations and Japanese domestic schedules.


9. Real Example — Australia Domestic Flights in AUD

Route: Sydney → Melbourne
Market: Australia
Currency: AUD

Request

{
"origin": "SYD",
"destination": "MEL",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "AU",
"currency": "AUD"
}

Actual response

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "SYD-MEL",
"outboundDeparture": "2026-12-15T15:15:00",
"outboundArrival": "2026-12-15T16:50:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "JQ521",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 147,
"currency": "AUD",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Other observed results included:

Airline flightFare
JQ521A$147
VA830A$160
QF1509A$179
VA800A$151
JQ517A$151

Test outcome

  • 51 candidates detected
  • 51 successfully parsed
  • 10 published
  • Zero rejected candidates
  • One successful HTTP request
  • Approximately 792 milliseconds application execution

10. One-Way Flight Search — India

The original production acceptance tests include Indian domestic and international routes.

Request

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

A previous baseline test on 15 November 2026 travel dates, conducted on 3 November 2026, published 20 one-way itineraries.

One observed flight quotation was:

Flight: 6E6218
Price: INR 11866
Passengers: 1 adult
Cabin: Economy

These historical test figures demonstrate the India-market baseline. They are not current market prices.


11. Round-Trip Flights — Two Adults and One Child

This was one of the most important production acceptance tests because it checked:

  1. Outbound flight selection
  2. Return flight retrieval
  3. Passenger configuration
  4. Round-trip pairing
  5. Total itinerary quotation

Request

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ROUND_TRIP",
"departureDate": "2026-12-15",
"returnDate": "2026-12-20",
"adults": 2,
"children": 1,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxOutboundSelections": 3,
"maxReturnOptions": 10,
"maxResults": 30,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Actual response

{
"rank": 1,
"tripType": "ROUND_TRIP",
"route": "DEL-BOM",
"outboundDeparture": "2026-12-15T03:30:00",
"outboundArrival": "2026-12-15T05:55:00",
"inboundDeparture": "2026-12-20T15:15:00",
"inboundArrival": "2026-12-20T17:25:00",
"outboundFlightNumbers": "6E353",
"returnFlightNumbers": "6E349",
"outboundStops": 0,
"inboundStops": 0,
"googleQuotedPrice": 39489,
"currency": "INR",
"passengerCount": 3,
"cabinClass": "ECONOMY"
}

Independently checked price

The quoted total of ₹39,489 was matched visually against Google Flights in Chrome on 3 November 2026 for the selected outbound and return itinerary.

This is a historical comparison of Google search quotations, not a guarantee of future fare availability or checkout totals.

Observed run metrics

Trip: DEL → BOM → DEL
Passengers: 2 adults + 1 child
Outbounds examined: 3
Return options per outbound: 10
Google requests: 4
Published results: 30
Status: SUCCESS

Round-trip searches are not implemented by simply adding the prices of two unrelated one-way flights.

The Actor uses the Google Flights outbound-selection and return-search workflow to extract available itinerary pairings and quoted totals.

Coverage limitation: maxOutboundSelections and maxReturnOptions bound the combinations examined. The Actor does not promise exhaustive round-trip inventory.


12. Multiple Adults — Passenger-Aware Price Testing

The production baseline included testing whether changing passenger quantity affected the search quotation.

One-adult request

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ONE_WAY",
"departureDate": "2026-11-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "BUSINESS",
"flightType": "ALL",
"maxStops": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Two-adult request

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ONE_WAY",
"departureDate": "2026-11-15",
"adults": 2,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "BUSINESS",
"flightType": "ALL",
"maxStops": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Observed comparison

Route: DEL → BOM
Flight: AI2425
Cabin: Business
1 adult: INR 37424
2 adults: INR 74848

For this tested itinerary:

74848 = 2 × 37424

This provides direct evidence that passenger count was incorporated into the returned quotation.

It does not imply that every child or infant fare scales linearly.


13. Mixed Passenger Groups — Adults, Children and Infants

The Actor supports more complex passenger configurations than a single adult.

Example — Two adults and one child

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ONE_WAY",
"departureDate": "2026-11-15",
"adults": 2,
"children": 1,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Observed historical result

Route: DEL → BOM
Flight: 6E6218
Passenger group: 2 adults + 1 child
Passenger count: 3
Google quote: INR 35598
Published itineraries: 20

The result demonstrates correct mixed-passenger request encoding and extraction.

The individual child fare component was not separately established.

Example — Adult, child and infant occupying a seat

{
"origin": "CCU",
"destination": "BLR",
"tripType": "ONE_WAY",
"departureDate": "2026-12-01",
"adults": 1,
"children": 1,
"infantsInSeats": 1,
"cabinClass": "BUSINESS",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Observed behavior

Passenger composition:
Adults: 1
Children: 1
Infants in seats: 1
Requested cabin: Business
Flight filter: All
Published results: 9 connecting itineraries

This test covered a three-person passenger group containing different passenger types.

Important distinction: infantsInSeats refers to an infant occupying a seat. It must not be interpreted as an infant traveling on an adult's lap.


14. Premium Economy — Two Adults

Request

{
"origin": "DEL",
"destination": "LHR",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 2,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "PREMIUM_ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Actual response

{
"rank": 2,
"tripType": "ONE_WAY",
"route": "DEL-LHR",
"outboundDeparture": "2026-12-15T04:55:00",
"outboundArrival": "2026-12-15T09:30:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "VS303",
"returnFlightNumbers": null,
"outboundStops": 0,
"inboundStops": null,
"googleQuotedPrice": 159100,
"currency": "INR",
"passengerCount": 2,
"cabinClass": "PREMIUM_ECONOMY"
}

Test result

Route: DEL → LHR
Cabin: Premium Economy
Passengers: 2 adults
Published results: 14
Google requests: 1

The dataset structure passed.

The actual booked cabin and final checkout total were not independently confirmed.


15. First Class — Two Adults

Request

{
"origin": "DEL",
"destination": "LHR",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 2,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "FIRST",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Actual response

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "DEL-LHR",
"outboundDeparture": "2026-12-15T16:20:00",
"outboundArrival": "2026-12-16T12:05:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "EY215, EY63",
"returnFlightNumbers": null,
"outboundStops": 1,
"inboundStops": null,
"googleQuotedPrice": 491434,
"currency": "INR",
"passengerCount": 2,
"cabinClass": "FIRST"
}

Test result

Published valid itineraries: 11
Malformed-price candidates rejected: 1

The parser did not invent a numeric value for the rejected fare.

This is an important reliability feature for analytics systems that require meaningful numeric data.


16. Connecting Flights Only

Search only itineraries containing connections.

Request

{
"origin": "DEL",
"destination": "LHR",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "CONNECTING",
"maxStops": 2,
"maxResults": 20,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Actual response

{
"rank": 1,
"tripType": "ONE_WAY",
"route": "DEL-LHR",
"outboundDeparture": "2026-12-15T04:35:00",
"outboundArrival": "2026-12-15T12:05:00",
"inboundDeparture": null,
"inboundArrival": null,
"outboundFlightNumbers": "EY219, EY63",
"returnFlightNumbers": null,
"outboundStops": 1,
"inboundStops": null,
"googleQuotedPrice": 27592,
"currency": "INR",
"passengerCount": 1,
"cabinClass": "ECONOMY"
}

Verified filtering

Published itineraries: 7
One-stop itineraries: 7
Nonstop itineraries: 0
Unexpected stop configurations: 0

This confirms that the connecting-flight filter was enforced in the tested scenario.


17. Nonstop Flights Only

To request direct flights without connections:

{
"origin": "JFK",
"destination": "LAX",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "NONSTOP",
"maxStops": 0,
"maxResults": 10,
"locale": "en",
"country": "US",
"currency": "USD"
}

This is a valid example of the nonstop input configuration.

The previously observed US-market ALL search included these nonstop itineraries:

FlightStopsQuoted price
AA1710$169
AA330$169
AA10$169
AA30$235
DL7420$274

The table comes from the successful ALL request, not from a separately executed US-market NONSTOP run.


18. Rolling Departure Dates — AUTO

The Actor supports a rolling departure-date option for workflows that should not require manually updating travel dates.

Request

{
"origin": "DEL",
"destination": "BOM",
"tripType": "ONE_WAY",
"departureDate": "AUTO",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Date behavior

AUTO resolves the departure date at runtime, using the Actor's configured rolling-date policy.

In the tested global beta, the implementation uses approximately 30 calendar days ahead based on the Asia/Kolkata date.

The effective date is recorded in the search diagnostic:

{
"departureDateResolution": {
"mode": "AUTO",
"effectiveDepartureDate": "YYYY-MM-DD"
}
}

The date in this illustration is a format placeholder, not an actual recorded AUTO diagnostic.

When to use AUTO

Suitable for:

  • Scheduled flight search workflows
  • Automated market monitoring
  • Repeating travel research
  • Demonstration runs
  • Actor input examples that should not become stale

Important global-market limitation

The current rolling-date calculation uses the Actor's configured India-based date policy rather than determining the local calendar date of every departure airport.

For precise international travel-date handling, explicitly provide departureDate.


19. Empty Results — No Eligible Nonstop Round Trip

An important feature of reliable data extraction is distinguishing:

  1. No matching flights
  2. Invalid requests
  3. Google response failures
  4. Parsing failures

The Actor provides an explicit no-results outcome for a verified absence-of-nonstop-outbound scenario.

Request

{
"origin": "CCU",
"destination": "BLR",
"tripType": "ROUND_TRIP",
"departureDate": "2026-12-01",
"returnDate": "2026-12-05",
"adults": 1,
"children": 1,
"infantsInSeats": 1,
"cabinClass": "BUSINESS",
"flightType": "NONSTOP",
"maxStops": 0,
"maxOutboundSelections": 3,
"maxReturnOptions": 10,
"maxResults": 30,
"maxRetries": 2,
"locale": "en",
"country": "IN",
"currency": "INR"
}

Actual SEARCH_RESULT_SUMMARY

{
"status": "NO_RESULTS",
"reason": "NO_NONSTOP_OUTBOUND_FLIGHTS_FOUND",
"message": "No nonstop outbound flights found for CCU to BLR on 2026-12-01 with the requested passengers and BUSINESS cabin, so no matching nonstop round trip can be formed. Try allowing connecting flights or changing your date.",
"route": "CCU-BLR",
"departureDate": "2026-12-01",
"tripType": "ROUND_TRIP",
"cabinClass": "BUSINESS",
"passengerCount": 3,
"publishedResults": 0
}

Observed behavior

Google requests: 2
Additional availability probe: performed
Published records: 0
Outcome: NO_RESULTS

A zero-record dataset is not necessarily a failed Actor run.

Developer rule: Read SEARCH_RESULT_SUMMARY instead of interpreting an empty dataset as conclusive proof of zero flight availability.

This no-results behavior is verified for the specific nonstop-outbound case described above, not every possible zero-result scenario.


20. Input Validation and Error Handling

Example — Same origin and destination

Invalid request

{
"origin": "DEL",
"destination": "DEL",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 20,
"maxRetries": 2,
"locale": "en",
"country": "IN"
}

Actual diagnostic

{
"requests": [],
"status": "FAILED",
"error": "origin and destination must be different."
}

The request was rejected before any Google HTTP call.

Developer interpretation

Use three distinct application-level branches:

SUCCESS
Flight records available
NO_RESULTS
Supported search condition confirmed no matching results
FAILED
Input, transport, parsing, or other execution failure

A failed run must not be silently converted into an empty successful flight search.


21. Flight Output Schema — Complete Data Dictionary

Each published itinerary is one JSON object in the default dataset.

Schema

FieldTypeDescription
rankintegerPublication order of the itinerary
tripTypestringONE_WAY or ROUND_TRIP
routestringOrigin-destination IATA code pair
outboundDeparturestringOutbound departure local date/time
outboundArrivalstringOutbound arrival local date/time
inboundDeparturestring/nullReturn departure date/time
inboundArrivalstring/nullReturn arrival date/time
outboundFlightNumbersstringOutbound flight number(s)
returnFlightNumbersstring/nullReturn flight number(s)
outboundStopsintegerOutbound connections
inboundStopsinteger/nullReturn connections
googleQuotedPricenumberNumeric Google Flights quotation for the itinerary
currencystringRequested currency code used to label the quotation
passengerCountintegerTotal passengers represented by the request
cabinClassstringRequested search cabin

Timestamps and time zones

Flight departure and arrival values are returned as local itinerary date/time strings.

Example:

2026-12-15T06:05:00

These strings do not contain a UTC offset.

Do not interpret them as UTC timestamps.

For international applications, associate each flight's departure and arrival airport with its appropriate time zone before computing elapsed times or converting to UTC.

The current flat output contains the origin/destination pair and flight numbers, not a complete per-segment airport/time-zone object.

Flight numbers

Connecting journeys use comma-separated flight numbers.

Example:

{
"outboundFlightNumbers": "EY219, EY63",
"outboundStops": 1
}

The output identifies the sequence of flights but does not provide a complete segment-by-segment airport and layover breakdown.

Price semantics

googleQuotedPrice is:

  • Numeric
  • Extracted from the structured Google Flights search response
  • Associated with the selected itinerary
  • Associated with the requested passenger configuration
  • Labeled with the requested currency

It is not necessarily:

  • The final booking checkout amount
  • Inclusive of every optional ancillary service
  • A guaranteed airline-direct fare
  • A guaranteed lowest available market price
  • Independently verified against the Google UI for every result

Currency provenance

The current global parser takes the currency label from the requested search configuration.

Cross-currency tests support that the numerical quote responds to currency changes.

Nevertheless, the numeric fare record is not independently accompanied by a verified currency identifier in the currently extracted output.

Developers should retain that distinction when using results for financial decisions.


22. Search Outcome and Diagnostics

The Actor separates user-facing flight records from operational search information.

Dataset

The default dataset contains published flight itineraries.

SEARCH_RESULT_SUMMARY

The default key-value store contains the customer-relevant search outcome.

Example fields include:

{
"status": "SUCCESS",
"publishedResults": 10
}

This example is a minimal illustration of fields used by the search summary, not a full recorded summary object.

SEARCH_DIAGNOSTIC

The Actor also maintains operational diagnostics, including:

  • Input configuration
  • HTTP request stages
  • Request attempt counts
  • HTTP response status
  • Response sizes
  • Payload-shape fingerprints
  • Parsed candidate counts
  • Rejected candidate counts
  • Retry and cooldown information
  • Final search outcome

A representative successful request-attempt diagnostic:

{
"stage": "ONE_WAY_BOARD",
"attempt": 1,
"outcome": "SUCCESS",
"elapsedMs": 549,
"httpStatus": 200,
"finalUrlHost": "www.google.com",
"responseBytes": 3626184,
"payloadShape": "array(32)"
}

These diagnostics support troubleshooting and development. They are not part of the public itinerary dataset contract.


23. HTTP Transport, Retry Logic and Reliability

The Actor uses the public Google Flights webpage transport and extracts structured flight data from the returned page.

The architecture does not require a browser rendering engine.

High-level process

User input
|
v
Validate route, dates and passengers
|
v
Build Google Flights TFS request
|
v
Send HTTP request
|
v
Extract structured flight payload
|
+-- Recognized non-flight response
| |
| v
| Retry with bounded cooldown
|
v
Parse itinerary candidates
|
v
Validate routes, dates, stops and fares
|
v
Publish JSON dataset
|
v
Store search summary and diagnostics

Adaptive cooldown

During global-market testing, Google occasionally returned an HTTP 200 response containing a recognized non-flight payload instead of the expected flight board.

The relevant observed structure was an array of length three, carrying a numeric status value of 13.

The Actor identifies this known response pattern and rejects it before attempting itinerary parsing.

Depending on retry settings, it can retry after a longer cooldown rather than immediately repeating the request.

Actual recovery example

On 13 November 2026, during a JFK → LAX search:

Attempt 1:
HTTP 200
Response size: 1,948,697 bytes
Payload: array(3)
Observed numeric status: 13
Outcome: NON_FLIGHT_DS1
Adaptive cooldown:
5,711 milliseconds
Attempt 2:
HTTP 200
Response size: 3,984,165 bytes
Payload: array(32)
Outcome: SUCCESS
Parsed candidates:
34/34
Published results:
10

The retry recovered successfully in that observed run.

Limitation: The precise upstream meaning of status 13 is not independently established. The cooldown strategy is defensive and does not guarantee that future requests will recover.

The successful five-run batch is not sufficient to establish a 100% reliability rate.


24. Complete Acceptance-Test Matrix

The table below consolidates representative functional and validation tests performed during the original production development and subsequent global beta testing.

24.1 Production acceptance tests — November 2026

IDTestConfigurationObserved result
P01Basic one-wayDEL → BOM, 1 adult, Economy20 records
P02Passenger pricingDEL → BOM, 1 vs 2 adults, Business₹37,424 vs ₹74,848 for tested flight
P03Mixed passengersDEL → BOM, 2 adults + 1 child20 records
P04Infant in seatCCU → BLR, adult + child + infant in seat, Business9 connecting records
P05Premium EconomyDEL → LHR, 2 adults14 records
P06First ClassDEL → LHR, 2 adults11 valid records
P07Connecting onlyDEL → LHR, Economy7/7 one-stop
P08Round tripDEL → BOM → DEL, 2 adults + child30 paired records
P09Price cross-check6E353 + 6E349₹39,489 matched Google Flights screenshot
P10No matching nonstopCCU → BLR → CCU, BusinessExplicit NO_RESULTS
P11Invalid airport pairDEL → DELExplicit validation failure; zero requests
P12Malformed priceFirst Class DEL → LHRInvalid candidate rejected

The historical production README additionally documents acceptance testing of AUTO date resolution and explicit Business Class round-trip configurations.

Those configurations were exercised during development, but this table does not assign undocumented candidate counts or fare values to them.

24.2 Global market tests — 13 November 2026

IDMarketRouteCurrencyCandidates parsedPublishedOutcome
G01USJFK → LAXUSD34/3410PASS
G02USJFK → LAXINR34/3410PASS
G03UKLHR → JFKGBP22/2210PASS
G04FranceCDG → FCOEUR19/1910PASS
G05JapanHND → KIXJPY12/1210PASS
G06AustraliaSYD → MELAUD51/5110PASS

24.3 Cross-currency tests

IDSearchComparisonOutcome
C01JFK → LAXUSD vs INRMatching flight identities
C02AA171$169 vs ₹15,861Currency-sensitive numeric pricing
C03AA3$235 vs ₹22,077Consistent numerical relationship
C04DL742$274 vs ₹25,750Consistent numerical relationship

24.4 Reliability tests

TestResult
Five identical adaptive-cooldown runs5/5 successful
Normal valid flight payloadAccepted
Known non-flight payloadRejected
Status-13 retry recoveryObserved
Malformed numeric fareRejected
Invalid origin/destinationRejected without HTTP request

What the test matrix means

The Actor has demonstrated successful retrieval across multiple geographic regions, currencies, trip configurations, passenger groups, cabin classes, and connection filters.

It does not mean that every combination of every input has been tested, nor that upstream Google Flights availability is guaranteed.


25. Apify API — Developer Integration

The Actor is accessible through Apify's standard REST API.

Use:

aiconsulting/google-flights-scraper-v2

Apify REST APIs use the Actor's identifier with ~ between username and Actor name.

25.1 Start a search asynchronously

curl --request POST \
"https://api.apify.com/v2/acts/aiconsulting~google-flights-scraper-v2/runs" \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"origin": "JFK",
"destination": "LAX",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "US",
"currency": "USD"
}'

The API returns run metadata, including identifiers for the run and its storage resources.

25.2 Check run status

curl \
--header "Authorization: Bearer $APIFY_TOKEN" \
"https://api.apify.com/v2/actor-runs/RUN_ID"

Replace RUN_ID with the ID returned from the start request.

Poll until the run reaches a terminal state, or configure an Apify webhook.

25.3 Retrieve dataset items

curl \
--header "Authorization: Bearer $APIFY_TOKEN" \
"https://api.apify.com/v2/datasets/DATASET_ID/items?format=json"

Replace DATASET_ID with the defaultDatasetId from the run metadata.

25.4 Retrieve search summary

curl \
--header "Authorization: Bearer $APIFY_TOKEN" \
"https://api.apify.com/v2/key-value-stores/STORE_ID/records/SEARCH_RESULT_SUMMARY"

Replace STORE_ID with the run's defaultKeyValueStoreId.

Production integration recommendation

Do not rely solely on the dataset endpoint.

Use:

Run status
+
SEARCH_RESULT_SUMMARY
+
Dataset items

This lets your application distinguish successful empty searches, failed executions, and searches returning flights.


26. Python Integration — Apify Client

Install the official Apify client:

$pip install apify-client

Example

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
search_input = {
"origin": "LHR",
"destination": "JFK",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"maxRetries": 2,
"locale": "en",
"country": "GB",
"currency": "GBP"
}
run = client.actor(
"aiconsulting/google-flights-scraper-v2"
).call(run_input=search_input)
if run["status"] != "SUCCEEDED":
raise RuntimeError(
f"Actor execution ended with status: {run['status']}"
)
store_id = run["defaultKeyValueStoreId"]
summary = client.key_value_store(
store_id
).get_record("SEARCH_RESULT_SUMMARY")
flights = list(
client.dataset(
run["defaultDatasetId"]
).iterate_items()
)
search_summary = summary["value"] if summary else None
print("Search outcome:", search_summary)
print("Published records:", len(flights))
for flight in flights:
print(
flight["outboundFlightNumbers"],
flight["googleQuotedPrice"],
flight["currency"]
)

Developer notes

  • Read your Apify token from environment variables or a secret manager.
  • Never embed private API tokens in frontend source code.
  • SUCCEEDED is the Apify platform-level run status; inspect the Actor-level summary as well.
  • Persist run identifiers for troubleshooting.
  • Use webhooks or asynchronous orchestration for larger workflows.
  • Treat every price as a timestamped search quotation.

27. Node.js Integration

Use the official Apify client in Node.js applications.

Install:

$npm install apify-client

Example

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const input = {
origin: 'SYD',
destination: 'MEL',
tripType: 'ONE_WAY',
departureDate: '2026-12-15',
adults: 1,
children: 0,
infantsInSeats: 0,
cabinClass: 'ECONOMY',
flightType: 'ALL',
maxStops: 2,
maxResults: 10,
maxRetries: 2,
locale: 'en',
country: 'AU',
currency: 'AUD',
};
const run = await client
.actor('aiconsulting/google-flights-scraper-v2')
.call(input);
if (run.status !== 'SUCCEEDED') {
throw new Error(`Actor failed: ${run.status}`);
}
const { items } = await client
.dataset(run.defaultDatasetId)
.listItems();
const summaryRecord = await client
.keyValueStore(run.defaultKeyValueStoreId)
.getRecord('SEARCH_RESULT_SUMMARY');
console.log('Search summary:', summaryRecord?.value);
for (const flight of items) {
console.log({
flight: flight.outboundFlightNumbers,
price: flight.googleQuotedPrice,
currency: flight.currency,
stops: flight.outboundStops,
});
}

This pattern works for REST API backends, travel research tools, scheduled data collection, and agent services.


28. TypeScript Data Contracts

The following TypeScript types describe the public itinerary records observed in the Actor's dataset.

They are integration-side types, not an imported package shipped by the Actor.

type TripType = 'ONE_WAY' | 'ROUND_TRIP';
type CabinClass =
| 'ECONOMY'
| 'PREMIUM_ECONOMY'
| 'BUSINESS'
| 'FIRST';
type FlightType =
| 'ALL'
| 'NONSTOP'
| 'CONNECTING';
interface FlightSearchInput {
origin: string;
destination: string;
tripType: TripType;
departureDate: string;
returnDate?: string;
adults: number;
children?: number;
infantsInSeats?: number;
cabinClass: CabinClass;
flightType?: FlightType;
maxStops?: number;
maxResults?: number;
maxOutboundSelections?: number;
maxReturnOptions?: number;
maxRetries?: number;
country?: string;
currency?: string;
locale?: string;
}
interface FlightItinerary {
rank: number;
tripType: TripType;
route: string;
outboundDeparture: string;
outboundArrival: string;
inboundDeparture: string | null;
inboundArrival: string | null;
outboundFlightNumbers: string;
returnFlightNumbers: string | null;
outboundStops: number;
inboundStops: number | null;
googleQuotedPrice: number;
currency: string;
passengerCount: number;
cabinClass: CabinClass;
}
type SearchOutcome =
| 'SUCCESS'
| 'NO_RESULTS'
| 'FAILED';

For production-grade consumers, validate incoming JSON at runtime using an appropriate schema validator.

TypeScript types alone do not validate network responses.


29. AI Agents, LLMs and LangGraph

The Actor can serve as an external flight-search tool for an AI application.

An AI agent can:

  1. Convert a travel request into structured search parameters.
  2. Invoke the Actor.
  3. Read the resulting flight records.
  4. Filter or compare itineraries.
  5. Present results with currency, departure time and price caveats.

Example tool wrapper

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
def search_flights(search_input: dict) -> dict:
run = client.actor(
"aiconsulting/google-flights-scraper-v2"
).call(run_input=search_input)
if run["status"] != "SUCCEEDED":
return {
"runStatus": run["status"],
"flights": [],
"searchSummary": None
}
flights = list(
client.dataset(
run["defaultDatasetId"]
).iterate_items()
)
summary_record = client.key_value_store(
run["defaultKeyValueStoreId"]
).get_record("SEARCH_RESULT_SUMMARY")
return {
"runStatus": run["status"],
"searchSummary": (
summary_record["value"]
if summary_record else None
),
"flights": flights
}

You can wrap this function as:

  • A LangGraph tool node
  • A LangChain tool
  • An LLM function call
  • A custom travel agent action
  • An orchestration step in a larger autonomous workflow

Example agent request

User:

Find Economy flights from London to New York on 15 December for one adult and quote prices in GBP.

Agent-generated Actor input:

{
"origin": "LHR",
"destination": "JFK",
"tripType": "ONE_WAY",
"departureDate": "2026-12-15",
"adults": 1,
"children": 0,
"infantsInSeats": 0,
"cabinClass": "ECONOMY",
"flightType": "ALL",
"maxStops": 2,
"maxResults": 10,
"country": "GB",
"currency": "GBP",
"locale": "en"
}

The agent can then summarize returned flights without inventing fare values or flight schedules.

Agent safety rule: Never instruct an LLM to treat a search quotation as a guaranteed booked ticket price.


30. n8n, Automation and MCP Integration

n8n workflow

A typical automation:

Schedule Trigger
|
v
Apify — Run Actor
|
v
Read Search Summary
|
v
Get Dataset Items
|
v
Filter by Price / Stops
|
v
Database / Email / Slack / Dashboard

Use the Apify integration node or an HTTP Request node.

The same pattern can be implemented in Make, Zapier, Pipedream or a custom workflow engine, depending on platform availability.

MCP integration

Apify provides hosted MCP infrastructure that can expose accessible Actors as tools.

MCP server:

https://mcp.apify.com

Tool-scoped URL:

https://mcp.apify.com?tools=aiconsulting/google-flights-scraper-v2

Configure authentication and access using Apify's current MCP documentation.

A dedicated end-to-end MCP acceptance test of this Actor has not been established by the scraper test evidence.


31. Sorting, Ranking and Fare Comparison

The rank field represents the Actor's output ordering, not necessarily a globally ascending fare ranking.

For example, the Paris → Rome EUR test returned a €80 connecting itinerary after several higher-priced results.

If your application requires cheapest-first ordering, sort the returned dataset.

JavaScript

const cheapestFirst = [...flights].sort(
(a, b) => a.googleQuotedPrice - b.googleQuotedPrice
);

Python

cheapest_first = sorted(
flights,
key=lambda row: row["googleQuotedPrice"]
)

Caution

Sorting finds the lowest price among retrieved itineraries.

It does not prove that the Actor retrieved every flight in the market.

For comparisons across different currency requests, normalize monetary values with an appropriate exchange-rate source first.

The Actor does not provide a built-in FX conversion service.


32. Flight Price Monitoring and Historical Data

The Actor performs flight searches on demand.

It does not provide a built-in historical airfare database.

You can build monitoring by scheduling repeated runs and persisting results externally.

A recommended monitoring record includes:

{
"capturedAt": "2026-11-13T10:29:21Z",
"origin": "JFK",
"destination": "LAX",
"departureDate": "2026-12-15",
"flightNumbers": "AA171",
"cabinClass": "ECONOMY",
"passengerCount": 1,
"quotedPrice": 169,
"currency": "USD"
}

This is an illustrative downstream storage record assembled from the test evidence, not an additional Actor output format.

For meaningful fare-history comparisons, preserve:

  • Route
  • Travel date
  • Flight identity
  • Passenger composition
  • Cabin
  • Currency
  • Search timestamp
  • Quoted fare

A change in one of these dimensions can make two quotes non-comparable.


33. Performance and Cost Considerations

The HTTP-only design avoids starting and managing a full browser for each flight-search request.

In the observed global acceptance tests:

RouteParsed candidatesPublishedApplication execution
LHR → JFK2210675 ms
CDG → FCO1910709 ms
HND → KIX1210810 ms
SYD → MEL5110792 ms

These measurements are from successful application runs and do not establish end-to-end latency for every customer invocation.

Container startup, network conditions, retry cooldowns, Google response behavior, and round-trip search depth can materially change elapsed time.

Pricing

Actual customer charges are determined by the Actor's current Apify pricing configuration and applicable platform usage.

See the live Pricing tab for authoritative terms.

We do not claim a universal fixed cost per flight, nor unverified cost savings relative to competing Actors.


34. Known Limitations

Google Flights is an external dependency

Google can change public webpage responses, flight-board structures, or access behavior.

The Actor cannot guarantee uninterrupted availability.

Prices are quotations

googleQuotedPrice represents an extracted search-time quote.

Booking and ancillary costs may differ.

Currency labeling

Currency is selected through the request and applied to parsed numeric quotations.

The Actor's current extracted price field does not independently prove the monetary unit for every individual result.

Airport-level timestamps

Returned timestamps do not contain UTC offsets.

Applications requiring timezone-aware comparisons should resolve airport-local time zones.

Round-trip coverage is bounded

A limited number of outbound choices and return options are examined.

Cabin verification

The output records the requested cabin. It does not independently verify the booked cabin on every segment.

Infant-on-lap validation

The global-beta input path includes infantsOnLaps, but complete infant-on-lap fare verification remains outstanding.

Not a multi-city booking engine

One-way and round-trip searches are supported. Arbitrary multi-city itineraries are not documented as a verified feature.

No booking or reservation

The Actor does not issue tickets, reserve seats, or take payments.

No bundled airfare history

Repeated searches must be stored externally to create historical price datasets.


35. Frequently Asked Questions

Is this an official Google Flights API?

No. This is an independent Apify Actor that extracts publicly accessible Google Flights search information.

It is not affiliated with or endorsed by Google.

Does it support global flight searches?

The Actor supports configurable markets and currencies.

Successful testing includes India, the United States, the United Kingdom, France, Japan and Australia.

Other market/currency combinations may work, but these examples are not an exhaustive verification of worldwide coverage.

Can I request USD, EUR, GBP, INR, JPY or AUD?

Yes. These currencies were used in successful global-beta searches.

Additional currency codes depend on Google Flights' accepted parameters and the selected build's validation.

Does it support international flights?

Yes.

Tested international routes include Delhi → London, London → New York, and Paris → Rome.

Does it support round-trip flights?

Yes.

The Actor can pair selected outbound and return itineraries and extract corresponding quoted totals.

Can I search for multiple adults?

Yes.

The production tests included two-adult search configurations and direct comparison with a one-adult quotation.

Can I include children?

Yes.

The production tests included two adults plus one child.

Can I include infants?

Infants occupying seats were included in a verified mixed-passenger search.

Infant-on-lap input is present in the global beta but has not received equivalent end-to-end fare verification.

Does it support Premium Economy?

Yes.

A Delhi → London Premium Economy search for two adults returned 14 records during testing.

Does it support First Class?

Yes.

A two-adult First Class search returned 11 valid records in testing, with one malformed-price candidate rejected.

Can I filter nonstop flights?

Yes, using flightType: "NONSTOP" and maxStops: 0.

Can I retrieve connecting flights only?

Yes.

A verified Delhi → London connecting-only test returned seven one-stop flights and no nonstop flights.

Are returned fares always accurate?

The Actor extracts numeric quotations from Google Flights search responses and rejects malformed fares.

A three-passenger round-trip quotation was directly matched against Google Flights in Chrome during the original production acceptance tests.

However, exact booking totals, future availability, and every market/currency combination are not guaranteed.

Does the Actor return the cheapest possible flight?

Not necessarily.

It returns selected itineraries from Google's search results. Coverage is bounded by search parameters.

Sort retrieved records by price if your application requires cheapest-first presentation.

Does it work with Python and Node.js?

Yes.

Use the official Apify clients or standard REST API endpoints.

Can I use this in an AI agent?

Yes.

The structured JSON contract can be used as an external tool in LangGraph, LangChain, MCP-enabled systems and custom agent workflows.

Does it work with n8n?

The Actor can be called through Apify's n8n integration or HTTP API.

Specific downstream workflows require their own configuration and testing.

What should I do if a run fails?

Inspect the Actor run status, SEARCH_RESULT_SUMMARY and available diagnostics.

Google may temporarily return a recognized non-flight response or change its page structure.

Retrying can help, but repeated failures should be investigated rather than interpreted as zero available flights.


36. Support and Troubleshooting

When reporting a problem, provide:

  1. Actor run ID
  2. UTC date and time of the run
  3. Sanitized input configuration
  4. Search outcome or error message
  5. Expected behavior
  6. Observed behavior

Do not share Apify API tokens, payment information, airline account passwords or other private credentials.

The maintainer can use diagnostic fingerprints and request-stage information to investigate transport or parsing problems.

For production systems, keep a copy of the exact input, selected Actor build, and dataset metadata used for each search.


37. Release Notes and Validation Scope

Original India-market production baseline

The original production release was documented as source version 1.5, tested build 1.5.3, with acceptance testing performed on 3 November 2026.

It included:

  • One-way searches
  • Round trips
  • Adults and children
  • Infants in seats
  • Four cabin classes
  • Connecting-flight filters
  • Nonstop availability handling
  • Invalid-input detection
  • Direct Google quotation comparison

Global beta validation — 13 November 2026

The global extension successfully exercised:

  • Configurable country markets
  • Configurable requested currencies
  • US domestic flight extraction
  • US cross-currency price comparison
  • UK-to-US flight extraction
  • France-to-Italy flight extraction
  • Japanese domestic flights
  • Australian domestic flights
  • Recognition of known non-flight responses
  • Adaptive retry recovery

The tested transport identifies itself in diagnostics as:

V1.0_PUBLIC_TFS
GOOGLE_FLIGHTS_PUBLIC_PAGE_DS1

These are diagnostic identifiers, not evidence that a particular global-beta build has already been promoted to the Apify Store's latest release tag.

Before using this README as production-release documentation, confirm that the corresponding global build, market parameters, input schema and restored example input are deployed.


38. Integration Resources


Build Global Travel Applications with Structured Google Flights Data

From a simple US domestic airfare search to international round-trip comparison, the Google Flights Scraper provides an HTTP-based interface for turning live flight-search results into developer-friendly JSON.

Search flights. Compare itineraries. Extract currency-aware quotations. Integrate with APIs and AI agents. Automate travel research.

Start using the Actor:

https://apify.com/aiconsulting/google-flights-scraper-v2

Independent Google Flights data extraction. Prices and availability are subject to change. Always verify booking terms with the provider before purchase.