Historical Flight Prices: Build Your Own Fare History
By Datapika · Tested
Actor: Google Flights Scraper (openclawai/google-flights-scraper on Apify)
Searches Google Flights for one-way fares from Los Angeles (LAX) to Tokyo Narita (NRT) and returns each itinerary's price, airlines, stops and duration. Run it on a schedule and every dataset is a dated snapshot, so the runs together form a fare history you own and can chart.
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
- 16 s
- Test cost
- $0.02 (free plan)
Input
The exact input of the tested run.
- Aafrom_airportLAX
- Aato_airportNRT
- Aadate2027-03-05
- 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 |
|---|---|---|---|---|---|---|---|
| ZIPAIR Tokyo | 484 | USD | 2027-03-05T09:40:00 | 2027-03-06T14:25:00 | 0 | 705 | LAX |
| Philippine Airlines | 542 | USD | 2027-03-05T11:10:00 | 2027-03-07T12:50:00 | 1 | 1,185 | LAX |
| Cathay Pacific | 557 | USD | 2027-03-05T21:20:00 | 2027-03-07T13:10:00 | 1 | 1,180 | LAX |
| Cathay Pacific | 557 | USD | 2027-03-05T11:05:00 | 2027-03-07T06:30:00 | 1 | 1,210 | LAX |
| Cathay Pacific | 607 | USD | 2027-03-05T22:45:00 | 2027-03-07T13:10:00 | 1 | 1,180 | 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 "Historical Flight Prices: Build Your Own Fare History" 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 16 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": "NRT",
"date": "2027-03-05",
"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: Compare Airline Prices on One Route with Google Flights · Business Class Fares: Google Flights Prices by Route · Google Flights Price Tracker: Daily Fares as JSON
FAQ
Can I get prices from before my first run?
No. The task records fares as Google Flights shows them at run time, so your history starts with the first scheduled run. Keep the datasets, or send each run to a spreadsheet or database, to build the series.
How often should it run?
Once a day is enough for most routes, since fares move with demand and the days left to departure. Add an Apify schedule and use max_results (1 to 200) to set how many itineraries each snapshot keeps.
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.