# Google Flights Scraper: Prices, Cheapest Dates & Fare Alerts (`brainfoods_studio/google-flights-scraper`) Actor

Flights for any route and dates from Google Flights with Google's price rating, the 60-day price history, a cheapest-date report with a buy-or-wait signal, and fare alerts. $0.70 per 1,000 flights; no start fee.

- **URL**: https://apify.com/brainfoods_studio/google-flights-scraper.md
- **Developed by:** [Brainfoods Studio](https://apify.com/brainfoods_studio) (community)
- **Categories:** Travel, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 flights

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

> **The only flights scraper that sells decisions, not just raw rows.** Other scrapers hand you thousands of flights and leave you to figure out if today is a good day to buy. We deliver the flights, Google's price rating, the 60-day price history, a cheapest-date report with a clear buy-or-wait signal, and automatic fare alerts.

**Google Flights Scraper** pulls live flight fares, airline details, layovers, and carbon emissions from Google Flights for any route and dates. Search single dates or scan up to 60 consecutive departure dates at once to find the cheapest time to fly.

**No login · No API key · $0.70 per 1,000 flights, less on paid plans · Independent tool, not affiliated with Google**

### What does Google Flights Scraper do?

- **Flight itineraries**: price, currency, operating airlines, flight numbers, aircraft type, departure/arrival times and airports, duration, stops, layover airports and durations, legroom, and CO2 emissions.
- **Google's price insights**: whether Google rates the current price as low, typical, or high, plus the typical price range (low to high) for each route.
- **60-day price history**: daily historical price trend points directly from Google's price graph.
- **Cheapest-date report**: scans across a date range (up to 60 days) to identify the absolute cheapest and second-cheapest dates, weekday pricing patterns, savings versus typical fares, and an actionable **buy** or **wait** signal.
- **Round trips and one-ways**: supports one-way routes (e.g. `LIS-LHR`) and round-trip journeys (e.g. `LIS-LHR-LIS`) with a return window from 1 to 60 days. For round-trip searches, Google returns outbound options paired with the total round-trip price.
- **Fare alerts**: monitors routes on a schedule and notifies your Slack webhook or HTTPS endpoint when prices drop, fall below your budget target, or turn to "low".

### Who is it for?

- **Travel apps and aggregators** sourcing live fares and price history without expensive enterprise GDS contracts.
- **Travelers and digital nomads** monitoring flights across a flexible 60-day departure window to snag the cheapest possible departure date.
- **Corporate travel managers** verifying whether quoted agency fares are typical or inflated.
- **Market researchers and pricing analysts** analyzing airline fare volatility, weekday pricing patterns, and carbon footprint variations.

### Use cases

| You want to | What to set |
| --- | --- |
| Find the cheapest date to fly over the next 30 days | `dateRangeDays: 30`, `cheapestOnly: true`, `includeCheapestDateReport: true` |
| Get all flights on a specific date, nonstop only | `routes: ["LIS-LHR"]`, `maxStops: 0`, `maxResultsPerSearch: 20` |
| Monitor round-trip fares and get alerted on price drops | `routes: ["JFK-LHR-JFK"]`, `returnDays: 7`, `monitorKey: "jfk-lhr"`, `deliveryWebhookUrl: "https://..."` |
| Compare business class fares | `cabin: "business"` |
| Alert when a flight drops below $200 | `alertBelowPrice: 200`, `monitorKey: "deal-tracker"` |

### The Cheapest-Date Report & Buy/Wait Signal

Searching 30 or 60 departure dates in a single run produces a comprehensive route analysis:

| Field | Description |
| --- | --- |
| **Cheapest date** | The departure date with the lowest fare found across your entire date range. |
| **Second cheapest date** | The runner-up date for travelers who need flexibility. |
| **Weekday patterns (`byWeekday`)** | The median cheapest price per day of the week (e.g. Friday vs Tuesday) so you know which days are consistently cheaper. |
| **Savings vs typical** | How much you save compared to Google's typical high benchmark for that route. |
| **Signal & reason** | `"buy"` when the price level is low or in the bottom 25% of history; `"wait"` when prices are high but trending downward over the last 14 days; otherwise `"neutral"`. |

### Results explained

Every result is a structured row in your dataset:

| Row `type` | Description | Key fields |
| --- | --- | --- |
| `flight` | One flight itinerary | `route`, `price`, `currency`, `airlines`, `departAirport`, `arriveAirport`, `departTime`, `arriveTime`, `durationMin`, `stops`, `legs`, `co2Grams` |
| `search` | Free search overview per date | `priceLevel`, `cheapestPrice`, `typicalLow`, `typicalHigh`, `priceHistory`, `itineraries` |
| `cheapest-date-report` | Summary report per route across date range | `cheapestDate`, `cheapestPrice`, `secondCheapestDate`, `byWeekday`, `savingVsTypical`, `signal`, `signalReason` |
| `summary` | Free run summary | `routes`, `dates`, `searches`, `flightsDelivered`, `filteredOut`, `charged` |
| `error` | Free error notice if a page fails | `route`, `departDate`, `message`, `attempts` |

### Pricing

| Result | Free plan | Bronze | Silver | Gold and up | When charged |
| --- | --- | --- | --- | --- | --- |
| `flight` | $0.70 / 1,000 | $0.60 / 1,000 | $0.50 / 1,000 | $0.40 / 1,000 | Each delivered flight itinerary row |
| `cheapest-date-report` | $0.04 | $0.035 | $0.03 | $0.025 | One report per route when date range > 1 |
| `alert` | $0.01 | $0.01 | $0.01 | $0.01 | Each alert delivered to your webhook |

- **Free search rows:** Google's price rating, typical range, and 60-day price history points are included in the search row for free.
- **Filtered flights are free:** Any flights excluded by your `maxStops` filter are never delivered and never charged.
- **Never past your spending limit:** When your Apify run limit is reached, the actor gracefully stops and saves what was already fetched.
- **No start fee:** Only Apify's standard micro-charge of $0.00005 applies.

#### Typical job costs (Free plan)

| Task | Configuration | Estimated Cost |
| --- | --- | --- |
| Scan 60 departure dates for the lowest fare | 1 route × 60 dates, `cheapestOnly: true`, with report | ≈ **$0.08** (60 × $0.0007 + $0.04) |
| Compare 20 flights for one date | 1 route × 1 date, 20 results | **$0.014** (20 × $0.0007) |
| Full 30-day route scan (10 flights/day) | 1 route × 30 dates × 10 flights, with report | ≈ **$0.25** |

### How to use the Google Flights scraper

1. Click **Try for free**.
2. Enter your **routes** using 3-letter IATA codes (e.g. `LIS-LHR` for one-way or `LIS-LHR-LIS` for round trip).
3. Choose a **departure date** or leave empty to default to 30 days from today.
4. Set **date range (days)** to scan consecutive departure dates (e.g. 14 or 30).
5. (Optional) Filter by **max stops** or set **cheapest flight only** to true.
6. Click **Start** and download your dataset as JSON, CSV, or Excel.

#### Input example

```json
{
  "routes": ["LIS-LHR"],
  "departDate": "2026-12-10",
  "dateRangeDays": 14,
  "cheapestOnly": true,
  "includeCheapestDateReport": true,
  "currency": "USD"
}
```

### Legal note

This actor reads public Google Flights pages. It does not solve captchas and does not try to get around anti-bot checks. It respects Google's rate limits by waiting and backing off. Use the data in line with Google's terms, airlines' policies and the laws where you live.

### More from Brainfoods Studio

- [Google Trends Scraper](https://apify.com/brainfoods_studio/google-trends-scraper): interest over time for up to 100 keywords on one 0–100 scale, plus regions, related queries and trending now.
- [Google News Scraper](https://apify.com/brainfoods_studio/google-news-scraper): articles by search, topic or top stories, past the 100-article cap, with real publisher URLs.
- [Google Ads Transparency Scraper](https://apify.com/brainfoods_studio/google-ads-transparency-scraper): every ad a brand runs on Google, by name, ID or website, with dates, countries and ad text.

### Support

We're the new kids on this Store, so every issue gets an answer from the people who wrote the code. Found a problem, or need a field we don't return yet? Open an issue in the **Issues** tab. And if this actor saved you an afternoon, a review helps the next person find it.

Built and maintained by Brainfoods Studio.

# Changelog

This Actor's version history is a separate document: https://apify.com/brainfoods_studio/google-flights-scraper/changelog.md

# Actor input Schema

## `routes` (type: `array`):

Routes to scrape, 1 to 20. Format: FROM-TO with IATA airport codes (e.g. LIS-LHR), or FROM-TO-FROM for round trips (e.g. LIS-LHR-LIS).

## `departDate` (type: `string`):

Departure date in YYYY-MM-DD format (UTC). If left empty, defaults to 30 days from today.

## `returnDays` (type: `integer`):

For round-trip routes: number of days after departure for the return flight (1 to 60).

## `dateRangeDays` (type: `integer`):

Number of consecutive departure dates to search (1 to 60), starting at departDate.

## `adults` (type: `integer`):

Number of adult passengers (1 to 9).

## `cabin` (type: `string`):

Cabin class for all flights.

## `maxStops` (type: `integer`):

Maximum number of layovers / stops (0 for nonstop, 1, 2, or 3). Leave empty for any. Filtered itineraries are not delivered and not charged.

## `maxResultsPerSearch` (type: `integer`):

Maximum flight itineraries to deliver per search date, sorted cheapest first after filters.

## `cheapestOnly` (type: `boolean`):

Deliver only the single cheapest itinerary per route and departure date. Ideal for low-cost calendar scans.

## `includeCheapestDateReport` (type: `boolean`):

Adds a report per route across the searched date range: cheapest and second-cheapest dates, median prices by weekday, saving vs typical, and a buy-now or wait signal. Charged once per route.

## `currency` (type: `string`):

Three-letter ISO currency code, for example USD, EUR, GBP or INR.

## `country` (type: `string`):

Two-letter country code for Google Flights regional settings and proxy routing (e.g. us, gb, pt).

## `language` (type: `string`):

Two-letter language code for airline names and display text (e.g. en, es, pt).

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Datacenter proxy is used by default with residential escalation on repeated blocks.

## `monitorKey` (type: `string`):

Turns on fare monitoring. Lowest fares are remembered under this name across runs on a schedule.

## `deliveryWebhookUrl` (type: `string`):

Optional Slack webhook URL or HTTPS endpoint. When a monitored run detects a price drop, a fare below target, or Google's price level turns low, it delivers an alert item. Charged as one alert per run that delivers one.

## `alertDropPercent` (type: `integer`):

Trigger an alert if the lowest price drops by at least this percentage compared to the last run (1 to 90%, default 10%).

## `alertBelowPrice` (type: `number`):

Trigger an alert if the lowest price is at or below this target price in the chosen currency.

## Actor input object example

```json
{
  "routes": [
    "LIS-LHR"
  ],
  "dateRangeDays": 1,
  "adults": 1,
  "cabin": "economy",
  "maxResultsPerSearch": 10,
  "cheapestOnly": false,
  "includeCheapestDateReport": true,
  "currency": "USD",
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "alertDropPercent": 10
}
```

# Actor output Schema

## `results` (type: `string`):

All rows: flight itineraries with pricing and CO2, route search price level and history, cheapest-date reports with buy/wait signals, and free summary and error rows.

## `stats` (type: `string`):

Requests, successes, rate limits, retries, session rotations and a summary of delivered rows and charges for this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "routes": [
        "LIS-LHR"
    ],
    "maxResultsPerSearch": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("brainfoods_studio/google-flights-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "routes": ["LIS-LHR"],
    "maxResultsPerSearch": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("brainfoods_studio/google-flights-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "routes": [
    "LIS-LHR"
  ],
  "maxResultsPerSearch": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call brainfoods_studio/google-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brainfoods_studio/google-flights-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/NTI0OddSLkaTZMLCA/builds/HmzhsRi1IitZfAwvg/openapi.json
