Google Flights Scraper avatar

Google Flights Scraper

Pricing

Pay per event

Go to Apify Store
Google Flights Scraper

Google Flights Scraper

Extract flight search results from Google Flights: airlines, prices, stops, duration, departure/arrival times. One-way & round-trip. All cabin classes. No API key needed.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 hours ago

Last modified

Categories

Share

Extract flight search results from Google Flights — airlines, prices, stops, duration, departure and arrival times. No API key needed. Works with one-way and round-trip searches, all cabin classes, and any currency.

Try it free with $5 in Apify credits. No credit card required to start.


What does Google Flights Scraper do?

Google Flights Scraper retrieves live flight search results from Google Flights. Enter your origin, destination, and travel dates to get a complete list of available flights, including prices, airline names, departure/arrival times, number of stops, total duration, and CO2 emission estimates.

The actor uses a headless Chromium browser to load the real Google Flights page and extract structured data — the same results you'd see when searching manually. It handles the Google consent flow automatically and returns clean, structured JSON.

Key capabilities:

  • ✈️ One-way and round-trip searches
  • 💺 All cabin classes: Economy, Premium Economy, Business, First
  • 💰 Any currency (USD, EUR, GBP, JPY, and more)
  • 🌍 Multi-language support (en, de, fr, es, and more)
  • 📊 Up to 200 flight results per search
  • 🌱 Carbon emission data when available
  • 🏷️ Labels: Best, Cheapest, Fastest flights flagged

Who is Google Flights Scraper for?

✈️ Travel agencies and booking platforms

  • Monitor competitor pricing across routes
  • Build fare alert systems with scheduled runs
  • Aggregate flight data across multiple origin/destination pairs

📊 Data analysts and researchers

  • Track airfare trends over time with scheduled scraping
  • Analyze airline pricing strategies and route competition
  • Build datasets for machine learning and price prediction models

🏢 Corporate travel managers

  • Compare prices for employee travel on frequently used routes
  • Monitor pricing changes on specific routes for budget planning
  • Export data to spreadsheets for expense reporting

🧑‍💻 Developers and product teams

  • Power price comparison tools without a paid flights API
  • Build travel apps that need real-time pricing data
  • Prototype flight booking features using real Google Flights data

Why use Google Flights Scraper?

  • ✅ No API key required — Google Flights has no public API; this scraper gives you the data directly
  • 📦 Structured JSON output — ready to export to CSV, Excel, Google Sheets, or databases
  • 🔄 Schedulable — set up cron-based monitoring to track fare changes over time
  • 💵 Pay-per-result pricing — only pay for flights you actually extract
  • 🔌 5,000+ integrations — connect to Google Sheets, Zapier, Make, webhooks, and more via Apify platform

What data can you extract?

FieldDescriptionExample
airlinePrimary operating airline"JetBlue"
airlinesAll airlines (codeshares)["JetBlue"]
pricePrice in searched currency317
currencyCurrency code"USD"
stopsNumber of stops (0 = nonstop)0
durationFormatted duration string"6 hr 30 min"
durationMinutesDuration in minutes390
departureTimeDeparture time (24h)"21:59"
arrivalTimeArrival time (24h, +1 for next day)"01:29 +1"
departureAirportOrigin IATA code"JFK"
arrivalAirportDestination IATA code"LAX"
originSearch origin"JFK"
destinationSearch destination"LAX"
departureDateTravel date"2026-06-01"
returnDateReturn date (round-trip)"2026-06-10"
cabinClassSearched cabin class"economy"
isBestFlightGoogle's "Best" labelfalse
labelGoogle label (Best/Cheapest/Fastest)"Best"
carbonEmissionKgCO2 estimate in kilograms407
carbonEmissionPercentCO2 vs. typical (%)10
urlGoogle Flights search URL"https://..."

How much does it cost to scrape Google Flights?

Google Flights Scraper uses Pay-Per-Event (PPE) pricing — you only pay for flight results you extract. There are no monthly subscription fees.

PlanPrice per flight result
Free ($5 credit)$0.00023
Starter ($29/mo)$0.0002
Scale ($199/mo)$0.000156
Business ($999/mo)$0.00012

Real-world cost examples:

  • 50 flights from JFK to LAX: ~$0.01
  • 200 flights across 5 routes: ~$0.04
  • Daily monitoring of 3 routes for a month: ~$1.80/month

