# Google Flights Price Calendar: cheapest fare per day, per route (`steadydata/google-flights-price-calendar`) Actor

The cheapest fare per departure day for a route over a date range, from Google Flights: one row per day with the lowest price, airline, stops and duration, so you see when it is cheap. Up to 100 routes, up to 60 days each. Pay per delivered day.

- **URL**: https://apify.com/steadydata/google-flights-price-calendar.md
- **Developed by:** [Steadydata Team](https://apify.com/steadydata) (community)
- **Categories:** Travel, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 day priceds

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 Price Calendar: cheapest fare per day, per route

The cheapest fare per departure day for a route over a date range, from Google Flights: one row per day with the lowest price, airline, stops and duration, so you see when it is cheap. Up to 100 routes, up to 60 days each. Pay per delivered day.

### Why this scraper

- **Only delivered results are charged.** Inputs that fail come back as clear error
  records at no cost.
- **Measured on a real route** (AMS to LHR, five days, 15 September 2026): five rows, one per
  day, each the cheapest of 135 to 145 itineraries on that day's page, for a platform cost
  of a hundredth of a cent for the whole run.
- **The cheap day, not the long list.** The other Google Flights actors in the Store return
  every itinerary for one date; this one answers "when is it cheap" with one row per
  departure day over a range, on the same tested route as `google-flights`.
- **Empty days cost nothing.** A day without any flight is not delivered as a row; every row
  of the route carries `daysWithoutFlights` so you know how many days were empty.

### Who this is for

Travel planning and fare research: pick the cheapest departure day for a route, compare
routes over the same weeks, feed a price alert, or build a fare calendar for a destination
page. Up to 100 routes per run, up to 60 days each, one-way or with a fixed trip length.

### Who this is not for

- **You need every itinerary, not the cheapest.** Use `google-flights` for the full list of
  one day; this actor keeps one row per day.
- **Ranges longer than 60 days.** The cap is 60 days per route per run; split longer ranges.
- **Flexible return dates.** `tripLengthDays` fixes the return a set number of days after
  each departure; it does not search all return dates.
- **Live booking or seat maps.** Not offered; `bookingUrl` opens the day on Google Flights.

### Input example

```json
{
    "routes": [
        "AMS LHR"
    ],
    "tripLengthDays": 0,
    "seatClass": "economy",
    "adults": 1,
    "currency": "EUR"
}
```

### Output fields

- `route`
- `departureDate`
- `returnDate`
- `price`
- `currency`
- `airlines`
- `stops`
- `durationMinutes`
- `departureTime`
- `arrivalTime`
- `flightNumbers`
- `optionsOnPage`
- `bookingUrl`

### Output example

```json
{
    "route": "AMS LHR",
    "departureDate": "2026-10-25",
    "returnDate": null,
    "price": 104,
    "currency": "EUR",
    "airlines": ["KLM"],
    "stops": 0,
    "durationMinutes": 85,
    "departureTime": "2026-10-25T07:00",
    "arrivalTime": "2026-10-25T07:25",
    "flightNumbers": ["KL1001"],
    "optionsOnPage": 145,
    "bookingUrl": "https://www.google.com/travel/flights?tfs=...",
    "daysWithoutFlights": 0,
    "status": "ok"
}
```

Error codes: `INVALID_ROUTE`, `INVALID_DATES` (past date, end before start, more than 60 days),
`NO_FLIGHTS` (no flight on any day of the range), `BLOCKED` (after retries). None is charged.

### Related actors from steadydata

- [google-flights](https://apify.com/steadydata/google-flights): every itinerary for the day you picked, not just the cheapest
- [google-hotels-city](https://apify.com/steadydata/google-hotels-city): the hotels at the destination: ratings, reviews, indicative price
- [google-trends-batch](https://apify.com/steadydata/google-trends-batch): when interest in a destination peaks

### Pricing

Pay per event: one `day-priced` event per delivered result. No charge for inputs
that fail, no separate platform-usage surcharge.

**Free Apify plan:** this actor delivers up to 25 rows per run for accounts on the Apify free
plan, and then stops with a message. That limit is set by us, not by Apify. It exists so the
actor keeps paying for itself for the people who do pay. Any paid Apify plan runs it at full
size, billed per delivered row, with failed rows never charged.

**Reviews:** if this actor saves you time, a short review on this page is the one thing that
helps most. Ratings are what other buyers look at first, and we have no other way to ask.

### FAQ

**How many pages does a route cost?** One page per day: a 30-day range is 30 pages and at most
30 charged rows. Days without flights are skipped and not charged.

**Which price is it?** The lowest price Google lists for that day's search, in the currency
you set, for the seat class and number of adults you set. `optionsOnPage` tells you how many
itineraries that day had.

**Can I do return trips?** Yes: set `tripLengthDays` to 7 and every departure day is priced
with a return seven days later; `returnDate` is filled on each row.

**Why is a day missing?** Google listed no flight for it (counted in `daysWithoutFlights`), or
Google blocked that request; blocked days are retried on a fresh exit before the route is
reported as blocked.

**Is personal data collected?** No. Fares, airlines and times only.

**Is personal data collected?**
No. Fares, airlines, flight numbers and times only.

**What happens when the source changes?**
Sources change from time to time; that is the nature of this work. The actor is
monitored daily and fixed fast, and while it is broken you are not charged, because
only delivered results cost anything.

# Changelog

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

# Actor input Schema

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

One per row, up to 100, as 'FROM TO' with IATA codes: AMS LHR, JFK LAX.

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

YYYY-MM-DD. Defaults to tomorrow.

## `dateTo` (type: `string`):

YYYY-MM-DD, at most 60 days after the first date. Defaults to 30 days after the first date.

## `tripLengthDays` (type: `integer`):

0 for one-way. Any other value searches a return flight that many days after each departure day.

## `seatClass` (type: `string`):

economy, premium, business or first.

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

1 to 9.

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

ISO code such as EUR, USD, GBP.

## Actor input object example

```json
{
  "routes": [
    "AMS LHR"
  ],
  "tripLengthDays": 0,
  "seatClass": "economy",
  "adults": 1,
  "currency": "EUR"
}
```

# Actor output Schema

## `results` (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 = {
    "routes": [
        "AMS LHR"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadydata/google-flights-price-calendar").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": ["AMS LHR"] }

# Run the Actor and wait for it to finish
run = client.actor("steadydata/google-flights-price-calendar").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": [
    "AMS LHR"
  ]
}' |
apify call steadydata/google-flights-price-calendar --silent --output-dataset

```

## MCP server setup

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

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/zwugeK4FZ7SC0Lju9/builds/F5QUZGERMU7hQ6PK4/openapi.json
