Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Google Flights Scraper — Live Flight Prices, Fares & Schedules (No API Key, No Login) 🛫

Apify Actor Run on Apify No API key No login Pay per result Export

This repository is documentation only — no scraper source code. The Actor runs on the Apify platform; just enter an origin, a destination and a date.

Scrape live flight prices from Google Flights in seconds — airlines, departure & arrival times, number of stops, total flight duration, cabin class, per-leg segments and booking tokens. Works for one-way and round-trip searches, any cabin class (economy, premium economy, business, first), and can scan a whole range of departure dates in one run to find the cheapest day to fly. There is no login, no Google Flights API key and no quota — this is the practical Google Flights API alternative for fare monitoring, price-drop alerts and airfare price intelligence, exportable to JSON, CSV or Excel.


🔎 What you get

One row per flight itinerary. Real output fields:

Field Description
price Total fare price for the search party, in the selected currency.
currency ISO currency code of the price.
airlines Comma-separated airline name(s) on the itinerary.
airlineCode Primary marketing airline IATA code.
stops Number of stops (0 = non-stop).
fromCode / toCode First-segment departure and last-segment arrival airport IATA codes.
departureDate / departureTime Local outbound departure date and time (HH:MM).
arrivalDate / arrivalTime Local arrival date and time.
totalDurationMin Total travel time in minutes.
tripType one-way or round-trip.
searchOrigin / searchDestination Origin / destination used for the search.
searchDepartDate / searchReturnDate Departure / return date used for the search.
segments JSON string of per-segment detail (airports, times, aircraft type, flight numbers, operating carrier).
bookingToken Google Flights booking token for the itinerary, when present.
scrapedAt ISO 8601 timestamp of the scrape.

💡 Use cases

  • Fare monitoring & price-drop alerts — schedule daily runs and track when a route gets cheaper.
  • Cheapest-day-to-fly analysis — set departureDateEnd to build a full fare calendar in a single run.
  • Travel agencies & OTAs — enrich your own search results with live Google Flights pricing.
  • Route & competitor price intelligence — monitor how carriers price specific routes over time.
  • Deal sites & newsletters — auto-source the best fares for your audience.
  • AI travel agents & chatbots — feed structured, real-time flight data into LLM workflows.
  • Airfare data science & dashboards — analyze pricing trends, seasonality and demand.

🚀 Quick start

Four ways to run — all return the same structured dataset.

1) Apify Console (no code)

  1. Open apify.com/logiover/google-flights-scraper.
  2. Click Try for free. Defaults (JFK → LHR, ~30 days out) return sample fares immediately.
  3. Pick your origin, destination and departureDate, then Start and export from the Output tab.

2) Apify CLI

npm install -g apify-cli
apify login
apify call logiover/google-flights-scraper \
  --input '{ "origin": "JFK", "destination": "LHR", "departureDate": "2026-08-15", "currency": "USD" }'

3) API / curl

curl -X POST \
  "https://api.apify.com/v2/acts/logiover~google-flights-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "origin": "JFK",
    "destination": "LHR",
    "departureDate": "2026-08-01",
    "departureDateEnd": "2026-08-31",
    "tripType": "one-way",
    "seatClass": "economy",
    "currency": "USD"
  }'

4) apify-client (JavaScript / Python)

Full snippets in examples/javascript.md and examples/python.md. All four methods are in examples/.

📥 Input

Provide at least an origin and destination; a departure date is optional (defaults to ~30 days out).

Field Type Description
origin select Departure airport IATA code, e.g. JFK, IST, CDG.
destination select Arrival airport IATA code, e.g. LHR, LAX, DXB.
departureDate string Outbound date YYYY-MM-DD. Blank → ~30 days out.
departureDateEnd string Scan every date from departureDate to this date — a cheapest-day fare calendar (many more results).
returnDate string Return date YYYY-MM-DD for round-trips.
tripType select one-way or round-trip (round-trip requires a return date).
seatClass select economy, premium-economy, business or first.
adults / children integer Number of adult / child passengers.
maxStops select Cap stops: Any, non-stop only (0), up to 1, or up to 2.
currency select ISO price currency: USD, EUR, GBP, TRY, AED, …
language select Google locale for results: en-US, en-GB, de-DE, …
maxResults integer Cap total rows across all searched dates (0 = unlimited).
proxyConfiguration object Apify Proxy (auto IP rotation) on by default. Use RESIDENTIAL for high volume.

