# Google Flights Scraper — Flight Prices, Schedules & Stops (`technicaldost/google-flights-scraper-prices`) Actor

Scrape Google Flights for any route and date: price, airlines, flight numbers, departure and arrival times, duration, stops, layovers, aircraft, legroom and CO2. One-way or round trip, cabin class, passengers, nonstop and airline filters. $1 per 1,000 flights.

- **URL**: https://apify.com/technicaldost/google-flights-scraper-prices.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** Travel, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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.

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 gets **flight prices and schedules from Google Flights** for any **origin, destination and date**, without an API key. Each result includes the **price, airlines, flight numbers, departure and arrival times, total duration, number of stops, layover airports and waiting times, aircraft, legroom and CO2 emissions vs. typical**, plus whether Google ranks it among the **best flights**. Search **one-way or round trip**, in **economy, premium economy, business or first**, for **up to 9 adults plus children and infants**, with **nonstop and airline filters** and prices in **any currency**. Use relative dates like `+30` so scheduled runs always search ahead.

### What you get

- Many routes at once: every origin x destination x date combination (up to 200 searches per run).
- Airport or city codes (JFK, NYC, LON), exact dates or relative dates (+7, +30).
- One-way or round trip (round-trip total price for each outbound option).
- Cabin class, adults, children, infants, max stops (nonstop, 1, 2) and preferred airlines.
- Full itinerary: every leg with flight number, aircraft and legroom; layovers with waiting time and airport changes.
- CO2 emissions per flight and vs. the typical flight on the route; prices in 40+ currencies.

### How to use Google Flights Scraper

1. Enter **Origins** and **Destinations** as IATA codes (e.g. `JFK`, `LAX`; city codes like `NYC` or `LON` work too).
2. Enter **Departure dates** (`2026-12-15` or `+30` for 30 days from today) and optionally a **Return date**.
3. Set cabin class, passengers, max stops, airlines and currency.
4. Run and export to JSON, CSV or Excel, or schedule daily runs to track fares and send them to Google Sheets, Slack or an AI agent.

### Input example

```json
{
  "origins": [
    "JFK",
    "EWR"
  ],
  "destinations": [
    "LAX",
    "SFO"
  ],
  "departureDates": [
    "+30",
    "+31"
  ],
  "maxStops": "0",
  "currency": "USD"
}
```

All fields are described in the **Input** tab.

### Output example

```json
{
  "origin": "BOS",
  "destination": "HNL",
  "departureDate": "2026-12-10",
  "returnDate": null,
  "tripType": "one_way",
  "isBest": true,
  "price": 333,
  "airlines": [
    "Delta"
  ],
  "airlineCodes": [
    "DL"
  ],
  "flightNumbers": [
    "DL 479",
    "DL 465"
  ],
  "from": "BOS",
  "to": "HNL",
  "departure": "2026-12-10T07:45",
  "arrival": "2026-12-10T17:51",
  "durationMinutes": 906,
  "stops": 1,
  "layovers": [
    {
      "airport": "LAX",
      "airportName": "Los Angeles International Airport",
      "durationMinutes": 148,
      "changeOfAirport": false
    }
  ],
  "emissionsKg": 652,
  "typicalEmissionsKg": 603,
  "emissionsVsTypicalPercent": 8,
  "legs": [
    {
      "flightNumber": "DL 479",
      "airline": "Delta",
      "from": "BOS",
      "fromName": "Boston Logan International Airport",
      "to": "LAX",
      "toName": "Los Angeles International Airport",
      "departure": "2026-12-10T07:45",
      "arrival": "2026-12-10T11:27",
      "durationMinutes": 402,
      "aircraft": "Boeing 757",
      "legroom": "31 inches"
    },
    {
      "flightNumber": "DL 465",
      "airline": "Delta",
      "from": "LAX",
      "fromName": "Los Angeles International Airport",
      "to": "HNL",
      "toName": "Daniel K. Inouye International Airport",
      "departure": "2026-12-10T13:55",
      "arrival": "2026-12-10T17:51",
      "durationMinutes": 356,
      "aircraft": "Airbus A330-900neo",
      "legroom": "31 inches"
    }
  ],
  "currency": "USD",
  "cabinClass": "economy",
  "passengers": 1,
  "searchUrl": "https://www.google.com/travel/flights/search?tfs=...&hl=en&gl=us&curr=USD",
  "scrapedAt": "2026-10-26T21:50:00.000Z"
}
```

