# Google Flights Cheap Dates Scraper: Flight Prices Calendar (`scrapewise/google-flights-cheap-dates`) Actor

Scrape flight prices from Google Flights for the cheapest dates to fly: airfare for every departure date up to 10 months ahead, several trip lengths at once, weekday filters, the cheapest date of each month, price vs the route median and price drop alerts. No login.

- **URL**: https://apify.com/scrapewise/google-flights-cheap-dates.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Travel, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.15 / 1,000 date price delivereds

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

## Google Flights Cheap Dates Scraper: Flight Prices Calendar

Find the cheapest days to fly on any route. This Actor scrapes Google Flights airfare for every departure date up to about 10 months ahead and tells you which dates are cheap: several trip lengths in one run (for example 5, 6 and 7 days), only the weekdays you can travel, the cheapest date of each month, how far below the route's typical price each date is, and alerts when a fare drops below your target or below the previous run.

### Cheap flight dates at a glance

- **US$ 0.20 per 1,000 dates** on the Free plan, plus US$ 0.001 per run. A route with 120 days and 3 trip lengths is about 360 dates, so about US$ 0.07.
- Route summaries and error rows are free. Dates filtered out by weekday, by your target price or by the previous run are checked and never charged.
- One way or round trip, 1 to 9 adults, children, economy to first class, nonstop or up to 2 stops, any currency and country.
- Every row links to the Google Flights search of that exact date, so you can book in one click.

### Quick start

Cheapest 5 to 7 day trips from Seattle to Honolulu, leaving on a Friday or Saturday:

```json
{
  "origins": ["SEA"],
  "destinations": ["HNL"],
  "tripLengths": ["5-7"],
  "searchDays": 120,
  "departureWeekdays": ["fri", "sat"],
  "maxDatesPerRoute": 10
}
```

Weekend getaways from London to three cities, cheapest date of each month only:

```json
{
  "origins": ["LON"],
  "destinations": ["LIS", "BCN", "ATH"],
  "tripLengths": ["2-3"],
  "departureWeekdays": ["fri"],
  "returnWeekdays": ["sun"],
  "searchDays": 300,
  "onlyCheapestPerMonth": true,
  "currency": "GBP",
  "country": "gb"
}
```

A daily price alert: schedule this every morning and you only pay when a date gets cheaper than in the previous run, or drops under US$ 900:

```json
{
  "origins": ["NYC"],
  "destinations": ["TYO"],
  "tripLengths": ["10-14"],
  "searchDays": 200,
  "alertBelowPrice": 900,
  "onlyPriceDrops": true
}
```

### What you can do with cheap flight date data

- **Plan a trip around the price:** see at a glance which week of which month is cheapest for the trip length you want.
- **Weekend trip finder:** depart Friday, return Sunday, across many destinations, sorted by price.
- **Fare alerts:** schedule the Actor and get only the dates that dropped, ready for an email, Slack or a Google Sheet.
- **Travel content and deals sites:** cheapest month per route, price vs the typical price, with booking links.
- **Pricing research:** how airfare on a route moves with season, weekday and trip length.

### Input

| Field | What it does |
|---|---|
| `origins`, `destinations` | 3-letter airport or city codes (SEA, NYC, LON, HNL). Every origin is combined with every destination |
| `tripLengths` | Days between departure and return: `7`, a range `5-9`, or `0` for one way. Up to 15 lengths |
| `dateFrom` | First departure date, `YYYY-MM-DD` or days from today (default tomorrow) |
| `searchDays` | How many departure dates to price, 7 to 324 (default 120) |
| `departureWeekdays`, `returnWeekdays` | Keep only these weekdays (mon to sun) |
| `adults`, `children`, `cabinClass`, `maxStops` | Passengers, cabin and stops. Prices are the total for all passengers |
| `onlyCheapestPerMonth` | One row per route and month: the cheapest date of that month |
| `sortBy`, `maxDatesPerRoute` | `price` (cheapest first, default) or `date`; how many dates per route (default 60) |
| `currency`, `country`, `language` | USD, EUR, GBP, BRL...; the Google Flights site country; names language |
| `alertBelowPrice` | Deliver only dates under this total price |
| `onlyPriceDrops` | Deliver only dates cheaper than in the previous run of the same search |
| `compareWithPreviousRun` | Add the previous price and the change to every row, without filtering |

### Output fields

**Date rows (`type: "date_price"`, charged):**

