Google Flights (via Apify)

io.github.retracnv1.0.0Updated Oct 5, 2026

Google Flights for AI agents: prices, airlines, flight numbers, times, stops, emissions.

VerifiedStreamable HTTPWeb executableLocation & LifestyleWeb Search & Scraping

Overview

AI-generated overview

Lets an assistant look up Google Flights results for a route and date, returning prices, airlines, times, stops and emissions.

What it does
This remote MCP server exposes an Apify-hosted Google Flights scraper as a tool. Given an origin, destination and departure date, it returns one row per flight with price, airlines, flight numbers, departure and arrival times, duration, stops, layovers, aircraft, legroom and CO2 emissions versus typical. It supports one-way or round trips, cabins from economy to first, 1-9 adults, a nonstop filter, any currency, and airport codes or city names across many routes per run.
When to use it
Use it when an assistant needs current flight options and fares for a specific route and date, for example comparing itineraries, checking prices, or gathering airline and emissions details for travel planning.
Requirements
A remote MCP endpoint at mcp.apify.com with an Apify API token sent in the Authorization header as 'Bearer '. A free Apify account is needed to obtain the token, and usage is billed per flight returned.
Before you install
The Authorization header carries an Apify API token, so treat it as a secret and avoid exposing it in shared configs. Runs are billed at $0.20 per 1,000 flights, so repeated or broad searches spend money on the Apify account. Results come from scraping Google Flights rather than an official API, so accuracy and availability are not guaranteed.

Installation

In SourceWeft

  1. Open Google Flights (via Apify) in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "google-flights": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=automationnation/google-flights-scraper"
    }
  }
}

README

Google Flights Scraper & API: prices, airlines and times

[Run on Apify]

Google Flights Scraper is an Apify Actor that returns Google Flights results for any route and date: price, airlines, flight numbers, departure and arrival times, duration, stops and layovers, aircraft, legroom and CO2 emissions, one way or round trip, any cabin, passengers and currency, at $0.20 per 1,000 flights.

Price: $0.20 per 1,000 flights ($0.16 on Gold and above) · Run it: https://apify.com/automationnation/google-flights-scraper · Guide: https://retracn.github.io/automationnation-actors/google-flights-scraper/

Quick facts

  • One row per flight: price, airlines, flight numbers, times, duration, stops, layovers, legs with aircraft and legroom, CO2 vs typical.
  • One way or round trip, economy to first, 1–9 adults, nonstop filter, any currency.
  • Airport codes or city names; many routes per run.
  • Price: $0.20 per 1,000 flights (a search costs under a cent).

Example input

json
{  "origin": "JFK",  "destination": "LHR",  "departureDate": "2026-11-12"}

Run it from code

REST API

bash
curl -X POST "https://api.apify.com/v2/acts/automationnation~google-flights-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \  -H "Content-Type: application/json" \  -d '{"origin": "JFK", "destination": "LHR", "departureDate": "2026-11-12"}'

Python — see examples/python_example.py

python
# pip install apify-clientfrom apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("automationnation/google-flights-scraper").call(run_input={  "origin": "JFK",  "destination": "LHR",  "departureDate": "2026-11-12"})for item in client.dataset(run["defaultDatasetId"]).iterate_items():    print(item.get("price"), item.get("airlines"), item.get("departure"), item.get("duration"))

JavaScript — see examples/node_example.mjs

js
// npm install apify-clientimport { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('automationnation/google-flights-scraper').call({  "origin": "JFK",  "destination": "LHR",  "departureDate": "2026-11-12"});const { items } = await client.dataset(run.defaultDatasetId).listItems();for (const item of items) console.log(item.price, item.airlines, item.departure, item.duration);

Use it with AI agents (MCP)

Hosted MCP server URL (Claude, ChatGPT, Cursor and other clients with remote MCP support):

https://mcp.apify.com?tools=automationnation/google-flights-scraper

Local config for Claude Desktop / Cursor — mcp/claude_desktop_config.json:

json
{  "mcpServers": {    "google-flights-scraper": {      "command": "npx",      "args": [        "-y",        "@apify/actors-mcp-server",        "--tools",        "automationnation/google-flights-scraper"      ],      "env": {        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"      }    }  }}

FAQ

Is there an official Google Flights API? No. Google shut down its QPX Express flights API in 2018. Google Flights Scraper returns Google Flights results as data.

Are prices per person? Prices include taxes and cover all passengers; round trips show the round-trip total.

More from AutomationNation


This repository holds usage examples. The scraper itself runs on the Apify platform; you need a free Apify account and API token. Examples are MIT licensed.

Source: README.md at commit 00b8766

Tools

0
Tool metadata has not been indexed yet.

Version history

1
  1. v1.0.0LatestOct 5, 2026