#### Output fields

| Field | Description |
|---|---|
| `origin` | Searched origin code. |
| `destination` | Searched destination code. |
| `departureDate` | Searched departure date. |
| `returnDate` | Return date (round trips). |
| `tripType` | one_way or round_trip. |
| `isBest` | Listed by Google among the best flights. |
| `price` | Price for all passengers (round-trip total for round trips). |
| `airlines` | Airlines. |
| `airlineCodes` | Airline codes. |
| `flightNumbers` | Flight numbers of all legs. |
| `from` | Departure airport. |
| `to` | Arrival airport. |
| `departure` | Local departure time. |
| `arrival` | Local arrival time. |
| `durationMinutes` | Total travel time, minutes. |
| `stops` | Number of stops. |
| `layovers` | Layovers: airport, minutes, change of airport. |
| `emissionsKg` | CO2 estimate, kg. |
| `typicalEmissionsKg` | Typical CO2 on this route, kg. |
| `emissionsVsTypicalPercent` | CO2 vs typical, %. |
| `legs` | Each leg: flight number, airports, times, duration, aircraft, legroom. |
| `currency` | Currency. |
| `cabinClass` | Cabin class. |
| `passengers` | Number of passengers. |
| `searchUrl` | Google Flights URL of this search. |
| `scrapedAt` | When the row was scraped. |

Export results as JSON, CSV, Excel, XML or HTML, or read them with the API.

### Use cases

- Fare tracking and price alerts: schedule daily runs with relative dates and watch prices change.
- Travel agencies and deal sites: compare routes, airlines and dates in bulk.
- Corporate travel: find the cheapest nonstop options for frequent routes.
- Market and airline research: schedules, competition and pricing per route.
- Sustainability reporting: CO2 per flight vs. typical.

### How much does Google Flights Scraper cost?

This Actor uses **pay-per-event** pricing: **$0.001 per flight** ($1 per 1,000). Platform usage is included. There is no start fee. Searches with no flights, invalid codes or past dates cost nothing.

Set **Maximum cost per run** in the run options to cap your spend; the Actor stops when the limit is reached.

### Use Google Flights Scraper with AI agents (MCP)

