Google Hotels (via Apify)

io.github.retracnv1.0.0更新於 Oct 5, 2026

Google Hotels for AI agents: prices for your dates, ratings, star class, location, photos.

已驗證Streamable HTTP可網頁執行Location & LifestyleWeb Search & Scraping

概覽

AI 產生的概覽

讓助理查詢 Google Hotels 結果:指定日期的每晚價格、評分、星級、位置與照片,適用於某個城市或區域。

功能
這個遠端 MCP 伺服器封裝了一個 Apify actor,用來擷取 Google Hotels 搜尋結果。每間飯店回傳一列資料,包含含稅前後的每晚價格、貨幣、日期、星級、評分與評論數、評分細項、座標、附近地點、照片、網站與 Google 連結。搜尋可依評分、星級與價格篩選,並可設定入住、退房日期與成人數以取得準確價格。每次搜尋最多回傳 20 間飯店。
適用情境
當助理需要某目的地與旅遊日期的即時房價與評分時適用,例如比較某城市的住宿選項,或查看星級與評論數。它是搜尋結果查詢工具,不是訂房工具,且每次搜尋涵蓋範圍約 20 間飯店。
執行需求
遠端 MCP 端點位於 mcp.apify.com,不需要本機執行環境或套件。需要 Apify API 權杖,透過 Authorization 標頭以 'Bearer ' 形式傳送;免費 Apify 帳號即可取得。需要能連線至 Apify 平台的網路。
安裝前請注意
Authorization 標頭帶有 Apify API 權杖,應視為機密,避免在共用設定或日誌中外洩。使用由 Apify 依每 1,000 間飯店 1 美元計費,反覆搜尋會消耗帳號費用。查詢與結果會經過 Apify 平台及底層擷取器這個第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Hotels (via Apify),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "google-hotels": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=automationnation/google-hotels-scraper"
    }
  }
}

README

Google Hotels Scraper & API: prices, ratings and photos

[Run on Apify]

Google Hotels Scraper is an Apify Actor that returns Google Hotels results for any city or area: prices for your dates (per night and with taxes), star class, rating and review count, coordinates, nearby places, photos, website and Google links, with rating, class and price filters, at $1 per 1,000 hotels.

Price: $1 per 1,000 hotels ($0.80 on Gold and above) · Run it: https://apify.com/automationnation/google-hotels-scraper · Guide: https://retracn.github.io/automationnation-actors/google-hotels-scraper/

Quick facts

  • One row per hotel: nightly price before and with taxes, currency, dates, class, rating, review count, rating breakdown, coordinates, nearby places, photos, website and links.
  • Set check-in, check-out and adults for exact prices.
  • 20 hotels per search in seconds, plain HTTP.
  • Price: $1 per 1,000 hotels.

Example input

json
{  "locations": [    "Paris"  ],  "checkIn": "2026-11-20",  "checkOut": "2026-11-23"}

Run it from code

REST API

bash
curl -X POST "https://api.apify.com/v2/acts/automationnation~google-hotels-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \  -H "Content-Type: application/json" \  -d '{"locations": ["Paris"], "checkIn": "2026-11-20", "checkOut": "2026-11-23"}'

Python — see examples/python_example.py

python
# pip install apify-clientfrom apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("automationnation/google-hotels-scraper").call(run_input={  "locations": [    "Paris"  ],  "checkIn": "2026-11-20",  "checkOut": "2026-11-23"})for item in client.dataset(run["defaultDatasetId"]).iterate_items():    print(item.get("name"), item.get("pricePerNight"), item.get("rating"), item.get("hotelClass"))

JavaScript — see examples/node_example.mjs

js
// npm install apify-clientimport { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('automationnation/google-hotels-scraper').call({  "locations": [    "Paris"  ],  "checkIn": "2026-11-20",  "checkOut": "2026-11-23"});const { items } = await client.dataset(run.defaultDatasetId).listItems();for (const item of items) console.log(item.name, item.pricePerNight, item.rating, item.hotelClass);

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-hotels-scraper

Local config for Claude Desktop / Cursor — mcp/claude_desktop_config.json:

json
{  "mcpServers": {    "google-hotels-scraper": {      "command": "npx",      "args": [        "-y",        "@apify/actors-mcp-server",        "--tools",        "automationnation/google-hotels-scraper"      ],      "env": {        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"      }    }  }}

FAQ

Is there an official Google Hotels API? Google's Hotel APIs are for hotel partners managing their own prices; there's no public API for Google Hotels search results.

How many hotels per search? Up to 20; use neighbourhood or star-rating searches to cover a city.

More from AutomationNation


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,提交 71114d0

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Oct 5, 2026