mcpField
G
Google Flights (via Apify)

Google Flights (via Apify)

リモート
apify.com地図・旅行03 週間前に更新
リポジトリ公式サイト

Google Flights (via Apify) について

Google Flights (via Apify) は、旅行者や旅行データのワークフロー向けにフライト検索結果を取得する Apify Actor です。旅程の詳細を返し、定期的な運賃下落の追跡にも対応します。

主な機能

  1. 01運賃と旅程の詳細
  2. 02片道・往復検索
  3. 03客室クラス・乗客数・通貨の指定
  4. 04条件付き運賃下落の追跡

活用シーン

  1. 01路線や旅行日程の比較
  2. 02定期検索で運賃下落を監視

MCP 対応

ホスト型の Apify MCP サーバーから、MCP クライアントがこの Actor のフライト検索ツールを利用できます。@apify/actors-mcp-server を使うローカル設定も案内されています。

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttps://mcp.apify.com/?tools=automationnation/google-flights-scraper
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

すべてのエンドポイント
Streamable HTTPhttps://mcp.apify.com/?tools=automationnation/google-flights-scraper認証が必要

ツール

詳細

Google Flights スクレイパー&API:価格、航空会社、時刻

Apify で実行

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 のその他のサービス


このリポジトリには使用例が含まれています。スクレイパー自体はApify プラットフォーム上で実行されます。無料の Apify アカウントと API トークンが必要です。使用例は MIT ライセンスで提供されています。

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。