Google Flights Scraper
Pricing
from $5.00 / 1,000 flights requests
Google Flights Scraper
Scrape Google Flights: itineraries with price, airlines, legs, stops, duration and emissions for any route and dates; a cheapest-fare date grid; return-leg and booking options (which airline or OTA sells it, at what price); airport code lookup. No proxies needed.
Pricing
from $5.00 / 1,000 flights requests
Rating
0.0
(0)
Developer
ScraperCompany
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
0
Monthly active users
19 hours ago
Last modified
Categories
Share
Google Flights Scraper returns Google Flights results as structured data. Flight search lists itineraries for a route and dates with total price, airlines, every leg with times and aircraft, stops, layovers, duration and CO2 emissions, plus Google's price insights. Price calendar finds the cheapest fare for each date around your target dates. Return options and Booking options follow Google's tokens to the next leg and to the list of sellers (airline and OTAs) with their prices. It supports the filters you know from Google Flights: stops, airlines, alliances, bags, times, layovers and price caps.
Proxies, retries and anti-bot handling are built in, so you don't need your own proxies or an API key. Start a run, get structured JSON.
What can this scraper do?
- Itineraries for one-way, round-trip and multi-city trips: price, airlines, legs, stops, layovers, duration, emissions.
- Price insights: price level, typical range and history.
- Date grid: cheapest fare per departure/return date in a window up to +/-30 days.
- Booking options: which airline or OTA sells an itinerary and at what price.
- Filters: stops, airlines and alliances, bags, cabin, time windows, layovers, connecting airports, max price, max duration, basic economy, lower emissions.
- Airport/city lookup to IATA codes. Batch many routes per run.
Modes
| Mode | What it returns | Price per request |
|---|---|---|
search | Itineraries for a route and dates: price, airlines, legs, stops, duration, emissions | $0.005 |
calendar | Cheapest fare for each date around your target dates | $0.008 |
return | Options for the next leg of a round trip or multi-city trip, from a departure_token | $0.005 |
booking | Where to book an itinerary (airline and OTAs) with each seller's price, from a booking_token | $0.005 |
locations | IATA airport and city codes for a place name | $0.002 |
What data can you extract?
| Field | Description |
|---|---|
itineraries[].price / display_price / currency | Total fare |
itineraries[].legs | Each flight: airline, flight number, airports, times, aircraft, duration |
itineraries[].total_stops / total_duration_minutes / is_direct | Trip shape |
itineraries[].carbon_emissions_kg / carbon_emissions_comparison | Emissions vs typical |
itineraries[].departure_token / booking_token | Tokens for Return options and Booking options |
price_insights | Lowest price, price level, typical range, price history |
prices[] (Price calendar) | Cheapest fare per date pair |
booking_options[] (Booking options) | Sellers with price and booking link |
locations[] (Airport lookup) | Airports and cities with IATA codes |
Every dataset item also carries input (the exact request that was sent), request_id (quote it to support), billed and scraped_at.
How to use Google Flights Scraper
- Open Google Flights Scraper in Apify Console and go to the Input tab.
- Enter routes as
JFK-LAXand dates (exact or relative, such as30 days). Leave the return date empty for one-way. - Adjust the options if needed. Dates accept an exact date (
2026-12-01) or a relative one (30 daysfrom today), so saved tasks and schedules never go stale. - Click Start and wait for the run to finish.
- Download the results from the Output tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.
Input example
This is the default input; running the Actor without changes uses it.
{"mode": "search","routes": ["JFK-LAX"],"departure_date": "30 days","return_date": "35 days","places": ["paris"],"includeErrors": true,"maxConcurrency": 3,"maxRetries": 2}
Output example
One dataset item per request (trimmed here; real items contain every field the API returns):
{"mode": "search","endpoint": "/v1/serp/google_flights","input": {"departure": "YUL","arrival": "CDG","departure_date": "2026-11-04","return_date": "2026-11-11"},"adults": 1,"arrival_airport": "CDG","best_count": 3,"cheapest_price": 527,"currency": "USD","departure_airport": "YUL","departure_date": "2026-11-04","elapsed_s": 0.942,"google_flights_url": "https://www.google.com/travel/flights/search?tfs=CBwQAhoeEgoyMDI2LTExLTA0agcIARIDWVVMcgcIARIDQ0RHGh4SCjIwMjYtMTEtMTFqBwgBEgNDREdyBwgBEgNZVUxAAUgBcAGCAQsI____...","itineraries": [{"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AC.png","carbon_emissions": {"difference_percent": -19,"this_flight": 325000,"typical_for_this_route": 399000},"carbon_emissions_comparison": "19% lower than typical","carbon_emissions_kg": 325,"carry_on_bags_included": 1,"currency": "USD","departure_token": "gf1.eNqFUMkKwjAU_Jd3TiGpVqU3TVuhBO1iIhpyEhe09NJWBfHfTRexxS2BlxneMvNygzPYBMEObJkWSYKqQOpHKo0kQbi8Cr3yn4IsD6w4A12rVMmBOtOGVSW4VQ4mNgcGwQax4Dmg7u5k6hF1x5hqPhr2Q...","display_price": "$527","google_flights_url": "https://www.google.com/travel/flights/search?tfs=CBwQAho_EgoyMDI2LTExLTA0Ih8KA1lVTBIKMjAyNi0xMS0wNBoDQ0RHKgJBQzIDODc0agc...","group": "best","is_direct": true,"legs": [{"arrival_airport": "CDG","arrival_time": "2026-11-05T07:20:00","departure_airport": "YUL","departure_time": "2026-11-04T18:10:00","duration_minutes": 430,"is_direct": true,"stops": 0}],"price": 527,"price_exact": 526.19,"total_duration_minutes": 430,"total_stops": 0,"trip_type": "round_trip"}],"itinerary_count": 69,"leg_index": 0,"legs_total": 2,"price_insights": {"lowest_price": 527,"price_history": [[1790568000]],"price_level": "typical","typical_price_range": [475]},"return_date": "2026-11-11","source": "rpc","trip_type": "round_trip","wire_bytes": 330950,"request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d","billed": true,"scraped_at": "2026-10-01T14:03:27.512Z"}
A request that fails is saved with an error message instead (turn off Include failed requests to skip those). Failed requests are never charged.
How much does it cost?
This Actor uses pay-per-event pricing: you pay for successful API requests, not for compute time.
| Event | Charged when | Price | Per 1,000 |
|---|---|---|---|
flights-request | One flight search, return-leg lookup or booking-options lookup. Searches with no itineraries are free. | $0.005 | $5.00 |
calendar-request | One route priced over a window of departure (and return) dates. | $0.008 | $8.00 |
location-search | One city or airport name resolved to IATA codes. Empty answers are free. | $0.002 | $2.00 |
For example, 1,000 requests in the default mode cost $5.00.
- Failed requests (errors, invalid input, blocked upstream after retries) are free.
- Requests where the source returns nothing at all (no results, nothing priced) are saved but not charged.
- Set Maximum cost per run when you start a run and the Actor stops cleanly before going over it.
FAQ
Do I need proxies or an API key?
No. Proxy rotation, retries and anti-bot handling are built in, and the Actor is ready to run as is. You only pay the per-event prices above.
How do I get booking links?
Run Flight search, take an itinerary's booking_token (one-way) or follow its departure_token through Return options for round trips, then run Booking options with that token.
Are prices final?
They are the prices Google Flights shows at the time of the request, in the selected currency, including the bags you asked for. Airlines can change fares at any time.
Does Google have a Flights API?
No. Google shut down its QPX Express flight API in 2018. This Actor returns the public Google Flights results as structured data.
How do round trips work?
Search with a return date. Each outbound itinerary carries a departure_token: run the Return / next-leg options mode with it to get the matching return flights, then the Booking options mode with the complete trip's booking_token for sellers and fares.
Can I find the cheapest day to fly?
Yes. The Price calendar (date grid) mode returns the lowest fare for each departure date around the date you choose, in one request.
Is it legal to scrape this data?
The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.
What happens when a request is blocked or rate-limited?
Rate limits (HTTP 429) and temporary errors (5xx) are retried automatically with exponential backoff, respecting Retry-After. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.
Why did a request return an error?
Read the error field: validation problems (for example a malformed date or an unknown id) are reported exactly as the API sees them. Fix the input and run again; failed requests cost nothing.
How many requests can I run at once?
Any number per run. The Actor sends up to 3 requests in parallel by default (change it under Run options); larger batches simply take longer.
Use it from your code
Call the Actor from any language through the Apify API. With the JavaScript client (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('scrapercompany/google-flights-scraper').call({"mode": "search","routes": ["JFK-LAX"],"departure_date": "30 days"});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
With Python (pip install apify-client):
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ["APIFY_TOKEN"])run = client.actor("scrapercompany/google-flights-scraper").call(run_input={"mode": "search","routes": ["JFK-LAX"],"departure_date": "30 days",})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
You can also schedule runs, chain them with webhooks, or connect them to Make, Zapier, n8n, Google Sheets and other integrations from the Integrations tab.
Related scrapers
Support
Questions, a field you need, or a site that stopped working? Open an issue on the Issues tab. Include the request_id from the dataset item so we can trace the request.