How to scrape Google Flights in 2026, with no official API

Last updated

Maintained by Datapika · We publish this product under the openclawai account on Apify. Product reference

To scrape Google Flights, run a scraper against the public results page: enter origin and destination airport codes and a date, start the run, and export every itinerary as JSON or CSV. No, there is no official Google Flights API. Google retired QPX Express, its last public airfare API, on April 10, 2018, after announcing the shutdown on November 1, 2017 and citing low interest among travel partners (TechCrunch). Only large contracted enterprise customers kept access. The working route in 2026 is scraping the public results page: Datapika's Google Flights scraper on Apify returns up to 200 itineraries per route and date (25 by default) as structured JSON at $0.0015 each at the list price, so 1,000 itineraries cost $1.50, with per-segment airports, aircraft, and CO2 grams on every row.

Is there an official Google Flights API?

No. Google's only public airfare feed was QPX Express, a product of its $700 million ITA Software acquisition, which powered fare data for sites like Kayak and Orbitz. As a condition of regulatory clearance for the ITA deal, Google had to provide third-party access to the software and data for at least five years from April 2011. Once that obligation lapsed, Google announced on November 1, 2017 that it would retire the API, stating it "decided to no longer support the QPX Express API given the low interest among our travel partners," and switched it off on April 10, 2018 (TechCrunch, November 1, 2017).

The enterprise version, QPX Enterprise, survived for large contracted travel companies only, so independent developers lost programmatic access to Google's fare data entirely. Nothing has replaced it since; every product marketed as a "Google Flights API" in 2026 is a scraper reading the public results page. That is what Datapika's actor does: it runs a route and date query against live Google Flights and converts what a traveler would see into machine-readable rows, with no API key on your side and no Google login.

  • QPX Express shut down April 10, 2018, announced November 1, 2017 (TechCrunch)
  • Google's stated reason: low interest among its travel partners
  • The ITA acquisition's five-year mandatory access condition had expired in 2016
  • QPX Enterprise continued, but only for large contracted travel companies
  • Every 2026 "Google Flights API" is a scraper of the public results page; Datapika bills per itinerary delivered, not per month

How do developers get Google Flights data in 2026?

Three entry points share the same actor. In the Apify Console you fill a form with origin, destination, and dates, run it, and download the dataset as JSON, CSV, or Excel. From code you call the Apify API with your token: POST the input object to the run-sync-get-dataset-items endpoint for openclawai~google-flights-scraper and the response body is the itinerary array, ready for a pandas DataFrame or a Postgres insert. For AI agents, the actor is exposed as an MCP tool through Apify's MCP server at mcp.apify.com, so a Claude or GPT based travel assistant can ask for JFK to LAX on a given date and receive typed rows without HTML parsing.

Every run performs a fresh search at the moment you start it, and the query inputs are echoed in every row, so you can fan out dozens of route and date combinations in parallel runs and merge the datasets by from_airport, to_airport, and date. Schedule runs in Apify to build a daily fare history for a route; fares change often enough that an hour-old snapshot can already be stale.

  • Console: fill the form, run, export JSON, CSV, or Excel
  • REST: run-sync-get-dataset-items returns the itinerary array in one call
  • Python: pip install apify-client, then client.actor('openclawai/google-flights-scraper').call(run_input=...)
  • MCP: add the actor as a tool through Apify's MCP server at mcp.apify.com
  • Schedules and webhooks in Apify turn one query into a daily fare history

What data can you get from Google Flights?

Every dataset row is one itinerary for the route and date you asked for. At the top level you get the total price as a number, the list of airline names and the itinerary's IATA airline code (multi when several airlines operate it), the stop count, total flying time in minutes with layovers left out, and ISO 8601 departure and arrival timestamps. The segments array then breaks the trip into legs, each with the origin and destination airport code and full name, leg departure and arrival times, leg duration, and the aircraft type as Google displays it, for example Airbus A320.

Two carbon fields close the record: this itinerary's CO2 estimate in grams and the typical figure Google reports for the route, so you can flag greener options without extra math. A scraped_at UTC timestamp is stamped on every row, and the query inputs (airports, date, trip type, cabin, passenger counts) are echoed back so rows from different runs stay self-describing.

  • price (number), airline_codes (one IATA code per itinerary, or multi), airline_names (array)
  • stops (integer, 0 = nonstop) and duration_min_total (flying minutes, layovers excluded)
  • departure and arrival as ISO datetimes for the whole itinerary
  • segments: per-leg airport code and name, times, duration_min, plane_type
  • carbon_emission_g and carbon_typical_on_route_g in grams
  • scraped_at plus echoed inputs: from_airport, to_airport, date, return_date, trip, seat, passengers

How much does Google Flights data cost per search?

Datapika charges $0.0015 per itinerary scraped at the list price (higher Apify plans pay less), plus $0.00005 per GB of memory at the run start and $0.00001 per dataset row, with no platform usage on top. A route with no results bills no itineraries. How many itineraries Google shows depends on the route: on October 28, 2026 a one-way JFK to LAX search filled the default cap of 25, while a round-trip business search from SFO to NRT returned 5. The max_results input defaults to 25 and caps at 200, so you control the ceiling on every run: at the default, a search costs at most $0.0375, and 1,000 itineraries in any combination of routes cost $1.50.

For a fare monitor that checks 20 routes twice a day at the default cap, that is up to 1,000 itineraries per day, or roughly $45.00 per month, with no base subscription. If you set a maximum total charge on the run in Apify, the actor stops pushing rows once that budget is reached and charges only for the rows actually delivered.

  • $0.0015 per itinerary at the list price, plus $0.00005 per GB of memory at the run start
  • Yield varies by route: JFK to LAX filled the default 25, an SFO to NRT business round trip returned 5 (October 28, 2026)
  • max_results default 25 (at most $0.0375 per search), maximum 200
  • 1,000 itineraries = $1.50; 10,000 = $15.00
  • No itinerary event without a returned itinerary; other platform charges may apply

Can you scrape round-trip, multi-city, and different cabin fares?

Yes. The input takes three-letter IATA airport codes for origin and destination, such as JFK to LAX or LHR to NRT, and a departure date in YYYY-MM-DD format; leave the date blank and the actor searches 30 days from today. Add a return_date and set trip to round-trip, and each row lists the outbound legs with the fare Google shows for that search. Multi-city searches only the leg you enter, so run one search per leg. Cabin class is one of four values: economy, premium-economy, business, or first.

Passenger counts follow Google's own model: 1 to 9 adults, children aged 2 to 11, and infants under 2 split into in-seat and on-lap, with at most 9 passengers per search and one adult for each infant on a lap, so family and group fares come back priced correctly. The language input accepts an ISO code such as en, es, fr, de, or ja and defaults to en, with 30+ result languages supported, which changes airline and airport names in the output to match the locale. A single route and date is quick: the scheduled JFK to LAX check on October 29, 2026 returned 25 itineraries in 4 seconds with 2,048 MB of memory.

  • Origin and destination as 3-letter IATA codes (JFK, LAX, LHR, CDG, NRT)
  • Trip types: one-way and round-trip; multi-city searches one leg per run
  • Cabins: economy, premium economy, business, first
  • Passengers: 1 to 9 adults plus children and infants in seat or on lap, 9 per search at most
  • Language: ISO code such as en, es, fr, de, ja, 30+ supported, default en
  • Date defaults to today plus 30 days when left empty
Output fields per itinerary, with values from the JFK to LAX example in the actor README
FieldExampleNotes
price149Total fare as a number in the displayed currency, typically USD; null if Google shows no fare
airline_codes["B6"]IATA code of the itinerary's airline, or multi when several airlines operate it
airline_names["JetBlue"]Human-readable names matching airline_codes
stops0Number of layovers; 0 means nonstop
duration_min_total353Sum of the leg durations in minutes; layover time is not counted
departure / arrival2026-06-15T06:00:00 / 2026-06-15T08:53:00ISO datetimes for first departure and final arrival, local airport time
segments[].from_airport{"code": "JFK", "name": "John F. Kennedy International Airport"}Per-leg origin with IATA code and full airport name; to_airport has the same shape
segments[].plane_typeAirbus A320Aircraft as Google displays it, per leg
segments[].duration_min353Leg duration in minutes; departure and arrival per leg also included
carbon_emission_g407000Estimated CO2 for this itinerary in grams
carbon_typical_on_route_g363000Google's typical CO2 for the route; compare to flag greener options
scraped_at2026-04-30T10:18:06.919ZUTC timestamp of the search; inputs (route, date, trip, seat, passengers) are echoed alongside

Sources you can inspect

Product documentation and implementation references. These references describe supported options and billing, not independent proof of performance. Confirm current details before running; examples and estimates are not guarantees.

How to do it

  1. 1.Open https://apify.com/openclawai/google-flights-scraper and enter the origin and destination IATA codes (for example JFK and LAX), a departure date, and an optional return date.
  2. 2.Pick the trip type (one-way, round-trip, multi-city), a cabin class, and passenger counts, then set max_results between 1 and 200 to cap your spend at $0.0015 per itinerary at the list price.
  3. 3.Start the run and export the dataset as JSON, CSV, or Excel, or fetch it through the Apify API with the run-sync-get-dataset-items endpoint.
  4. 4.For AI agents, connect Apify's MCP server at https://mcp.apify.com and enable openclawai/google-flights-scraper as a tool so the assistant can request itineraries directly.
Run the Google Flights Scraper

Ready-made tasks

Tested inputs you can run as they are, with real sample rows.

All 5 Google Flights Scraper tasks →

Questions, answered

How do you scrape Google Flights?

Open the Google Flights scraper on Apify, enter the origin and destination as three-letter IATA codes (for example JFK and LAX), a departure date and an optional return date, pick the cabin and passengers, and start the run. Each itinerary arrives as one row with price, airlines, stops, total duration, per-leg segments and CO2, ready to export as JSON, CSV or Excel, or to fetch through the Apify API. The same search can run on a schedule to build a fare history.

What happened to the Google Flights API (QPX Express)?

Google's QPX Express API, built on the ITA Software technology it bought for $700 million, was the only sanctioned public airfare feed. Google announced the shutdown on November 1, 2017, citing low interest among travel partners, stopped accepting new users, and closed the API on April 10, 2018 (TechCrunch). The regulatory condition requiring open access, five years from the 2011 ITA clearance, had already expired. Only QPX Enterprise survived, for large contracted customers, so scraping the public results page is now the practical route for independent developers.

Is the flight data live or cached?

Live. Every run performs a fresh Google Flights search at the moment you start it, and each row carries a scraped_at UTC timestamp so you know exactly when the fare was observed. There is no shared cache between customers. If you need price history, schedule the actor in Apify and append each run's dataset to your own store; fares change often enough that a snapshot from an hour ago can already be stale.

What currency is the price in, and does the output include booking links?

The price field is the total Google displays for the itinerary, typically in USD, and it can be null when Google shows no fare for a result. The output does not include a booking or deep link, because Google Flights routes purchases through airline and agency sites that vary per itinerary. Use the airline codes, flight times, and airport codes to rebuild a search on the carrier's site or in your own booking flow.

How many itineraries does one search return, and can I get more?

The actor returns up to the max_results you set, default 25, maximum 200, and the yield depends on the route: on October 28, 2026 a one-way JFK to LAX search filled the default 25, while a round-trip business search from SFO to NRT returned 5. If Google shows fewer results than your cap, you are charged only for what is delivered. To cover more options, run separate searches for nearby dates or alternate airports and merge the datasets using the echoed from_airport, to_airport, and date fields.

Do I need a subscription or a monthly search quota?

No. Datapika bills $0.0015 per itinerary actually delivered at the list price, with no subscription, and a run that returns nothing bills no itineraries. You pay for the itineraries you receive, not for a monthly plan, which suits occasional route checks and agent tool calls.

What are the run limits and failure modes?

A single route and date takes seconds: the scheduled JFK to LAX check on October 29, 2026 finished in 4 seconds with 2,048 MB of memory. Google sometimes throttles repeated queries, so the actor makes up to 3 attempts per search, waiting 2 and then 4 seconds between them, before failing the run with a clear status message; a failed run pushes no rows and bills no itineraries. Routes with no direct or connecting service can return an empty dataset; other actor events or platform charges may still apply.

Keep reading