| Field | Example |
|---|---|
| `route`, `origin`, `destination` | `SEA-HNL`, `SEA`, `HNL` |
| `departureDate`, `departureWeekday` | `2026-11-27`, `Fri` |
| `returnDate`, `returnWeekday` | `2026-12-02`, `Wed` |
| `tripLengthDays`, `tripType` | `5`, `round_trip` |
| `price`, `currency` | `544`, `USD` (total for all passengers) |
| `pctBelowRouteMedian` | `31` (31% cheaper than the median date of this route in the run) |
| `isCheapestInMonth`, `isCheapestForRoute` | `true`, `false` |
| `cabinClass`, `adults`, `children` | `economy`, `1`, `0` |
| `googleFlightsUrl` | Google Flights search for that date and return |
| `alertReason` | `below_target`, `price_drop`, `new_cheaper_date` or `first_run` when alerts are on |
| `previousPrice`, `priceChange`, `priceChangePct`, `isNew`, `lowestSeenPrice` | With `compareWithPreviousRun` or `onlyPriceDrops` |

**Route summary (`type: "route_summary"`, free):** `datesChecked`, `datesMatching`, `datesDelivered`, `medianPrice`, `cheapestPrice`, `cheapestDepartureDate`, `cheapestReturnDate`, `cheapestTripLengthDays`, `cheapestByMonth` (month, price, dates) and the Google Flights link of the cheapest date.

#### Example

Run on 2026-11-15, Seattle to Honolulu, 5 day round trip, 1 adult, economy:

```json
{
  "type": "date_price",
  "route": "SEA-HNL",
  "departureDate": "2026-11-27",
  "departureWeekday": "Fri",
  "returnDate": "2026-12-02",
  "tripLengthDays": 5,
  "price": 544,
  "currency": "USD",
  "isCheapestInMonth": true
}
```

In the same run the five days before it cost 769 to 850 USD (22 to 26 November), so moving the trip by one or two days saved about 30%.

### Price alerts and scheduling

1. Save your input as a task and add a schedule (daily or twice a day).
2. Turn on `onlyPriceDrops`, `alertBelowPrice`, or both. With both on, a date is delivered when it is under your target and cheaper than before.
3. The first run of a search is the baseline and delivers every date. Later runs deliver only drops, plus new dates (the window moves with today) that are cheaper than anything seen in the previous run.
4. When nothing passes, you get one free `NO_PRICE_ALERT` row with the cheapest price seen, so your workflow knows the check ran.

The price history is kept in a key-value store in your own Apify account, one record per search, for 90 days.

### Errors (never charged)

| Code | When |
|---|---|
| `INVALID_AIRPORT` | Google Flights does not know one of the codes |
| `INVALID_TRIP_LENGTH`, `INVALID_DATE`, `DATE_TOO_FAR`, `INVALID_INPUT` | A value in the input could not be used; the rest of the input still runs |
| `NO_DATES` | No priced dates for this route and these trip lengths |
| `NO_DATES_MATCH` | Dates were priced, none on the weekdays you chose |
| `PARTIAL_DATES` | Some date windows came back without prices; the rest of the route is delivered. Run again to fill them |
| `NO_PRICE_ALERT` | Alerts on and no date passed |
| `NO_PRICE_CHANGES` | `onlyChanged` on and nothing changed |
| `BLOCKED`, `NOT_REACHED` | The site did not answer, or the run timeout came first; run again |

### Integrations, scheduling and AI agents

- **Schedules:** run daily for alerts; each run compares with the previous one.
- **Export:** JSON, CSV, Excel or a direct API link to the dataset.
- **Make, n8n, Zapier, Google Sheets, Slack:** send new cheap dates to a sheet or a channel with the Apify integrations.
- **API:** start a run with your input and read the dataset from any language.
- **AI agents:** the Actor works through the Apify MCP server, so an assistant can answer "when is it cheapest to fly from Seattle to Honolulu for a week?" with live prices.

#### Questions an AI agent can answer with this Actor

| Question | Input |
|---|---|
| "When is it cheapest to fly Seattle to Honolulu for about a week?" | `{"origins": ["SEA"], "destinations": ["HNL"], "tripLengths": ["6-8"], "maxDatesPerRoute": 5}` |
| "Cheapest weekend in Lisbon or Barcelona from London this winter, Friday to Sunday" | `{"origins": ["LON"], "destinations": ["LIS", "BCN"], "tripLengths": ["2"], "departureWeekdays": ["fri"], "returnWeekdays": ["sun"], "searchDays": 150}` |
| "Cheapest month to go from New York to Tokyo for two weeks" | `{"origins": ["NYC"], "destinations": ["TYO"], "tripLengths": ["14"], "searchDays": 300, "onlyCheapestPerMonth": true}` |
| "Any one-way under $100 from Chicago to Denver in the next 60 days?" | `{"origins": ["CHI"], "destinations": ["DEN"], "tripLengths": ["0"], "searchDays": 60, "alertBelowPrice": 100}` |

