关于 Google Hotels (via Apify)
Google Hotels (via Apify) 是 Apify Actor,为旅行者和住宿研究收集 Google Hotels 房源。它按指定日期提供价格与酒店详情,并可通过定期搜索追踪每晚价格下降。
主要功能
- 01每晚价格与税费详情
- 02评分、评论和星级
- 03照片、坐标与附近地点
- 04价格、评分和星级筛选
- 05定期追踪酒店降价
适用场景
- 01比较指定城市和日期的酒店
- 02持续监测每晚价格
MCP 相关
托管的 Apify MCP 服务向 MCP 客户端提供该 Actor 的酒店搜索工具,也提供使用 @apify/actors-mcp-server 的本地配置说明。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp.apify.com/?tools=automationnation/google-hotels-scraperclaude mcp add --transport http retracn-google-hotels https://mcp.apify.com/?tools=automationnation/google-hotels-scraper{"mcpServers":{"retracn-google-hotels":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-hotels-scraper"}}}在 Cursor 中打开{"servers":{"retracn-google-hotels":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-hotels-scraper"}}}在 VS Code 中打开{"mcpServers":{"retracn-google-hotels":{"type":"http","url":"https://mcp.apify.com/?tools=automationnation/google-hotels-scraper"}}}{"mcpServers":{"retracn-google-hotels":{"serverUrl":"https://mcp.apify.com/?tools=automationnation/google-hotels-scraper"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
https://mcp.apify.com/?tools=automationnation/google-hotels-scraper需要授权工具
详细介绍
Google Hotels 抓取工具与 API:价格、评分和照片
Google Hotels Scraper 是一个 Apify Actor,可返回任意城市或地区的 Google Hotels 搜索结果:指定日期的价格(每晚价格及含税价格)、星级、评分和评论数、坐标、附近地点、照片、网站和 Google 链接,并支持按评分、星级和价格筛选,价格为每 1,000 家酒店 $1。
**价格:**每 1,000 家酒店 $1(Gold 及以上等级为 $0.80)· 运行地址:https://apify.com/automationnation/google-hotels-scraper · 指南:https://retracn.github.io/automationnation-actors/google-hotels-scraper/
基本信息
- 每家酒店一行:每晚价格(未含税和含税)、货币、日期、星级、评分、评论数、评分明细、坐标、附近地点、照片、网站和链接。
- 设置入住日期、退房日期和成人数量,以获取准确价格。
- 通过普通 HTTP 请求在几秒内搜索 20 家酒店。
- 价格:每 1,000 家酒店 $1。
- 酒店价格追踪器:启用“仅价格下降”后,定时运行只会在酒店每晚价格低于上次记录价格时保存该酒店(每次搜索最多记住 500 家酒店),并在对应行中显示之前的价格。
示例输入
{
"locations": [
"Paris"
],
"checkIn": "2026-11-20",
"checkOut": "2026-11-23"
}
酒店价格追踪器(价格下降)
为所在城市和日期安排搜索,并设置 "onlyPriceDrops": true:每次运行只会在酒店每晚价格低于上次记录价格时保存该酒店,并在对应行中显示 previousPricePerNight。每次搜索最多记住 500 家酒店。
{ "locations": ["Lisbon"], "checkIn": "2026-12-18", "checkOut": "2026-12-21", "minRating": "4", "onlyPriceDrops": true }
现成模板:n8n 工作流:将酒店降价信息发送到 Slack · 指南:酒店价格追踪器 · 公开任务:纽约新年前夜
通过代码运行
REST API
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 — 请参阅 examples/python_example.py
# pip install apify-client
from 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 — 请参阅 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-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);
将其与 AI Agent 搭配使用(MCP)
托管的 MCP 服务 URL(适用于 Claude、ChatGPT、Cursor 及其他支持远程 MCP 的客户端):
https://mcp.apify.com?tools=automationnation/google-hotels-scraper
Claude Desktop / Cursor 的本地配置 — mcp/claude_desktop_config.json:
{
"mcpServers": {
"google-hotels-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--tools",
"automationnation/google-hotels-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}
常见问题
Google Hotels 有官方 API 吗? Google 的酒店 API 面向管理自有价格的酒店合作伙伴;Google Hotels 搜索结果没有公开 API。
每次搜索能获取多少家酒店? 最多 20 家;使用社区或星级搜索来覆盖整座城市。
能追踪指定日期的酒店价格吗? 可以。为所在城市和日期安排搜索并启用“仅价格下降”:每次运行只保存每晚价格下降的酒店,并附上之前的价格,可直接用于 Slack、电子邮件或 Webhook。
更多 AutomationNation 内容
- AI 可见度跟踪器 — 每检查一个答案收费 $0.05(Gold 计划为 $0.04)+ 每份可选报告收费 $0.50 · GitHub 示例
- Google Jobs 抓取工具 — 每 1,000 个职位收费 $2(付费计划为 $1.50)+ 每次搜索收费 $0.03 · GitHub 示例
- YouTube 字幕抓取工具 — 每 1,000 份字幕收费 $1.50(Gold 及以上计划为 $1.20)· GitHub 示例
- Google Shopping 抓取工具 — 每 1,000 个商品收费 $1(Gold 及以上计划为 $0.80)· GitHub 示例
- Google Flights 抓取工具 — 每 1,000 个航班收费 $0.20(Gold 及以上计划为 $0.16)· GitHub 示例
- Google Ads Transparency 抓取工具 — 每 1,000 条广告收费 $1(Gold 及以上计划为 $0.80)· GitHub 示例
- Google News 抓取工具 — 每 1,000 篇文章收费 $1(Gold 及以上计划为 $0.80)· GitHub 示例
- Google Images 抓取工具 — 每 1,000 张图片收费 $0.25(Gold 及以上计划为 $0.20)· GitHub 示例
- Google Custom Search API 替代方案 — 每 1,000 次搜索(最多返回 10 条结果)收费 $5(Gold 及以上计划为 $4)· GitHub 示例
- Google Videos 抓取工具 — 每 1,000 个视频收费 $1(Gold 及以上计划为 $0.80)· GitHub 示例
- Google Trends 抓取工具 — 每 1,000 份关键词报告收费 $1(付费计划为 $0.27–$0.90)· 每 1,000 次热门搜索收费 $0.50 · GitHub 示例
- App Store 评论抓取工具 — 每 1,000 条评论收费 $0.08(付费计划为 $0.05–$0.07)· GitHub 示例
- Google Play 评论抓取工具 — 每 1,000 条评论收费 $0.08(付费计划为 $0.05–$0.07)· GitHub 示例
- AEO 与 GEO 跟踪器 — Google AI Overview 引用检查器 — 每个关键词收费 $0.04(Gold 计划为 $0.032);自 2026 年 11 月 17 日起,每次运行另收 $2;截至 2026 年 10 月 16 日,每个关键词收费 $0.01 · GitHub 示例
- Google Maps 潜在客户抓取工具 — 每条潜在客户信息收费 $0.03(Gold 计划为 $0.024);使用“无网站”或“未认领”筛选条件时,每家找到的企业收费 $0.08 · GitHub 示例
- 英国 Google Maps 潜在客户抓取工具 — 每条潜在客户信息收费 $0.05(Gold 计划为 $0.04)· GitHub 示例
- App Store 与 Google Play 评论抓取工具 + AI — 每份应用报告收费 $0.05(Gold 计划为 $0.04)· GitHub 示例
- 英国 Companies House 潜在客户 — 申报信号与 AI 外联 — 每条潜在客户信息收费 $0.008
- 联系人瀑布式信息补充 — 电子邮件与董事 — 每家公司收费 $0.015
- 所有 Actor 和指南 · 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 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。