Skip to main content
Send a Google Flights link to Scrape or Batch scrape and you get every itinerary on the search as JSON, with prices, airlines, times, stops and Google’s price insights. Each link costs 1 credit, and a search with no flights, or a date in the past or more than a year ahead, 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

Google only serves some views through calls its page signs, so these aren’t covered: booking options (sellers and their prices), the date grid and price graph, Explore destinations and multi-city results. Those links are read in a normal browser instead. 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.