# Google Flights Scraper (`zaiq/google-flights-scraper`) Actor

Every flight Google Flights shows for a route and date: price, airlines, stops, times, airports, duration and each layover. One way or round trip, any cabin and currency, many routes and nearby dates in one run. No login, no API key. $0.08 per 1,000 flights.

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

## Pricing

from $0.06 / 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

## Google Flights Scraper API: flight prices, airlines, stops and layovers for any route and date

![Google Flights Scraper: Prices, Airlines, Stops & Layovers](https://api.apify.com/v2/key-value-stores/4VJNANhwKgqPpXtAi/records/hero-google-flights-scraper.jpg)

Get **every flight Google Flights shows** for a route and date, **with no login and no API key**: the **price**, **airlines**, **number of stops**, **departure and arrival times and airports**, **total duration** and **each layover**, plus Google's own view of whether **prices are low, typical or high**.

Search **one way or round trip**, in **any cabin and currency**, across **many routes** and **nearby dates** in one run. Built for **travel sites and newsletters**, **fare trackers**, **corporate travel teams**, **data teams** and **AI agents** that need live fares.

### What you get

| Field | What it holds |
|---|---|
| Flight rows | `origin`, `destination`, `tripType`, `price`, `priceText`, `currency`, `airline`, `airlines`, `stops`, `departureAirport`, `departureTime`, `departureDate`, `arrivalAirport`, `arrivalTime`, `arrivalDate`, `durationMinutes`, `layovers`, `resultRank`, `priceSignal`, `cabin`, `adults`, `searchUrl`, `fareNote` |

### What people use it for

- **Fare tracking:** run a route on a schedule and watch the price move
- **Cheapest day:** search nearby dates and sort by price
- **Travel content:** real fares for deal pages and newsletters
- **Route research:** which airlines fly a route, how often and how long it takes
- **Corporate travel:** price a list of routes for a trip or budget
- **AI agents:** live flight options inside any travel workflow

### How to use it

1. Enter **from** and **to**: airport codes or cities.
2. Pick the **dates**, cabin and currency.
3. Click **Start**.

### Input

| Field | Example | Notes |
|---|---|---|
| From | `JFK` | Airport codes or cities; every origin pairs with every destination |
| To | `LAX` | Airport codes or cities |
| Departure date | `2026-12-20` | Empty = 30 days from today |
| Return date | `2026-12-28` | Empty = one way |
| Nearby dates | `0` | Up to 3 days either side |
| Adults | `1` | Up to 9 |
| Cabin | Economy | Or premium, business, first |
| Currency | `USD` | Three-letter code |
| Most stops | `0` | Optional |
| Highest price | `500` | Optional |
| Flights per search | `30` | Up to 100 |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "tripType": "one way",
  "price": 129,
  "currency": "USD",
  "airline": "Sample Air",
  "stops": 0,
  "departureAirport": "John F. Kennedy International Airport",
  "departureTime": "8:15 AM",
  "departureDate": "2026-12-20",
  "arrivalAirport": "Los Angeles International Airport",
  "arrivalTime": "11:40 AM",
  "arrivalDate": "2026-12-20",
  "durationMinutes": 385,
  "resultRank": 1,
  "priceSignal": "typical",
  "cabin": "economy",
  "adults": 1
}
```

A record named `SUMMARY` in the run's key-value store says what each input returned, with any notes (for example an account that does not exist), what was charged and how much traffic the run used.

### Pricing

- **$0.00008 per flight** ($0.08 per 1,000)
- A search with no flights is free
- Apify's $0.00005 start charge counts towards your Maximum cost per run.
- Launch price. It may rise later; Apify emails every user 14 days before any price increase takes effect, and a rise can happen at most once a month.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| One route, one date (about 30 flights) | $0.0024 |
| One route, 7 nearby dates (about 200 flights) | $0.016 |
| 20 routes, one date (about 600 flights) | $0.048 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Use airport codes where you can: they are never ambiguous.
- Nearby dates of 3 show the cheapest day in a week.
- Schedule a daily run to build your own price history.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/google-flights-scraper").call(run_input={"origins": ["JFK"], "destinations": ["LAX"]})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/google-flights-scraper').call({"origins": ["JFK"], "destinations": ["LAX"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~google-flights-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"origins": ["JFK"], "destinations": ["LAX"]}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/google-flights-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "the cheapest nonstop flights from New York to Los Angeles next month". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Round-trip prices are Google's from-price for that outbound: the return is picked next on Google Flights.
- Fares change quickly: recheck before booking, including bags and fare rules.
- Prices are as shown signed out, and a search can differ by route and day in how many flights it shows.
- Apify's free plan: 5 flights a run.

### FAQ

**Do I need an account or API key?**

No.

**Is the price for all passengers?**

It is the price Google shows for your party. Check it on Google Flights before booking.

**Does a round trip include the return flight?**

You get the outbound options with Google's round-trip from-price. The return is chosen next on Google Flights.

**Which currencies?**

Any Google Flights offers: use the three-letter code.

**Can I search many routes?**

Yes, up to 50 route pairs a run.

### Related Actors from Zaiq

- [google-hotels-scraper](https://apify.com/zaiq/google-hotels-scraper): hotel prices for the same dates
- [airbnb-scraper](https://apify.com/zaiq/airbnb-scraper): stays at the destination
- [holiday-planner](https://apify.com/zaiq/holiday-planner): a whole trip planned and priced

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: google flights scraper, google flights api, flight prices, flight scraper, airfare data, cheap flights api, flight search api, fare tracker, airline prices, flight price tracker.

# Actor input Schema

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

Airport codes or cities, such as JFK or New York. Every origin is paired with every destination.

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

Airport codes or cities.

## `departureDate` (type: `string`):

Like 2026-12-20. Empty = 30 days from today.

## `returnDate` (type: `string`):

Optional. Like 2026-12-28. Empty = one way.

## `flexDays` (type: `integer`):

Also search this many days either side of the date, to find the cheapest day.

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

Passengers.

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

Cabin class.

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

Three-letter code: USD, EUR, GBP, ZAR...

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

Optional. 0 = nonstop only.

## `maxPrice` (type: `integer`):

Optional, in your currency.

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

The most for each route and date, in Google's order.

## Actor input object example

```json
{
  "origins": [
    "JFK"
  ],
  "destinations": [
    "LAX"
  ],
  "flexDays": 0,
  "adults": 1,
  "cabin": "economy",
  "currency": "USD",
  "maxResultsPerSearch": 30
}
```

# Actor output Schema

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

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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": [
        "JFK"
    ],
    "destinations": [
        "LAX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/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 = {
    "origins": ["JFK"],
    "destinations": ["LAX"],
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/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 '{
  "origins": [
    "JFK"
  ],
  "destinations": [
    "LAX"
  ]
}' |
apify call zaiq/google-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zaiq/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/El6exHlrvqApuHcGu/builds/UN6ailxYQ0JEPEPq3/openapi.json