`route_summary` rows (free) give the cheapest date and the cheapest date of each month in one line per route.

### FAQ

**Is the price per person?** No, it is the total for all passengers in the input, as on Google Flights.

**Does the date price include the return?** Yes. For round trips the price is the cheapest total for that departure date and that trip length.

**Why does a booking link sometimes show a slightly different price?** Fares change during the day. The link opens Google Flights for the same date and passengers; the cheapest flight there is the date price at the time of the run.

**Can I search many routes?** Yes. Every origin is combined with every destination, and each route gets its own summary.

**How far ahead can I search?** About 324 days, the end of Google's own date grid.

**Do I need a Google account?** No. Only public prices are read.

### Limitations

- One price per date and trip length: the cheapest fare Google shows for it. For every flight on one date, with flight numbers and times, use a flight search scraper.
- City codes (NYC, LON, TYO) cover all airports of the city.
- Prices are what Google Flights shows at the time of the run and can change minutes later.

### Changelog

- **15 Nov 2026, 0.1:** first release. Several trip lengths per run, weekday filters, cheapest date of each month, price vs the route median, route summaries, alerts below a target and price drops between runs.

# Actor input Schema

## `origins` (type: `array`):

3-letter airport or city codes, for example SEA, NYC or LON. Every origin is combined with every destination.

## `destinations` (type: `array`):

3-letter airport or city codes, for example HNL, CUN or LIS.

## `tripLengths` (type: `array`):

How many days between departure and return. One value per line: a number (7), a range (5-9) or 0 for one way. Up to 15 lengths; each date is priced for each length.

## `dateFrom` (type: `string`):

YYYY-MM-DD, or a number of days from today (default 1 = tomorrow).

## `searchDays` (type: `integer`):

How many departure dates to price, starting at the first departure date. Up to 324 (about 10 months ahead).

## `departureWeekdays` (type: `array`):

Keep only departures on these weekdays, for example Friday for weekend trips. Empty = any day.

## `returnWeekdays` (type: `array`):

Keep only returns on these weekdays, for example Sunday. Empty = any day.

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

Prices are the total for all passengers.

## `children` (type: `integer`):

Children aged 2 to 11.

## `cabinClass` (type: `string`):

Cabin class to price.

## `maxStops` (type: `string`):

Maximum stops on each way.

## `onlyCheapestPerMonth` (type: `boolean`):

On: one row per route and month, the cheapest date of that month. Off (default): every priced date.

## `sortBy` (type: `string`):

Order of the date rows.

## `maxDatesPerRoute` (type: `integer`):

Maximum date rows per route, after filters and sorting. With 'Cheapest first' and 10 you get the 10 cheapest dates.

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

ISO code: USD, EUR, GBP, BRL, JPY...

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

Two-letter country of the Google Flights site, for example us, gb, br.

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

Language code, for example en, es, pt-BR.

## `alertBelowPrice` (type: `integer`):

Deliver only dates cheaper than this total price, in your currency. Dates at or above it are checked and not charged.

## `onlyPriceDrops` (type: `boolean`):

For scheduled runs: deliver only dates that got cheaper than in the previous run of the same search (the first run is the baseline). Rows carry previousPrice and priceChange.

## `compareWithPreviousRun` (type: `boolean`):

Add previousPrice, priceChange, isNew and lowestSeenPrice to every row, without filtering.

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

The default works.

## Actor input object example

```json
{
  "origins": [
    "SEA"
  ],
  "destinations": [
    "HNL"
  ],
  "tripLengths": [
    "5-7"
  ],
  "dateFrom": "1",
  "searchDays": 120,
  "adults": 1,
  "children": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "onlyCheapestPerMonth": false,
  "sortBy": "price",
  "maxDatesPerRoute": 60,
  "currency": "USD",
  "country": "us",
  "language": "en",
  "onlyPriceDrops": false,
  "compareWithPreviousRun": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

# 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 = {
    "origins": [
        "SEA"
    ],
    "destinations": [
        "HNL"
    ],
    "tripLengths": [
        "5-7"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/google-flights-cheap-dates").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 = {
    "origins": ["SEA"],
    "destinations": ["HNL"],
    "tripLengths": ["5-7"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/google-flights-cheap-dates").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 '{
  "origins": [
    "SEA"
  ],
  "destinations": [
    "HNL"
  ],
  "tripLengths": [
    "5-7"
  ]
}' |
apify call scrapewise/google-flights-cheap-dates --silent --output-dataset

```

## MCP server setup

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

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/ZEyQAPtHbMWYLqLov/builds/l80ohc6zPDf8L7ZOn/openapi.json