💡 Free plan: Your $5 starting credit covers approximately 21,700 flight results at the free tier price.


How to scrape Google Flights

  1. Go to the Google Flights Scraper page on Apify Store
  2. Click Try for free
  3. Enter your Origin airport code (e.g. JFK) and Destination (e.g. LAX)
  4. Set your Departure date in YYYY-MM-DD format (e.g. 2026-06-01)
  5. Optionally set Return date for round-trip, Cabin class, and Max results
  6. Click Start and wait 30–60 seconds for results
  7. Download results as JSON, CSV, or Excel

Input examples:

One-way economy search:

{
"origin": "JFK",
"destination": "LAX",
"departureDate": "2026-06-01",
"cabinClass": "economy",
"maxResults": 50
}

Round-trip business class search:

{
"origin": "LHR",
"destination": "JFK",
"departureDate": "2026-07-15",
"returnDate": "2026-07-25",
"cabinClass": "business",
"currency": "GBP",
"maxResults": 20
}

Multi-passenger search:

{
"origin": "ORD",
"destination": "MIA",
"departureDate": "2026-12-20",
"adults": 2,
"children": 1,
"cabinClass": "economy",
"maxResults": 30
}

Input parameters

ParameterTypeRequiredDefaultDescription
originstringOrigin airport code (e.g. JFK) or city name
destinationstringDestination airport code (e.g. LAX) or city name
departureDatestringDeparture date in YYYY-MM-DD format
returnDatestringReturn date for round-trip (leave blank for one-way)
adultsinteger1Number of adult passengers (1–9)
childreninteger0Number of child passengers ages 2–11
cabinClassstringeconomyCabin class: economy, premium_economy, business, first
maxResultsinteger50Maximum flight results to return (1–200)
currencystringUSDCurrency code for prices (e.g. EUR, GBP, JPY)
languagestringenGoogle language code (e.g. de, fr, es)
proxyConfigurationobjectSHADERProxy settings

💡 Tip: Use IATA airport codes (3 letters like JFK, LHR, DXB) for the most reliable results. City names also work but may be ambiguous for cities with multiple airports.


Output examples

{
"origin": "JFK",
"destination": "LAX",
"departureDate": "2026-06-01",
"returnDate": null,
"cabinClass": "economy",
"adults": 1,
"airline": "JetBlue",
"airlines": ["JetBlue"],
"flightNumber": null,
"price": 317,
"currency": "USD",
"stops": 0,
"stopDetails": [],
"durationMinutes": 390,
"duration": "6 hr 30 min",
"departureTime": "21:59",
"arrivalTime": "01:29 +1",
"departureAirport": "JFK",
"arrivalAirport": "LAX",
"isBestFlight": false,
"label": null,
"carbonEmissionKg": 407,
"carbonEmissionPercent": 10,
"url": "https://www.google.com/travel/flights?q=flights+from+JFK+to+LAX+on+2026-06-01&hl=en&curr=USD"
}

Round-trip result:

{
"origin": "ORD",
"destination": "MIA",
"departureDate": "2026-07-04",
"returnDate": "2026-07-10",
"airline": "American",
"price": 360,
"currency": "USD",
"stops": 0,
"duration": "3 hr 16 min",
"durationMinutes": 196,
"departureTime": "07:04",
"arrivalTime": "11:20",
"departureAirport": "ORD",
"arrivalAirport": "MIA",
"isBestFlight": false,
"label": "Best"
}

Tips for best results

  • Use IATA codes: JFK is more reliable than New York. Find codes at IATA.org
  • Start small: Test with maxResults: 10 before running larger searches
  • Date format: Always use YYYY-MM-DD (e.g. 2026-06-01, not June 1 or 06/01/2026)
  • Far-future dates: Google Flights typically shows results up to ~330 days in advance
  • Monitoring: Use Apify's scheduler to run this daily and track price changes on specific routes
  • Combine with webhooks: Set up webhooks to receive data automatically when a run finishes

Integrations

Google Flights Scraper → Google Sheets Use the Apify Google Sheets integration to automatically append new flight prices to a tracking spreadsheet. Great for monitoring prices over time on a route before buying.

Google Flights Scraper → Slack/Discord Set up a webhook to post price alerts when fares drop below your target. Combine with Apify's scheduler to check prices daily.

