Google Flights Scraper - Prices and Routes avatar

Google Flights Scraper - Prices and Routes

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Google Flights Scraper - Prices and Routes

Google Flights Scraper - Prices and Routes

Scrape Google Flights for flight prices, routes, airlines, schedules.

Pricing

from $10.00 / 1,000 results

Rating

0.0

(0)

Developer

Donny

Donny

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

Overview

Google Flights Scraper is an Apify actor designed to extract flight prices, routes, and schedule information from Google Flights. Google Flights is one of the most comprehensive flight search engines, aggregating data from hundreds of airlines and online travel agencies worldwide. This actor automates the process of querying Google Flights and collecting structured flight data, making it invaluable for travel price monitoring, competitive analysis in the airline industry, and building travel comparison applications.

Key Features

  • Multi-route search: Search multiple origin-destination pairs in a single actor run. Compare prices across different routes simultaneously without running separate jobs.
  • Flexible date handling: Specify exact departure and return dates in YYYY-MM-DD format, or leave them empty for flexible date searches and one-way trips.
  • Cabin class selection: Search across economy, business, and first class cabins to compare pricing across different service tiers.
  • Comprehensive data extraction: Captures airline name, departure and arrival times, flight duration, number of stops, price in both text and numeric formats, and carbon emissions data when available.
  • Dual parsing strategy: Uses both DOM element parsing and embedded data extraction from HTML to maximize the amount of flight information captured from each search.
  • Price normalization: Automatically extracts numeric price values from formatted price strings, making it easy to sort, filter, and compare prices programmatically.

How It Works

The actor constructs Google Flights search URLs based on your input routes and date preferences. It sends HTTP requests with browser-like headers to retrieve the Google Flights search results page. The HTML response is then parsed using Cheerio, a fast and lightweight HTML parser. The actor first attempts to extract flight data from structured DOM elements that Google Flights uses to display results. If no results are found through DOM parsing, it falls back to regex-based extraction of price and airline data from the raw HTML content, including embedded script data.

Input Configuration

  • routes (required): Array of route objects, each containing an origin and destination field. Use airport codes like JFK, LAX, or city names like New York, Los Angeles.
  • departureDate: Optional departure date in YYYY-MM-DD format. Leave empty for flexible date searches.
  • returnDate: Optional return date in YYYY-MM-DD format. Leave empty for one-way searches.
  • passengers: Number of passengers, between 1 and 9. Defaults to 1.
  • cabinClass: Cabin class preference - economy, business, or first. Defaults to economy.
  • proxyConfiguration: Optional proxy settings to improve reliability for large-scale scraping operations.

Output Format

Each flight result includes: origin, destination, departureDate, returnDate, airline, departureTime, arrivalTime, duration, stops, price (formatted text), priceNumeric (integer value), cabinClass, emissions, and scrapedAt timestamp.

Use Cases

This actor serves travel agencies monitoring competitor pricing, frequent flyers tracking fare trends on specific routes, travel bloggers and content creators comparing deals across destinations, developers building flight price alert systems, and researchers analyzing airline pricing strategies. The structured JSON output integrates seamlessly with data pipelines, spreadsheets, and visualization tools for comprehensive travel market analysis.

Tips for Best Results

Use three-letter IATA airport codes for the most accurate results. Specify exact dates when possible to get precise pricing. Run searches at different times of day to capture price fluctuations. Consider using proxy configuration for high-volume searches to maintain consistent access to Google Flights data.