Google Flights (via Apify)
Google Flights for AI agents: prices, airlines, flight numbers, times, stops, emissions.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
claude mcp add --transport http google-flights-via-apify 'https://mcp.apify.com/?tools=automationnation/google-flights-scraper' --header 'Authorization: <Your Apify API token, sent as '\''Bearer <token>'\''. Get it at https://console.apify.com/settings/integrations (free account).>'
{
"mcpServers": {
"google-flights-via-apify": {
"type": "http",
"url": "https://mcp.apify.com/?tools=automationnation/google-flights-scraper",
"headers": {
"Authorization": "<Your Apify API token, sent as 'Bearer <token>'. Get it at https://console.apify.com/settings/integrations (free account).>"
}
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
Google Flights Scraper & API: prices, airlines and times
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).
- Migrating from the Amadeus Self-Service API? The open-source amadeus-cloud package (github.com/retracn/amadeus-cloud) keeps the Amadeus Node SDK's flightOffersSearch.get/post and returns Amadeus-shaped offers from this Actor.
- Fare alerts: with Only fare drops on, a scheduled run saves a route's flights only when its cheapest fare is lower than on the previous run, with that previous price on every row; Max price adds a threshold such as "under $900".
Example input
{
"origin": "JFK",
"destination": "LHR",
"departureDate": "2026-11-12"
}
Flight price alerts (fare drops)
Schedule a search with "onlyPriceDrops": true: each run saves the route's flights only when its cheapest fare is lower than on the previous run, with previousCheapestPrice on every row. Add "maxPrice": 900 for a threshold alert. The first run saves everything (change: "first_check"); a run with no drop saves nothing.
{ "origin": "JFK", "destination": "LHR", "departureDate": "2026-12-18", "returnDate": "2027-01-03", "maxPrice": 900, "onlyPriceDrops": true }
Ready-made: n8n workflow: fare drops to Slack · guide: flight price alerts by API · public task: New York to London fare alert
Run it from code
REST API
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
# pip install apify-client
from 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
// npm install apify-client
import { 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:
{
"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.
Can it send me flight price alerts? Yes. Schedule a search with Only fare drops on: each run saves flights only when the cheapest fare drops, with the previous price, and the task's Integrations tab sends them to Slack, email or a webhook. A run with no drop saves nothing.
More from AutomationNation
- AI Visibility Tracker — $0.05 per answer checked ($0.04 on Gold) + $0.50 per optional report · GitHub examples
- Google Jobs Scraper — $2 per 1,000 jobs ($1.50 on paid plans) + $0.03 per search · GitHub examples
- YouTube Transcript Scraper — $1.50 per 1,000 transcripts ($1.20 on Gold and above) · GitHub examples
- Google Shopping Scraper — $1 per 1,000 products ($0.80 on Gold and above) · GitHub examples
- Google Hotels Scraper — $1 per 1,000 hotels ($0.80 on Gold and above) · GitHub examples
- Google Ads Transparency Scraper — $1 per 1,000 ads ($0.80 on Gold and above) · GitHub examples
- Google News Scraper — $1 per 1,000 articles ($0.80 on Gold and above) · GitHub examples
- Google Images Scraper — $0.25 per 1,000 images ($0.20 on Gold and above) · GitHub examples
- Google Custom Search API Alternative — $5 per 1,000 searches of up to 10 results ($4 on Gold and above) · GitHub examples
- Google Videos Scraper — $1 per 1,000 videos ($0.80 on Gold and above) · GitHub examples
- Google Trends Scraper — $1 per 1,000 keyword reports ($0.27–$0.90 on paid plans) · $0.50 per 1,000 trending searches · GitHub examples
- App Store Reviews Scraper — $0.08 per 1,000 reviews ($0.05–$0.07 on paid plans) · GitHub examples
- Google Play Reviews Scraper — $0.08 per 1,000 reviews ($0.05–$0.07 on paid plans) · GitHub examples
- AEO & GEO Tracker — Google AI Overview Citation Checker — $0.04 per keyword ($0.032 on Gold), plus $2 per run from 17 Nov 2026; $0.01 per keyword until 16 Oct 2026 · GitHub examples
- Google Maps Leads Scraper — $0.03 per lead ($0.024 on Gold); $0.08 per business found with the no-website or unclaimed filters · GitHub examples
- Google Maps Leads Scraper UK — $0.05 per lead ($0.04 on Gold) · GitHub examples
- App Store & Google Play Reviews Scraper + AI — $0.05 per app report ($0.04 on Gold) · GitHub examples
- UK Companies House Leads — Filing Signals & AI Outreach — $0.008 per lead
- Contact Waterfall Enrichment — Emails & Directors — $0.015 per company
- All Actors and guides · AI visibility trackers compared · Google Jobs scrapers compared · Google Trends scrapers compared · App Store review scrapers compared · Google Play review scrapers compared · YouTube transcript scrapers compared · Google Flights scrapers compared · Google Hotels scrapers compared · Google Ads Transparency scrapers compared · Google Shopping scrapers compared · Google News scrapers compared
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.
Questions fréquentes
Qu'est-ce que Google Flights (via Apify) ?
Google Flights for AI agents: prices, airlines, flight numbers, times, stops, emissions.
Comment installer Google Flights (via Apify) ?
Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http google-flights-via-apify 'https://mcp.apify.com/?tools=automationnation/google-flights-scraper' --header 'Authorization: <Your Apify API token, sent as '\''Bearer <token>'\''. Get it at https://console.apify.com/settings/integrations (free account).>'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Google Flights (via Apify) ?
Oui. Il attend Authorization, à renseigner dans sa configuration.
Google Flights (via Apify) est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Google Flights (via Apify) ?
Il est publié par retracn. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.