Google Flights Scraper → Make (formerly Integromat) Build a scenario that runs the scraper and filters for flights under $X, then sends results to an email or saves to Airtable.

Scheduled fare monitoring Use Apify's built-in scheduler to check prices on your routes every morning. Compare today's price values against yesterday's to detect price drops automatically.

Multi-route batch scraping Use the Apify API to fire off parallel runs for multiple routes simultaneously. Useful for travel agencies monitoring many city pairs at once.


Using the Apify API

Run Google Flights Scraper programmatically using the Apify API:

Node.js:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('automation-lab/google-flights-scraper').call({
origin: 'JFK',
destination: 'LAX',
departureDate: '2026-06-01',
maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python:

from apify_client import ApifyClient
client = ApifyClient('YOUR_API_TOKEN')
run = client.actor('automation-lab/google-flights-scraper').call(run_input={
'origin': 'JFK',
'destination': 'LAX',
'departureDate': '2026-06-01',
'maxResults': 50,
})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item['airline'], item['price'], item['departureTime'])

cURL:

curl -X POST \
"https://api.apify.com/v2/acts/automation-lab~google-flights-scraper/runs?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"origin": "JFK",
"destination": "LAX",
"departureDate": "2026-06-01",
"maxResults": 50
}'

Get your API token from Apify Console → Settings → Integrations.


Use with AI agents via MCP

Google Flights Scraper is available as a tool for AI assistants that support the Model Context Protocol (MCP).

Add the Apify MCP server to your AI client — this gives you access to all Apify actors, including this one:

Setup for Claude Code

$claude mcp add --transport http apify "https://mcp.apify.com"

Setup for Claude Desktop, Cursor, or VS Code

Add this to your MCP config file:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com"
}
}
}

Your AI assistant will use OAuth to authenticate with your Apify account on first use.

Example prompts

Once connected, try asking your AI assistant:

  • "Use automation-lab/google-flights-scraper to find the cheapest flights from Chicago to Miami departing July 4th and returning July 10th"
  • "Search Google Flights for business class options from London to New York next month and show me the top 5 cheapest options"
  • "Monitor JFK to LAX prices for the next 30 days by scraping Google Flights weekly using automation-lab/google-flights-scraper"

Learn more in the Apify MCP documentation.


Google Flights displays publicly available flight data aggregated from airlines and booking systems. This data is accessible to anyone visiting google.com/travel/flights without logging in.

Key points:

  • ✅ Only public flight search data is collected — no personal data, no user accounts
  • ✅ This actor is designed for personal, research, and business intelligence use cases
  • ✅ Apify operates in compliance with GDPR and implements responsible scraping practices
  • ⚠️ Always review Google's Terms of Service before large-scale commercial use
  • ⚠️ Use reasonable rate limits — don't scrape thousands of routes per minute

This actor is intended for legitimate use cases such as travel research, price monitoring, and data analysis. It is not designed to create automated booking systems or to circumvent paid flight search APIs.


FAQ

How many flight results can I get per search? Google Flights typically shows 20–60 flight options per search. Set maxResults up to 200, though you may get fewer results if Google doesn't show that many for your route/date combination.

How much does it cost to monitor prices on one route daily for a month? At $0.0002 per flight result (Starter plan), monitoring one route returning 20 flights per day costs $0.004/day, or approximately $0.12/month. Very affordable for regular fare monitoring.

Why are some prices showing as null? This happens when Google Flights shows a "from" price range instead of a specific price, or when the actor couldn't parse the currency format. Try the same search in USD (currency: "USD") for the most reliable price extraction.

Why am I getting no results? Common causes: (1) The date is too far in the future (more than ~330 days). (2) The route has limited service. (3) The airport code may be incorrect — double-check IATA codes. Try a simple JFK→LAX search first to verify the actor works for your setup.

How does this compare to the Google Flights API? Google doesn't offer a public Flights API. Third-party flight APIs (Amadeus, Skyscanner, etc.) require API keys, have rate limits, and charge per request — often more expensive than this scraper for ad-hoc use. This actor gives you real Google Flights data directly.

What proxy type does this use? By default, the actor uses SHADER datacenter proxies. Google Flights works well with datacenter proxies for most regions. If you're getting blocks or empty results, try switching to residential proxies in the proxy configuration.


Other travel scrapers

Looking for more travel data? Check out other tools from automation-lab: