Does Google Flights have an API?

No, not for searching flights. Google's flights developer pages describe Google Flights as a free metasearch engine and offer onboarding for two groups: airlines and online travel agencies that want their fares and booking links to appear on Google Flights. That is a feed into Google, not a search API out of it, and the specification is shared under NDA with selected, invite-only partners.

Google's older QPX Express API, which once offered fare search to developers, is no longer available. So a search for a "Google Flights developer API" or a flights.google.com API ends in the same place: there is no official endpoint that returns the results of a Google Flights search.

Getting Google Flights data with a scraper

The Google Flights Scraper runs a Google Flights search and returns each flight as a row. You give it the origin and destination as airport or city codes (JFK, NYC), the departure date and, for a round trip, the return date, plus passengers, cabin class and the maximum number of stops. One task searches one route.

DataFields
PricePrice and currency, whether Google marks it as the cheapest or best flight, and Google's price level with the typical price range for the route
FlightAirline, airline codes, flight numbers, stops and layovers, departure and arrival airports and times, total duration
Each legFlight number, operating carrier, aircraft, legroom, in-seat amenities
ExtrasCarry-on bags included, CO₂ emissions and how they compare with typical flights on the route, a link to the search on Google Flights

In the run shown below, Google labelled prices on the route as high, with a typical range of $170 to $300, while the cheapest nonstop was $325. That context is useful for fare alerts: you can flag a price as a deal relative to what Google considers normal for the route.

Google Flights scraper results for JFK to London Heathrow on November 20, 2026 with airline, flight numbers, price, stops, departure time and duration
A Google Flights Scraper run from October 25, 2026: one-way economy flights from New York JFK to London Heathrow for November 20, 2026. First 9 of 12 flights shown.

Google Flights API in Python

You call the scraper like an API. This Python request searches one-way flights from New York to London and prints the cheapest options:

Python · Google Flights data via the Extracto API
import requests

response = requests.post(
    "https://extracto.cloud/api/v1/parsers/google-flights-scraper?wait=1",
    headers={"X-API-KEY": "ext_your_api_key", "Idempotency-Key": "jfk-lhr-2026-12-15"},
    json={"input": {"origin": "JFK", "destination": "LHR", "departureDate": "2026-12-15",
                    "adults": 1, "cabinClass": "economy", "maxStops": 1}},
    timeout=600,
)
flights = response.json()["data"]
for f in sorted(flights, key=lambda f: f["price"] or 10**9)[:5]:
    print(f["airline"], f["flightNumbers"], f["price"], f["currency"], f["stops"], "stops", f["duration"])

Google Flights API GitHub projects take another route: they reverse-engineer the requests the Google Flights page makes. They are free and fun to study, but they break when Google changes the page and offer no protection against blocking, so check how recently a project was updated before you build on it.

Is there a free Google Flights API?

No Google Flights API free tier exists, because there is no official API at all. Scraping is pay per use: $0.2 / 1,000 results, so monitoring 20 routes once a day with about 12 flights each costs roughly $1.44 a month. New accounts get 2,500 trial credits to test it.

What people use Google Flights data for

  • Fare monitoring: check a set of routes daily and alert when the price drops below Google's typical range.
  • Route research: which airlines fly a route, how many nonstops there are and at what times.
  • Travel content: current price ranges for destination guides, refreshed weekly.
  • Market analysis: how fares move as the departure date approaches.

Limits to know

  • Fares are time-sensitive and may be missing for some flights. They are what Google displayed at collection time, not bookable offers.
  • One task covers one route and date. For a date range or many routes, run several tasks.
  • Calendar views, return-flight selection and airline booking pages are not collected.
This is general information, not legal advice. See Extracto's acceptable use policy for what the platform may not be used for.