Google Flights Prices API avatar

Google Flights Prices API

Pricing

from $2.45 / 1,000 results

Go to Apify Store
Google Flights Prices API

Google Flights Prices API

Google Flights prices API & scraper: get live fares, schedules, stops, layovers, airlines, CO2 and booking options for one-way, round-trip and multi-city routes. Export flight price data to JSON, CSV or Excel.

Pricing

from $2.45 / 1,000 results

Rating

0.0

(0)

Developer

Insights Data

Insights Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

✈️ What is Google Flights Prices API?

Google Flights Prices API helps travel agencies, travel app builders, pricing analysts and frequent travellers with flight price monitoring, fare comparison and finding cheap flights, by turning Google Flights prices into a clean table. It works like a Google Flights API you call through Apify: enter routes like LAX-JFK and your travel dates, and you get one row per flight option with the price, airline, flight numbers, times, stops, layovers, duration and CO2 emissions. The Apify Free plan's $5 monthly credit pays for result charges and platform usage, so you can try it for free.

Just type your routes, pick the dates and click Start. No coding, no Google account and no key from Google are needed. The Actor reads the same public results you see on the Google Flights site and gives you Google Flights data as JSON, CSV or Excel.

🎯 What you can do with Google Flights data

  • 📈 Price monitoring: run the same routes every day or week and see when a fare drops below Google's typical price range.
  • 📆 Find the cheapest day to fly: search every day of a date range (up to 31 days) and get the lowest price per day.
  • ⚖️ Flight fare comparison and airline price comparison: compare routes, dates, cabins and airlines side by side in one table.
  • 🕵️ Competitor analysis: airlines, OTAs (online travel agencies) and any travel agency can see who flies a route, at what price, with how many stops, and who sells each ticket.
  • 🔬 Travel market research: study price levels, nonstop options, durations and airlines per route and season.
  • 🌱 CO2-aware planning: flight emissions data per itinerary and per leg, compared with the typical value for the route.

What can Google Flights Prices API do?

  • 🛫 Many routes at once: one search per route and date, with several airports per side (LAX,BUR-JFK).
  • 🗺️ One-way, round trip and multi-city trips.
  • 📆 Date ranges and trip length: every day in a window of up to 31 days, with a return date a set number of days later.
  • 🎛️ Filters: stops, max price, only or skip airlines, skip Basic Economy, max travel time, max layover, and departure or arrival time windows.
  • ↕️ Sorting: Google's order, cheapest first, shortest first or earliest departure first.
  • 📊 Price insights: price level (low, typical or high), Google's typical price range and Google Flights price history for each search.
  • 🏪 Google Flights booking options: who sells each flight (the airline or a travel site) and for how much.
  • ↩️ Return flights: the return options that go with the first outbound flights of a round trip.
  • 📦 Export to JSON, CSV, Excel, XML or HTML.
  • 🔌 Platform tools: run it through the Apify API, schedule runs, get webhooks, connect Make, Zapier or n8n, or call it from AI assistants through MCP.

📋 Google Flights API data: what can you extract?