Give Claude, ChatGPT, Cursor or any MCP client this Actor as a tool through the hosted [Apify MCP server](https://mcp.apify.com):

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=technicaldost/google-flights-scraper-prices" --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Or in a JSON MCP config:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=technicaldost/google-flights-scraper-prices",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

The tool is named `technicaldost--google-flights-scraper-prices`. Ask your agent, for example, to *"run Google Flights Scraper with {"origins": \["JFK", "EWR"], "destinations": \["LAX", "SFO"], "departureDates": \["+30", "+31"], "maxStops": "0", "currency": "USD"}"*.

### Run Google Flights Scraper via API

```bash
curl -X POST "https://api.apify.com/v2/acts/technicaldost~google-flights-scraper-prices/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"origins": ["JFK", "EWR"], "destinations": ["LAX", "SFO"], "departureDates": ["+30", "+31"], "maxStops": "0", "currency": "USD"}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("technicaldost/google-flights-scraper-prices").call(run_input={"origins": ["JFK", "EWR"], "destinations": ["LAX", "SFO"], "departureDates": ["+30", "+31"], "maxStops": "0", "currency": "USD"})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('technicaldost/google-flights-scraper-prices').call({"origins": ["JFK", "EWR"], "destinations": ["LAX", "SFO"], "departureDates": ["+30", "+31"], "maxStops": "0", "currency": "USD"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Integrations

Schedule runs (daily, hourly) in Apify Console and send results to Google Sheets, Slack, Make, Zapier, n8n, Airbyte or your own webhook.

### FAQ

#### Do I need a Google account or API key?

No. The Actor reads the public Google Flights results page.

#### Are prices the same as on Google Flights?

Yes, they are the prices Google Flights shows a US visitor for the chosen currency at run time. Prices change often; schedule runs to track them.

#### How do round trips work?

With a Return date, Google prices round trips: each result is an outbound flight with the cheapest round-trip total. Return-flight details need a second selection on Google and are not included.

#### How many flights per search?

Google's results page lists the best flights plus other options, usually 10-100 per route and date. maxFlightsPerSearch caps the number.

#### Which times zone are the times in?

Departure and arrival times are local times at each airport, as on Google Flights.

#### Can I search flexible dates?

Add several departure dates (e.g. +28, +29, +30, +31) and compare the cheapest per date.

#### Is it legal to scrape this data?

The Actor collects publicly available information only and does not log in or bypass access controls. Use the data in line with the website's terms and the laws that apply to you, especially when processing personal data.

### Related Actors

More tools from the same developer that work well together with this one:

- [Event Ticket Price Monitor](https://apify.com/technicaldost/event-ticket-price-monitor): Track ticket prices and availability for events.
- [Currency Exchange Rates](https://apify.com/technicaldost/currency-exchange-rates): Get current and historical currency exchange rates for 150+ currencies.
- [Uber Eats Scraper — Restaurants, Menus, Prices & Ratings](https://apify.com/technicaldost/uber-eats-scraper-restaurants-menus): Scrape Uber Eats restaurants for any delivery address: search by food or list all stores nearby, or paste store URLs.
- [Google Maps Business Scraper](https://apify.com/technicaldost/google-maps-business-scraper): Find local businesses by search term, such as "dentist in Chicago": name, address, phone, website, email, opening hours and coordinates.

# Actor input Schema

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

IATA airport or city codes, e.g. JFK, EWR, NYC.

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

IATA airport or city codes, e.g. LAX, LHR, LON.

## `departureDates` (type: `array`):

YYYY-MM-DD, or +N for N days from the run date (stays valid in scheduled runs).

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

Optional, for round trips. YYYY-MM-DD or +N days from today.

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

Seat class.

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

1-9.

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

Ages 2-11.

## `infantsInSeat` (type: `integer`):

Under 2, own seat.

## `infantsOnLap` (type: `integer`):

Under 2, on lap.

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

Limit connections.

## `airlines` (type: `array`):

Optional 2-letter airline codes, e.g. UA, DL, BA.

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

ISO code, e.g. USD, EUR, GBP, INR.

## `maxFlightsPerSearch` (type: `integer`):

Per route and date. Up to 200.

## Actor input object example

```json
{
  "origins": [
    "JFK"
  ],
  "destinations": [
    "LAX"
  ],
  "departureDates": [
    "+30"
  ],
  "cabinClass": "economy",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "maxStops": "any",
  "currency": "USD",
  "maxFlightsPerSearch": 10
}
```

# 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 = {
    "origins": [
        "JFK"
    ],
    "destinations": [
        "LAX"
    ],
    "departureDates": [
        "+30"
    ],
    "maxFlightsPerSearch": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/google-flights-scraper-prices").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"],
    "departureDates": ["+30"],
    "maxFlightsPerSearch": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("technicaldost/google-flights-scraper-prices").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"
  ],
  "departureDates": [
    "+30"
  ],
  "maxFlightsPerSearch": 10
}' |
apify call technicaldost/google-flights-scraper-prices --silent --output-dataset

```

## MCP server setup

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

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/ZhcHwlqzChEzv0VCz/builds/TquP7fSdvfiQposv3/openapi.json
