The Mine Works
Google Flights Scraper
← All Scrapers
Apify Actor · Business

Google Flights Scraper

Google Flights itineraries with fares, legs, layovers and booking links

View on Apify Store →
From $0.63 / 1,000 itineraries
Status
State ● Live
Pricing PPE
Category Business
Overview

What it does

Give an origin and destination as IATA airport or city codes with a departure date and an optional return date, or a batch of up to 500 searches in routes. Relative dates such as "+30 days" keep a schedule looking the same distance ahead. Each row is one itinerary: total price for all passengers, airlines, flight numbers, local departure and arrival times, stops, each layover with its minutes, every leg with aircraft and legroom, CO2 and a booking link. Google's price level and typical range come on each row. City names such as London are not accepted, and round trip rows list outbound flights only.

Features

Built in

  • ✓ Up to 500 routes and dates in one run
  • ✓ Relative dates like +30 days for schedules
  • ✓ price_level and typical price range per search
  • ✓ Stops, airline and alliance filters applied by Google
  • ✓ City codes such as NYC search every airport
FAQ

Common questions

What does each itinerary cost? +

An itinerary row costs $0.0009 on the Apify Free plan and $0.00063 on Gold and above. The $0.001 start fee is charged once per run, only after a search has returned itineraries, so a run where Google answers nothing costs nothing. A search returning 100 itineraries costs $0.09 on Free.

Are round trip prices per direction or total? +

Total for both directions and all passengers. Each round trip row is an outbound itinerary carrying the price Google shows for the whole trip. The return flight is chosen on Google Flights itself, which the row's booking_url opens.

What do price_level and price_history tell me? +

price_level says whether the lowest fare is low, typical or high against what the route usually costs, with typical_price_low and typical_price_high as that range. The free summary row adds price_history, the lowest fare Google saw on each of about the last 60 days.

How many itineraries does one search return? +

Everything Google lists for the route and date, capped by maxResults, which defaults to 100 and goes up to 500. Tests returned about 100 on JFK to LAX, 259 on Mumbai to Delhi and 300 on NYC to LON. Strict filters such as nonstop only or one airline give fewer.

What if Google refuses a search? +

The actor tries other datacenter IPs, then a few residential IPs, and for one way searches the results page, before it writes a free error row. Three unanswered searches in a row end the run, so a blocked schedule stops after a few cheap requests. Dates beyond about 330 days also get a free error row.

Get Started

Try it on Apify.

Pay only for results delivered. No credit card required to sign up.

Apify Store

Find a ready-made scraper for your job

Apify has over 80,000 scrapers and automations, ours included. Start free with $5 of platform credit every month.