Google Flights (via Apify) について
Google Flights (via Apify) は、旅行者や旅行データのワークフロー向けにフライト検索結果を取得する Apify Actor です。旅程の詳細を返し、定期的な運賃下落の追跡にも対応します。
主な機能
- 01運賃と旅程の詳細
- 02片道・往復検索
- 03客室クラス・乗客数・通貨の指定
- 04条件付き運賃下落の追跡
活用シーン
- 01路線や旅行日程の比較
- 02定期検索で運賃下落を監視
MCP 対応
ホスト型の Apify MCP サーバーから、MCP クライアントがこの Actor のフライト検索ツールを利用できます。@apify/actors-mcp-server を使うローカル設定も案内されています。
設定
リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。
https://mcp.apify.com/?tools=automationnation/google-flights-scraperclaude mcp add --transport http retracn-google-flights https://mcp.apify.com/?tools=automationnation/google-flights-scraper{"mcpServers":{"retracn-google-flights":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-flights-scraper"}}}Cursor で開く{"servers":{"retracn-google-flights":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-flights-scraper"}}}VS Code で開く{"mcpServers":{"retracn-google-flights":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-flights-scraper"}}}{"mcpServers":{"retracn-google-flights":{"serverUrl":"https://mcp.apify.com/?tools=automationnation/google-flights-scraper"}}}コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。
https://mcp.apify.com/?tools=automationnation/google-flights-scraper認証が必要ツール
詳細
Google Flights スクレイパー&API:価格、航空会社、時刻
Google Flights Scraper は Apify Actor です。あらゆる路線と日付の Google Flights の検索結果を返します。価格、航空会社、便名、出発時刻と到着時刻、所要時間、経由地と乗り継ぎ、機材、座席の足元スペース、CO2 排出量、片道または往復、任意の座席クラス、乗客数、通貨に対応し、1,000 便あたり $0.20 で利用できます。
価格: 1,000 便あたり $0.20(Gold 以上では $0.16) · 実行: https://apify.com/automationnation/google-flights-scraper · ガイド: https://retracn.github.io/automationnation-actors/google-flights-scraper/
基本情報
- 1 便につき 1 行:価格、航空会社、便名、時刻、所要時間、経由地、乗り継ぎ、機材と足元スペースを含む各区間、標準値との比較による CO2 排出量。
- 片道または往復、エコノミーからファーストまで、成人 1~9 名、直行便フィルター、任意の通貨。
- 空港コードまたは都市名に対応し、1 回の実行で複数の路線を検索できます。
- 価格:1,000 便あたり $0.20(検索 1 回あたり 1 セント未満)。
- Amadeus Self-Service API から移行しますか?オープンソースの amadeus-cloud パッケージ(github.com/retracn/amadeus-cloud)は、Amadeus Node SDK の flightOffersSearch.get/post を維持し、この Actor から Amadeus 形式のオファーを返します。
- 運賃アラート:「運賃の値下がりのみ」をオンにすると、スケジュール実行では、最安運賃が前回の実行時より安い場合にのみ、その路線の便を保存します。各行には前回の価格が含まれます。「最高価格」を設定すると、「$900 未満」などのしきい値を指定できます。
入力例
{
"origin": "JFK",
"destination": "LHR",
"departureDate": "2026-11-12"
}
航空券の価格アラート(運賃の値下がり)
"onlyPriceDrops": true を指定して検索をスケジュールします。実行ごとに、最安運賃が前回の実行時より安い場合にのみ、その路線の便が保存され、各行に previousCheapestPrice が含まれます。しきい値アラートを設定するには、"maxPrice": 900 を追加します。初回の実行ではすべてが保存され(change: "first_check")、値下がりがない場合は何も保存されません。
{ "origin": "JFK", "destination": "LHR", "departureDate": "2026-12-18", "returnDate": "2027-01-03", "maxPrice": 900, "onlyPriceDrops": true }
すぐに使えるテンプレート:n8n ワークフロー:運賃の値下がりを Slack に通知 · ガイド:API による航空券の価格アラート · 公開タスク:ニューヨーク発ロンドン行きの運賃アラート
コードから実行する
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 — 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 — 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);
AI エージェント(MCP)で使用する
ホスト型 MCP サーバーの URL(Claude、ChatGPT、Cursor、およびリモート MCP に対応するその他のクライアント向け):
https://mcp.apify.com?tools=automationnation/google-flights-scraper
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"
}
}
}
}
よくある質問
Google Flights の公式 API はありますか? いいえ。Google は 2018 年に QPX Express flights API を終了しました。Google Flights Scraper は、Google Flights の検索結果をデータとして返します。
価格は 1 人あたりですか? 価格には税金が含まれ、すべての乗客を対象としています。往復の場合は往復の合計金額が表示されます。
航空券の価格アラートを送信できますか? はい。「運賃の値下がりのみ」をオンにして検索をスケジュールすると、最安運賃が下がった場合にのみ、前回の価格とともに便が保存されます。タスクの「Integrations」タブから、Slack、メール、または Webhook に通知を送信できます。値下がりがない場合は何も保存されません。
AutomationNation のその他のサービス
- AI Visibility Tracker — チェックした回答1件あたり $0.05(Goldでは $0.04)+オプションのレポート1件あたり $0.50 · GitHub のサンプル
- Google Jobs Scraper — 求人1,000件あたり $2(有料プランでは $1.50)+検索1回あたり $0.03 · GitHub のサンプル
- YouTube Transcript Scraper — 文字起こし1,000件あたり $1.50(Gold以上では $1.20) · GitHub のサンプル
- Google Shopping Scraper — 商品1,000件あたり $1(Gold以上では $0.80) · GitHub のサンプル
- Google Hotels Scraper — ホテル1,000件あたり $1(Gold以上では $0.80) · GitHub のサンプル
- Google Ads Transparency Scraper — 広告1,000件あたり $1(Gold以上では $0.80) · GitHub のサンプル
- Google News Scraper — 記事1,000件あたり $1(Gold以上では $0.80) · GitHub のサンプル
- Google Images Scraper — 画像1,000件あたり $0.25(Gold以上では $0.20) · GitHub のサンプル
- Google Custom Search API Alternative — 最大10件の結果を取得する検索1,000回あたり $5(Gold以上では $4) · GitHub のサンプル
- Google Videos Scraper — 動画1,000件あたり $1(Gold以上では $0.80) · GitHub のサンプル
- Google Trends Scraper — キーワードレポート1,000件あたり $1(有料プランでは $0.27–$0.90) · トレンド検索1,000件あたり $0.50 · GitHub のサンプル
- App Store Reviews Scraper — レビュー1,000件あたり $0.08(有料プランでは $0.05–$0.07) · GitHub のサンプル
- Google Play Reviews Scraper — レビュー1,000件あたり $0.08(有料プランでは $0.05–$0.07) · GitHub のサンプル
- AEO & GEO Tracker — Google AI Overview Citation Checker — キーワード1件あたり $0.04(Goldでは $0.032)、2026年11月17日から実行1回あたり $2を追加;2026年10月16日まではキーワード1件あたり $0.01 · GitHub のサンプル
- Google Maps Leads Scraper — リード1件あたり $0.03(Goldでは $0.024);ウェブサイトなし、または未登録のフィルターで見つかったビジネス1件あたり $0.08 · GitHub のサンプル
- Google Maps Leads Scraper UK — リード1件あたり $0.05(Goldでは $0.04) · GitHub のサンプル
- App Store & Google Play Reviews Scraper + AI — アプリレポート1件あたり $0.05(Goldでは $0.04) · GitHub のサンプル
- UK Companies House Leads — Filing Signals & AI Outreach — リード1件あたり $0.008
- Contact Waterfall Enrichment — Emails & Directors — 企業1社あたり $0.015
- すべてのActorsとガイド · AI可視性トラッカーの比較 · Google Jobsスクレイパーの比較 · Google Trendsスクレイパーの比較 · App Storeレビューのスクレイパーの比較 · Google Playレビューのスクレイパーの比較 · YouTube文字起こしスクレイパーの比較 · Google Flightsスクレイパーの比較 · Google Hotelsスクレイパーの比較 · Google Ads Transparencyスクレイパーの比較 · Google Shoppingスクレイパーの比較 · Google Newsスクレイパーの比較
このリポジトリには使用例が含まれています。スクレイパー自体はApify プラットフォーム上で実行されます。無料の Apify アカウントと API トークンが必要です。使用例は MIT ライセンスで提供されています。
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。