Each run saves Google Flights prices in datasets. A dataset is Apify's table of results for a run; you can open it in the Console or download it. Every run has:

  • 🗃️ Flights (the run's default dataset): one row per flight option. This is the billed table.
  • 🔍 Searches (dataset searches): one free row per route and day, with the lowest price Google shows for it. This is the table to use for "cheapest day" and daily price reports.
  • 🗂️ Booking options and Return flights (datasets bookings and returns): free, and only filled when you turn those options on.

The field names below are the exact Flights dataset field names, so they match the Output tab, the API and the MCP tool output (what AI assistants receive).

FieldWhat it contains
🏁 type, rankflight for every row in this table, and the position of the flight in your sort order (1 = first)
🛫 searchRoute, origin, destinationThe route as you searched it (for example LAX-JFK) and the departure and arrival codes of that leg
📅 departureDate, returnDate, tripTypeThe travel dates (YYYY-MM-DD) and One way, Round trip or Multi-city. returnDate is only filled on round-trip rows
💺 cabinClass, passengersEconomy, Premium economy, Business or First, and the number of adults, children and infants on lap
💵 price, priceLabel, currencyThe price Google shows for your search (your passengers and cabin), the same price as text (for example 469 USD) and the currency code
📊 priceLevel, typicalPriceLow, typicalPriceHighlow, typical or high compared with Google's typical price range for the search, and the two ends of that range
🏅 isBestFlight, isCheapest, isFastesttrue when Google lists the flight among its best flights, and when it has the lowest price or the shortest travel time of all flights found for the search
🛩️ airline, airlineCodes, airlineLogo, flightNumbersAirline name(s), two-character airline codes, the logo link and the flight number of every leg (for example AA 118)
🛑 stops, stopsLabel, layovers, layoverAirportsThe number of stops (Nonstop, 1 stop), and each layover with airport code, airport name and minutes
🕒 departAirport, departAirportName, departAt, arriveAirport, arriveAirportName, arriveAtThe departure airport of the first flight and the arrival airport of the last flight: code, name, and local date and time (YYYY-MM-DD HH:MM)
⏱️ totalDurationMinutes, durationTotal travel time in minutes and as text (5h 17m), layovers included
📶 overnight, oftenDelayed, hasWifitrue when a leg is overnight, is often delayed by more than 30 minutes, or has Wi-Fi
🌱 emissionsKg, typicalEmissionsKg, emissionsVsTypicalPercentEstimated CO2 of the itinerary in kg, the typical CO2 for the route, and the difference in percent
🪜 legsOne entry per flight leg with flight number, airline, operated by, also sold by, airports and times, minutes, aircraft, cabin, legroom and its rating, Wi-Fi, amenities, CO2, overnight and often delayed
🔗 googleFlightsUrlA link to the same search on Google Flights (empty for multi-city)
🎟️ bookingToken, departureTokenCodes you can paste into a later run to look up one flight again (see "Tokens for follow-up runs")
⌚ scrapedAtThe start time of the run in UTC (the same value on every row of one run)

Note: null means "no value". Google doesn't show every detail for every flight (for example Wi-Fi, legroom or CO2), so those fields can be empty. Values are never invented.

↩️ How round trips look in the table

For a round trip, each row is one outbound flight option. Its price is the price Google shows for the whole round trip, and its times, airports and legs are those of the outbound flight. To see the return flights that go with the first outbound options, turn on Return flights (see Input); they go to the free Return flights table, where price is again the whole-trip price.

What data can't Google Flights Prices API extract?

  • 🧳 Baggage fees and seat maps.
  • 📜 Fare rules and refund conditions.
  • 👶 Infants in their own seat (only infants on lap).
  • 🗄️ A long-term historical airfare archive. You get Google's price graph for each search in priceHistory; to build your own history, run the Actor on a schedule.
  • 🔔 Price alerts sent by the Actor itself. Use a schedule plus an integration instead (see Integrations).
  • 🛎️ Hotel prices. For hotels, use Google Hotels Scraper.

🚀 How to scrape Google Flights prices

Google Flights Prices API is designed for an easy start, even if you've never extracted data from the web before.

  1. Create a free Apify account with your email.
  2. Open Google Flights Prices API and click Try for free on the Store page. The input form opens in Apify Console.
  3. In Routes, keep or replace the example routes. Write each route as two airport codes, like LAX-JFK. Check Departure date and Return date (leave Return date empty for one-way). If you only care about the lowest fares, set Sort results by to Cheapest first and Max flights per search to 5 or 10.
  4. Click Start at the bottom of the form and wait for the run to finish. Flights appear in the Output tab as each search is done, and the status line shows "N flights saved so far". Run time depends on how many searches you ask for.
  5. Download your data: open the Storage tab of the run, go to Datasets, pick Flights (the default dataset) or Searches, and click Export to get JSON, CSV, Excel, XML or HTML. The Output tab has an Export button too.

⚠️ The prefilled form searches 2 round trips (LAX-JFK and SFO-LHR, departing 1 month from today and returning 5 weeks from today) with up to 20 flights each. That is up to 40 billed flights: 40 × $0.0035 = $0.14 in result charges on the Free plan, plus the start fee and platform usage. Remove one route or lower Max flights per search for an even smaller test.

📈 Recipe: track a few routes every day

This input tracks two routes for every departure day between 4 and 5 weeks from today, each with a 7-day round trip, and keeps the 5 cheapest flights per day:

{
"routes": ["JFK-CDG", "ORD-LAX"],
"departureDate": "4 weeks",
"departureDateTo": "5 weeks",
"tripLengthDays": 7,
"maxItems": 5,
"sortBy": "price"
}
  • 🔢 Size: 2 routes × 8 departure days (day 28 to day 35, both included) = 16 searches, and up to 16 × 5 = 80 flights. That is up to 80 × $0.0035 = $0.28 in result charges on the Free plan.
  • 🧾 What to read: the Searches table gives one row per route and day with lowestPrice and priceLevel, which is what most fare reports need. The Flights table has the 5 cheapest options behind each row.
  • 🗓️ Make it daily: save this input as a task and add a schedule (see "Run it on a schedule"). Relative dates such as 4 weeks are counted from the day each run starts, so the window moves forward with every run.

💲 Google Flights API cost: how much does it cost to scrape Google Flights?

Google Flights Prices API uses pay-per-event pricing: you pay a set price per event, here mainly per flight saved. Your bill has three parts:

  1. Results: each flight saved to the Flights dataset is one result. The price per 1,000 flights depends on your Apify plan (see the table). Rows in the Searches, Booking options and Return flights tables and the run summary are free.
  2. Start fee: a fixed $0.00005 each time a run starts.
  3. Platform usage: the server time the run uses on Apify, billed at your Apify plan's own rates. It is extra and grows with the number of searches.

For example, 1,000 flights cost $3.50 in result charges on the Free plan (1,000 × $0.0035), or $2.45 on the Business plan (1,000 × $0.00245). One route searched on 7 days with 20 flights per day is up to 140 flights: 140 × $0.0035 = $0.49 in result charges on the Free plan.

PlanPrice per 1,000 flights
🆓 Free$3.50
🥉 Starter$3.15
🥈 Scale$2.80
🥇 Business$2.45

The plan discount applies to the result price only. The start fee is the same on every plan, and platform usage is billed at your Apify plan's own rates.

Maximum cost per run: before you start, open Run options below the input form and fill in Maximum cost per run. It caps the result charges of that run; platform usage is billed on top. For the recipe above, $0.29 is enough for all 80 flights plus the $0.00005 start fee ($0.28 + $0.00005). When the limit is reached, the run stops and keeps every flight already saved. Apify also calls this setting the maximum charge limit, and the run status shows it as spend limit. See the pricing tab for all events.

Platform usage depends on the size of the run, so this README gives no fixed total. Do a small test run (for example 1 route and 5 flights), read the cost on the run page, and scale from there. If a run fails or stops early, you pay only for the flights it saved, the start fee and the platform usage of that run.

Is the Google Flights API free?

Google offers no public Google Flights API, free or paid (see the FAQ). Google Flights Prices API itself is paid per flight, but you can start for free: the Apify Free plan gives you $5 in monthly credit, which pays for result charges and platform usage. Free-plan runs work the same way as paid runs, with the same settings.


⬇️ Input

To run Google Flights Prices API, you only need one route, such as LAX-JFK. Set the input in the Console form or send it as JSON through the API. See the input tab for every field.

⚙️ Settings most people change

  • 🛫 Routes (routes): one route per line, written as LAX-JFK, LAX to JFK or LAX > JFK. Several airports on one side go with commas (LAX,BUR-JFK). Use airport codes: the three-letter IATA codes shown next to each airport on Google Flights and on your ticket. The input form says city codes can be used too. City names such as "New York" don't work.
  • 📅 Departure date (departureDate): a calendar date, or a relative time such as 3 days, 2 weeks, 1 month or 1 year, counted from the day the run starts. The form comes prefilled with 1 month. If the field is empty (for example in an API call without it), the Actor uses 30 days from today.
  • 📅 Return date (returnDate): empty = one-way; filled = round trip. It takes the same calendar dates or relative times (the form prefill is 5 weeks) and may not be before the departure date.
  • 🔢 Max flights per search (maxItems): the most flights saved for each route and date, default 20. You can enter up to 500, but Google lists far fewer for one search (the input form says about 30 on the first page and about 150 in total), so a high value simply means "everything Google shows".
  • ↕️ Sort results by (sortBy): Best (Google's order, default), Cheapest first, Shortest first or Earliest departure first.
  • 🛑 Stops (maxStops): any number (default), nonstop only, up to 1 stop or up to 2 stops.
  • 💺 Cabin class (travelClass): Economy (default), Premium economy, Business or First.
  • 👥 Adults (adults): passengers aged 12 and over, default 1. With Children (children, 2 to 11) and Infants on lap (infantsOnLap, never more than adults), at most 9 passengers.
  • 🌍 Currency (currency), Country (country) and Language (language): USD, us and en-US by default. Currencies are three-letter ISO 4217 codes such as EUR or GBP; country is the Google Flights site you want, which can change the fares shown.

🎛️ Filters

  • 💵 Max price (maxPrice): the highest price in your currency; 0 = no limit. With a max price, flights without a price are left out too.
  • 🛩️ Only these airlines (airlines) and Skip these airlines (excludeAirlines): airline codes like DL or B6. Only these airlines also takes the alliances ONEWORLD, SKYTEAM and STAR_ALLIANCE. A flight is skipped when any of its legs is on a skipped airline.
  • 🎫 Skip Basic Economy (excludeBasic): only works with the Economy cabin.
  • ⏱️ Max total travel time (maxDurationMinutes) and Max layover (maxLayoverMinutes): in minutes; 0 = no limit.
  • 🌅 Depart after / before (departureTimeFrom, departureTimeTo) and Arrive after / before (arrivalTimeFrom, arrivalTimeTo): times like 06:30 for the first departure and the last arrival. A flight whose time Google doesn't show is kept.

📆 Date ranges: find the cheapest day to fly

Fill Last departure date (departureDateTo) to search every day from the departure date up to that date, both included, 31 days at most. Each day is its own search, and the free Searches table shows the lowest price per day. With Trip length (days) (tripLengthDays) above 0, every day gets a return flight that many days later instead of the fixed return date.

  • ✅ Good: departure 2026-12-01, last departure 2026-12-07, trip length 7 (7 round trips).
  • ❌ Bad: a departure date in the past, or a range of 40 days.

Relative values work here too: 1 month to 5 weeks covers the days from one month to five weeks ahead, which is about 5 to 8 days depending on the month. For an exact window, use weeks or days on both sides (for example 4 weeks to 5 weeks = 8 days).

⚠️ One run can hold at most 60 searches (routes × days, plus 1 for multi-city). Max flights is counted per search, so 2 routes over 10 days with 20 flights each can save up to 400 flights (400 × $0.0035 = $1.40 in result charges on the Free plan).

🗺️ Google Flights multi city trips

Use Multi-city legs (multiCityLegs) for a trip with 2 or more legs. Each leg needs from, to and date, and the dates must be in order:

[
{ "from": "LAX", "to": "JFK", "date": "2026-12-15" },
{ "from": "JFK", "to": "LHR", "date": "2026-12-20" }
]

The legs run as one extra search next to your routes. The rows show the flights of the first leg.

➕ Return flights and booking options

  • ↩️ Return flights (resolveReturnFlights): for round trips, also list the return flights for the first outbound flights of each search (Outbound flights to look up for returns, maxReturnResolutions, default 3). Saved free in the Return flights table.
  • 🏪 Booking options (fetchBookingOptions): also list who sells each of the first flights of every search and for how much (Flights to look up for booking options, maxBookingLookups, default 5). Saved free in the Booking options table.

Both are off by default. They add no result charges, but every lookup adds run time.

🎟️ Tokens for follow-up runs

Each flight row has a token: a code that lets a later run find that exact flight again. One-way rows (and the last leg of a trip) have a bookingToken; round-trip outbound rows have a departureToken.

  • 🎟️ Booking token (bookingToken): paste it with the same route and dates to get only the booking options of that flight. These rows are free, so a booking-token run bills no flights (only the start fee and platform usage).
  • 🎟️ Departure token (departureToken): paste it with the same route and dates to list the flights of the next leg after that choice, for example the return flights of one outbound flight.

Use one token at a time; only the first route's dates are used.

Two settings rarely need a change:

  • ⚡ Parallel searches (concurrency): how many searches run at the same time, 1 to 10, default 3.
  • 🔒 Proxy (proxyConfiguration): leave it as it is. A proxy is another internet connection; the Actor uses Apify Proxy by itself when needed.

🧪 Input example

Here's an example that searches one round trip, LAX to New York JFK, with up to one stop, and saves the 10 cheapest flights. In JSON, maxStops is text: "any", "0", "1" or "2".

{
"routes": ["LAX-JFK"],
"departureDate": "2026-12-15",
"returnDate": "2026-12-20",
"maxItems": 10,
"sortBy": "price",
"maxStops": "1"
}

This saves up to 10 flights: 10 × $0.0035 = $0.035 in result charges on the Free plan.


⬆️ Output

Flights appear in the Output tab while the run is going. The Output tab has these entries: Flights, Price, Schedule, Airlines, Comfort and emissions, Legs, Links and tokens (all from the Flights dataset), plus Searches, Booking options, Return flights and Run summary. To download, use Storage → Datasets, pick the dataset (Flights is the default one, Searches is searches), then Export. The run totals are in the Run summary: a record called RUN_SUMMARY in the run's key-value store (Apify's storage for single files, under Storage → Key-value store).

🧪 Flights example row

In a spreadsheet export, the example below looks like this (a few columns):

searchRoutedepartureDatereturnDateairlinepricecurrencystopspriceLevel
LAX-JFK2026-12-152026-12-20American469USD0typical

An example row for the input example above (shortened):

{
"type": "flight",
"rank": 1,
"searchRoute": "LAX-JFK",
"origin": "LAX",
"destination": "JFK",
"departureDate": "2026-12-15",
"returnDate": "2026-12-20",
"tripType": "Round trip",
"cabinClass": "Economy",
"passengers": { "adults": 1, "children": 0, "infantsOnLap": 0 },
"currency": "USD",
"price": 469,
"priceLabel": "469 USD",
"priceLevel": "typical",
"typicalPriceLow": 255,
"typicalPriceHigh": 510,
"isBestFlight": true,
"isCheapest": true,
"isFastest": false,
"airline": "American",
"airlineCodes": ["AA"],
"flightNumbers": ["AA 118"],
"stops": 0,
"stopsLabel": "Nonstop",
"layovers": [],
"layoverAirports": null,
"departAirport": "LAX",
"departAirportName": "Los Angeles International Airport",
"departAt": "2026-12-15 06:13",
"arriveAirport": "JFK",
"arriveAirportName": "John F. Kennedy International Airport",
"arriveAt": "2026-12-15 14:30",
"totalDurationMinutes": 317,
"duration": "5h 17m",
"overnight": false,
"oftenDelayed": false,
"hasWifi": true,
"emissionsKg": 273,
"typicalEmissionsKg": 331,
"emissionsVsTypicalPercent": -18,
"legs": [
{
"flightNumber": "AA 118",
"airline": "American",
"fromAirport": "LAX",
"departAt": "2026-12-15 06:13",
"toAirport": "JFK",
"arriveAt": "2026-12-15 14:30",
"durationMinutes": 317,
"aircraft": "Boeing 787",
"cabinClass": "Economy",
"legroom": "31 in",
"legroomRating": "Average",
"wifi": "Wi-Fi for a fee",
"amenities": ["In-seat power & USB outlets", "On-demand video"],
"emissionsKg": 273,
"overnight": false,
"oftenDelayed": false
}
],
"googleFlightsUrl": "https://www.google.com/travel/flights?q=Flights+from+LAX+to+JFK+on+2026-12-15+through+2026-12-20&curr=USD&hl=en-US&gl=us",
"bookingToken": null,
"departureToken": "EXAMPLE_TOKEN",
"scrapedAt": "2026-11-25T09:00:00Z"
}

This is a round-trip row: the price covers the whole trip, the times are the outbound flight's, and the row carries a departureToken (no bookingToken).

🧾 Searches table and search statuses

Every search (one route on one date) gets a free row in the Searches table, also when it found nothing. If you use the Actor as a flight price data API, this is the table to read first. It holds search, the dates, status, flightsSaved, flightsFound, lowestPrice, currency, priceLevel, the typical price range, priceHistory, the number of booking options and return flights, a note in error and scrapedAt.

priceHistory is the Google Flights price history graph of that search: a list of [time, price] pairs. The time is a Unix timestamp, which counts seconds since 1 January 1970 (UTC). In Excel or Google Sheets, turn a timestamp in cell A2 into a date with =A2/86400+DATE(1970,1,1) and format the cell as a date.

An example Searches row for the input example above:

{
"search": "LAX-JFK",
"tripType": "Round trip",
"departureDate": "2026-12-15",
"returnDate": "2026-12-20",
"status": "ok",
"flightsSaved": 10,
"flightsFound": 74,
"lowestPrice": 469,
"currency": "USD",
"priceLevel": "typical",
"typicalPriceLow": 255,
"typicalPriceHigh": 510,
"priceHistory": [[1761955200, 512], [1762041600, 489]],
"bookingOptions": 0,
"returnFlights": 0,
"error": null
}
  • 📥 ok: flights matched your route, dates and filters and were saved.
  • 🕳️ empty: Google answered, but no flight matched your route, date and filters (for a booking-token run: no booking options were found).
  • ⛔ failed: Google gave no usable answer for this search, for example because of a wrong airport code, or something unexpected went wrong. The error note says what to check, such as "no answer for this route and date - check the airport codes and the date".
  • ⏭️ skipped: the run had already stopped before this search could start or be saved, because Maximum cost per run was reached (the note says "spend limit"), the run's time limit was reached, or Google could not be reached.

Only flights saved to the Flights dataset are charged, so the Searches rows cost nothing.

🏪 Booking options and return flights tables

The Booking options table has one row per way to book: bookWith (the airline or travel site), isAirline, price, optionTitle, marketedAs, displayUrl, bookingUrl, bookingPostData and flightPrice. flightNumbers lists every flight of the itinerary, so on round trips it covers both legs. The Return flights table has the same fields as the Flights table plus outboundFlightNumbers, outboundDepartAt and outboundPrice; its price is the price of the whole round trip. Both tables are free.


💡 Tips and advanced usage

How many flights can you scrape with Google Flights Prices API?

At most 60 searches per run, and per search as many flights as Google lists, up to your Max flights per search. The real number depends on the route, the date, your filters, Maximum cost per run and the run timeout (the maximum run time set in the run options). The Actor stops shortly before the run timeout and keeps every saved flight. A small test run shows what to expect for your routes.

How to get cheaper results?

  • 🔢 Keep Max flights per search low (for example 5 or 10) with Sort results by = Cheapest first when you only need the lowest fares.
  • 🛑 Use Stops, Max price and the airline filters so fewer flights are saved.
  • 📆 Use a date range only as wide as you need: each day is one search.
  • 🏪 Leave Booking options and Return flights off unless you need them. They are free rows, but each lookup adds run time, which is platform usage.

🚧 Known issues

  • 🚧 A wrong airport code usually gives a failed search, not an error for the whole run.
  • 🚧 When Google shows prices in another currency than you asked for, the Run summary adds a note.

🗓️ Run it on a schedule

Turn Google Flights Prices API into a flight price tracker for your routes:

  1. Fill the form like the "track a few routes" recipe above: relative dates (4 weeks to 5 weeks), a trip length, Max flights per search 5 and Cheapest first.
  2. Save the input as a task (a saved input you can run again with one click).
  3. Add an Apify schedule to the task (an automatic start time), for example every morning.
  4. Each run creates its own datasets, and the relative dates move forward with each run day. To track flight prices over time, compare lowestPrice and priceLevel in the Searches table with the previous run, or collect every run in one sheet (see "Send every run to Google Sheets"). The Actor doesn't compare runs or send alerts itself.

🛠️ If something goes wrong

  • 💲 What was billed: only flights saved to the Flights dataset, plus the start fee and platform usage. Searches, Booking options and Return flights rows are free.
  • 🔄 How to retry: open the Searches table, find the rows with failed or skipped, check the error note (airport codes, dates, filters) and run those routes again.
  • 🚦 Why it stopped: the final status message says what happened, for example "1,234 flights saved (stopped: spend limit)", "No flights matched - check the routes, dates and filters" or "No flights collected - see the Searches table and the log for each route". "spend limit" means Maximum cost per run was reached. An input problem (for example a date in the past or more than 60 searches) stops the run at the start with a message that starts with "Input problem:".
  • 🐞 Still stuck: open an issue (see Support and feedback) and include the run link.

🔌 Google Flights API integrations: Python, apps and MCP

Can I use Google Flights Prices API as an API?

Yes, through the Apify API. The Apify API lets you start runs, schedule them and download the results from your own code. That makes the Actor a flight data API for your code: a hosted Google Flights scraper API you don't have to run yourself. It is not Google's official API and not a streaming feed. Each run reads the current fares Google shows at that moment, so for a Google Flights live API use case, schedule runs as often as you need fresh fares. Use the apify-client package for Node.js (see the JavaScript API example) or the Apify Python client (see the Python API example). The API tab has ready-to-use code.

🐍 Google Flights API Python example

This Google Flights scraper Python example runs the input example above and prints the price, airline and departure time of each flight:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("insights_data/google-flights-prices-api").call(run_input={
"routes": ["LAX-JFK"],
"departureDate": "2026-12-15",
"returnDate": "2026-12-20",
"maxItems": 10,
"sortBy": "price",
"maxStops": "1",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["price"], item["currency"], item["airline"], item["departAt"])

Can I integrate Google Flights Prices API with other apps?

Yes. Connect it with other apps through Apify integrations: Make, Zapier, n8n, Slack, Google Drive, Airtable, and more. A webhook is a message Apify sends to a URL of your choice when a run event happens, such as a run that succeeded or failed. Webhooks fire on run events, not on each new flight, and the same event can arrive more than once, so make your endpoint handle repeats. See webhooks.

  • 📣 Slack note when fares are low: a "run succeeded" webhook starts a Make or n8n scenario that reads the Searches table and posts routes with priceLevel = low to a Slack channel.
  • 💻 Fare comparison app: your backend calls the Actor through the Apify API as its Google Flights data API, then shows price, airline, stops and the booking options to your users.

🧮 Send every run to Google Sheets

To send Google Flights to Google Sheets after every run and keep a fare monitoring log without code, use the Google Sheets Import & Export Actor (Make, Zapier or n8n work too):

  1. Create the scheduled task from "Run it on a schedule".
  2. Create an empty spreadsheet in Google Sheets.
  3. In the task, add an integration that runs the Google Sheets Import & Export Actor after each successful run, with the run's Searches dataset as the source and your spreadsheet as the target, set to add new rows below the existing ones.
  4. Each morning's rows are added below the earlier ones, so you can chart lowestPrice per route and day.

The exact settings of that Actor are described on its own page.

Can I use Google Flights Prices API with AI agents (MCP)?

Yes. AI assistants such as Claude, ChatGPT, Cursor, GitHub Copilot and VS Code can run Google Flights Prices API through the Apify MCP server. MCP (Model Context Protocol) is a standard way for AI tools to call apps. The assistant gets the same fields as the dataset, so you can ask it for the cheapest nonstop flights from LAX to JFK next month. The MCP tab has the Google Flights API MCP setup steps.


🧩 Other Google and travel scrapers

These Actors from the same author cover hotels, places, reviews and news for the same trips and markets:

ActorWhat it adds
🛎️ Google Hotels ScraperHotel prices for any place and dates, with the price on every booking site, star class and guest rating
📍 Google Map ScraperGoogle Maps places by keyword, link or place ID, with address, phone, website, rating and coordinates
🗨️ Google Map Review ScraperReviews of any Google Maps place: rating, text, author, date and owner replies
⭐ Booking Review ScraperBooking.com hotel reviews with rating, liked and disliked text, room type and stay date
📰 Google News ScraperGoogle News headlines, publishers and dates by search term or topic, for airline and travel news

❓ FAQ

Collecting public Google Flights results that any visitor can see, without a login, is generally legal. Like any Google Flights web scraper, Google Flights Prices API reads only public flight search results and no personal data. You should still respect Google's Terms of Service and intellectual property rules, and have a legitimate reason for your use. This is not legal advice.

Is there a Google Flights API?

No. Google has no public Google Travel flights API for prices. Google Flights Prices API is not a Google product, but it is a practical Google Flights API alternative: you send routes and dates through the Apify API and get Google Flights results back as JSON. If your app needs a Google flight price API, this is how to use it; you only need an Apify account and its API token.

How does Google Flights Prices API work?

Google Flights Prices API is a flight price scraper that searches the way a visitor does. For each route and date, it runs a Google Flights search with your cabin, passengers and filters, reads the public results and price insights, sorts them and saves the flights as soon as that search is done. Several searches run in parallel, and one failing search doesn't stop the others. It uses Apify Proxy by itself when needed.

How is Google Flights Prices API different from Google Hotels Scraper?

Google Flights Prices API is a Google Flights scraper for flight fares, while Google Hotels Scraper collects hotel rates from Google Hotels. Together they price a full trip.

FeatureGoogle Flights Prices APIGoogle Hotels Scraper
🌐 PlatformGoogle FlightsGoogle Hotels
⌨️ InputRoutes and travel datesPlace names or Google Hotels search links, with dates and guests
📤 Main dataFares, airlines, stops, layovers, times, CO2Hotel prices, booking-site prices, guest ratings, star class
🏪 Where to bookBooking options per flightPrices per booking site
🌍 Currency choiceYesYes

Why scrape Google Flights prices?

Google Flights prices help you:

  • 📈 Watch fares: price monitoring on the routes you sell or fly most.
  • ⚖️ Compare: airline price comparison across dates and cabins in one table.
  • 🕵️ Know your market: competitor analysis and market research for airlines, OTAs and every travel agency.
  • 🧭 Plan trips: cheap flights on the best days, with stops and layovers you can accept.

How do I find the cheapest day to fly with Google Flights Prices API?

Set a Departure date and a Last departure date (up to 31 days apart), sort by Cheapest first and keep Max flights per search low. The Searches table then shows lowestPrice for every day; sort it by price to find the cheapest day to fly.

Does Google Flights Prices API give the Google Flights price history?

Yes, per search. The priceHistory field in the Searches table holds the points of Google's price graph for that route and date, as [time, price] pairs with Unix timestamps (see Output for the spreadsheet formula). For your own longer history, schedule the Actor and keep each run's Searches table.

Why am I getting fewer results than expected?

Google Flights Prices API returns fewer flights when Google lists fewer options than Max flights per search, when filters such as Stops, Max price, airlines or time windows remove flights, when an airport code or date is wrong, or when Maximum cost per run or the run timeout stops the run. Check the status and error columns of the Searches table and the log, relax the filters and run again.

How do I export Google Flights to Excel?

To export Google Flights to Excel, run Google Flights Prices API, open Storage → Datasets, pick Flights or Searches and choose Excel (or CSV) in Export. Nested fields such as legs become several columns.

Can I call it like a flight ticket price API from my own app?

Yes. Your app sends routes and dates to Google Flights Prices API through the Apify API and gets one row per flight option back, which is what most apps want from a flight price API. Use the Searches table when you only need the lowest fare per route and day.


📧 Support and feedback

Found a bug or have a feature request? Please create an issue on the Issues tab.

Need a custom solution or more data? Contact us at hello.insights.data@gmail.com.

Built and maintained by Insights Data.