Skip to main content
Scrape a Google Flights link and the result comes back with every itinerary on the search in a defined structure, with prices, airlines, times, stops and Google’s price insights. Send "output": "json" to get just that data, or add a prompt or schema to shape it your own way (how results come back). Each link costs 1 credit, and a link that can’t be read costs nothing.

Example

A free-text search works as a link:
The item’s result, shortened to one flight:
The market, language and currency come from the link’s gl, hl and curr parameters.

Fields

Each flight: position, isBest, price, currency, airline, airlines, flightNumbers, departureAirport, arrivalAirport, duration, durationMinutes, stops, layovers, legs (with aircraft, seat, legroom, Wi-Fi, power and video, operator, overnight and often-delayed flags), carbonEmissions, bagsIncluded, fare (change and refund rules when Google shows them), bookingToken, bookingUrl and returnFlightsUrl. The search: resultCount, cheapestPrice, priceInsights (lowest price, typical range, price level and about 60 days of price history), cheapestFlight, airlineSummary, nearbyAirportDeals, airports, airlinesOnRoute, alliances and bag policy links per airline.

Limits

Not included: booking options (sellers and their prices), the date grid and price graph, Explore destinations and multi-city results. Those links come back as Markdown. For the cheapest days to fly, run one search per date; the Cheapest days to fly template does this for you.

Templates

Ready-made templates for Google Flights: cheapest flights for a route, cheapest days to fly, compare fares across routes, route price history and search links. Airport codes come from Look up airports.