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