Origin, destination, cabin class, currency and locale are all dropdowns in the Console.

Tip — cheapest day to fly: set both departureDate and departureDateEnd and the Actor returns one set of fares per day across the window — ideal for a fare calendar.

📤 Output

A realistic sample record:

{
  "price": 412,
  "currency": "USD",
  "airlines": "British Airways",
  "airlineCode": "BA",
  "stops": 0,
  "fromCode": "JFK",
  "toCode": "LHR",
  "departureDate": "2026-08-15",
  "departureTime": "21:30",
  "arrivalDate": "2026-08-16",
  "arrivalTime": "09:25",
  "totalDurationMin": 415,
  "tripType": "one-way",
  "searchOrigin": "JFK",
  "searchDestination": "LHR",
  "searchDepartDate": "2026-08-15",
  "searchReturnDate": null,
  "segments": "[{\"from\":\"JFK\",\"to\":\"LHR\",\"flightNo\":\"BA112\",\"plane\":\"Boeing 777\"}]",
  "bookingToken": "WyJDalJJ...",
  "scrapedAt": "2026-07-06T08:12:44.000Z"
}

🔌 Integrations & automation

  • Schedules — run hourly or daily for automated fare monitoring and price-drop alerts.
  • Webhooks — trigger a notification the moment a route drops below your target price.
  • Google Sheets / Airtable — sync live fares into a shared fare calendar or dashboard.
  • Databases, BI & S3 — export via the Apify API for airfare trend analysis.
  • Zapier · Make · n8n · Pipedream — connect the Actor into no-code alerting flows (e.g. Slack when JFK→LHR drops under $400).

📦 Export formats

Export every run as CSV, JSON, JSONL (JSON Lines), Excel (XLSX) or XML — one click in the Console or via the Apify API.

❓ FAQ

Is there an official Google Flights API?

No. There is no public Google Flights API, so this Actor is the closest Google Flights API alternative — it returns live, structured fare data you can pull programmatically.

Can I scrape Google Flights without an API key or login?

Yes. There is no API key, no login, no OAuth, no cookies and no quota. Just enter an origin, destination and date and get live flight prices ready for CSV or JSON export.

Are the flight prices real and live?

Yes. Prices are fetched at run time and reflect what a traveler sees. Availability and fares change constantly, so re-run for fresh data.

How do I find the cheapest day to fly?

Set both departureDate and departureDateEnd to scan every date in that window — you get one result set per day, perfect for a fare calendar.

Can it scrape round-trip flights?

Yes — set tripType to round-trip and provide a returnDate.

Can I get business or first-class fares?

Yes — set seatClass to premium-economy, business or first.

Can I scrape non-stop flights only?

Yes. Set maxStops to 0 for non-stop itineraries only, or leave it open for any number of connections.

Which airports are supported?

Major hubs worldwide via standard IATA codes (JFK, LHR, IST, CDG, DXB, SIN, SYD, …), selectable from a dropdown.

How do I export Google Flights data to CSV or Excel?

Run the Actor, then download the dataset as CSV, JSON, JSONL, Excel or XML from the Console, or pull it straight from the Apify API. Each itinerary is one clean row.

How much data can I get?

As many itineraries as Google Flights returns for your search — and far more when you use departureDateEnd to scan a date range (one result set per day). Cap the total with maxResults.

🔗 Related actors by logiover

👉 Browse all logiover scrapers on Apify Store.


📄 Documentation only — this repository contains no scraper source code. The Actor runs on the Apify platform. Always confirm the final price on the airline or booking site before purchase. ▶️ Run it: https://apify.com/logiover/google-flights-scraper

Licensed under the MIT License · © 2026 logiover · Not affiliated with, endorsed by, or sponsored by Google.

About

Google Flights scraper — live flight prices, airlines, times, stops, durations & booking tokens. One-way & round-trip, multi-date fare scan. No API key, no login.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors