Compare Airline Prices on One Route with Google Flights
By Datapika · Tested
Actor: Google Flights Scraper (openclawai/google-flights-scraper on Apify)
Searches Google Flights for one-way flights from Los Angeles (LAX) to New York (JFK) and lists every itinerary with its airlines, price, number of stops and total travel time, so you can sort by price and see which airline is cheapest that day.
Run on Apify opens the actor. Paste the copied input into its JSON tab and press Start.
- Tested on
- November 26, 2026
- Rows in the test
- 10
- Run time
- 14 s
- Test cost
- $0.02 (free plan)
Input
The exact input of the tested run.
- Aafrom_airportLAX
- Aato_airportJFK
- Aadate2027-02-20
- Aatripone-way
- #max_results25
Output fields
Columns every row carries in this view.
- ≡Airlineairline_names
- #Priceprice
- AaCurrencycurrency
- AaDeparturedeparture
- AaArrivalarrival
- #Stopsstops
- #Duration (min)duration_min_total
- Aafrom_airportfrom_airport
- Aato_airportto_airport
Sample results
The first rows of the test run on November 26, 2026. Emails and phone numbers are masked. JSON · CSV
| Airline | Price | Currency | Departure | Arrival | Stops | Duration (min) | from_airport |
|---|---|---|---|---|---|---|---|
| American | 189 | USD | 2027-02-20T14:00:00 | 2027-02-20T22:25:00 | 0 | 325 | LAX |
| American | 189 | USD | 2027-02-20T16:10:00 | – | 0 | 333 | LAX |
| American | 189 | USD | 2027-02-20T22:42:00 | 2027-02-21T07:00:00 | 0 | 318 | LAX |
| American | 229 | USD | 2027-02-20T10:32:00 | 2027-02-20T19:00:00 | 0 | 328 | LAX |
| JetBlue | 279 | USD | 2027-02-20T06:00:00 | 2027-02-20T14:15:00 | 0 | 315 | LAX |
How it works
01
Open the actor on Apify
Click Copy input, then Run on Apify to open the Google Flights Scraper. Sign in or create a free account, open the JSON tab of the input form and paste the input.
02
Start the "Compare Airline Prices on One Route with Google Flights" task
Press Start. Change any input field first if you need a different topic, account or size; the fields are listed above.
03
Get the results
Rows arrive in a dataset while the run works. Our test returned 10 rows in 14 seconds.
04
Use the data
Download JSON, CSV or Excel, call the run from the API, schedule it, or let an AI agent run it through MCP.
Run it from your tools
Send the results to a spreadsheet or app with Apify's integrations, call it from code, or let an AI agent run it.
No code
- Zapier
- Make
- n8n
- GSGoogle Sheets
- SSlack
- WWebhook
AI agents (MCP)
- Claude
- ChatGPT
- Cursor
- Gemini
- Perplexity
- LangChain
- MCP
- GitHub Copilot
{
"from_airport": "LAX",
"to_airport": "JFK",
"date": "2027-02-20",
"trip": "one-way",
"max_results": 25
}Paste it into the actor's JSON input tab on Apify.
Change it to fit your job
- from_airport and to_airport take three-letter airport codes such as JFK, LHR or NRT.
- date and return_date take YYYY-MM-DD; set trip to round-trip when you add a return date.
- trip takes one-way, round-trip or multi-city (one leg per search).
- max_results caps the itineraries returned (1 to 200); you pay only for those returned.
Close variants: Business Class Fares: Google Flights Prices by Route · Google Flights Price Tracker: Daily Fares as JSON · Flights from New York to Tokyo: Live Google Flights Fares
FAQ
Does it show connecting flights on two airlines?
Yes. airline_names lists every carrier on an itinerary, so mixed-airline connections show both names, and stops gives the number of connections.
Can I keep only nonstop flights?
There is no nonstop filter in the input. Every row has stops, so filter stops = 0 in the dataset view, a spreadsheet or your code.
Do I need a Google account or API key?
No. It reads public Google Flights results with no login, cookie or API key. Run it from the Apify Console, the API, or an AI agent through MCP.
How much does it cost?
You pay per itinerary delivered to your dataset. There is no start fee. The current prices are on the Pricing tab.
Data comes from public pages at run time; the sample above is one test run and results change with every run. The input JSON on this page is the exact input we tested: see Input above.