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