Google Flights (via Apify)
io.github.retracnv1.0.0更新於 Oct 5, 2026
Google Flights for AI agents: prices, airlines, flight numbers, times, stops, emissions.
概覽
讓助理依航線與日期查詢 Google Flights 結果,回傳價格、航空公司、時間、轉機與排放資訊。
- 功能
- 這個遠端 MCP 伺服器把託管在 Apify 上的 Google Flights 擷取器當作工具提供。給定出發地、目的地與出發日期後,它會依航班回傳一列資料,包含價格、航空公司、航班編號、出發與抵達時間、時長、轉機、中停、機型、腿部空間,以及與典型值相比的二氧化碳排放。它支援單程或來回、從經濟艙到頭等艙、1-9 位成人、直飛篩選、任意貨幣,並可在一次執行中處理多條航線,接受機場代碼或城市名稱。
- 適用情境
- 當助理需要特定航線與日期的當前航班選項與票價時使用,例如比較行程、查詢價格,或為旅遊規劃蒐集航空公司與排放資訊。
- 執行需求
- 遠端 MCP 端點 mcp.apify.com,需要在 Authorization 標頭中以 'Bearer ' 形式提供 Apify API 權杖。需要免費的 Apify 帳戶來取得權杖,並依回傳的航班數量計費。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google Flights (via Apify),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"google-flights": {
"type": "http",
"url": "https://mcp.apify.com/?tools=automationnation/google-flights-scraper"
}
}
}README
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).
Example input
Run it from code
REST API
Python — see examples/python_example.py
JavaScript — see examples/node_example.mjs
Use it with AI agents (MCP)
Hosted MCP server URL (Claude, ChatGPT, Cursor and other clients with remote MCP support):
Local config for Claude Desktop / Cursor — mcp/claude_desktop_config.json:
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
- 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 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) · 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.
來源:README.md,提交 00b8766
工具
0版本歷史
1- v1.0.0最新Oct 5, 2026
