
Google Hotels Scraper
io.github.RalfIJ由 GitHub 账号 RalfIJ 发布v1.0.0更新于 Oct 28, 2026
Google Hotels prices for any city and dates: nightly and total price with taxes, ratings, amenities.
概览
远程 Apify MCP 服务器,让助手按城市和日期查询 Google Hotels 的房价、评分和设施信息。
- 可以做什么
- 按城市和日期搜索酒店,返回每晚价格及含税费的住宿总价
- 读取每家酒店的详情:优惠提示、住客评分、评论数、星级、住宿类型、设施、入住和退房时间
- 获取酒店位置与链接:经纬度、官网、Google Hotels 和 Google Maps 链接,以及 Google 的酒店 ID
- 对比多个城市或多个周末在同一日期的价格,找出更便宜的选择
- 通过固定日期或相对日期输入,在多次运行中跟踪价格变化
- 适用场景
- 适合让助手为旅行调研酒店价格、比较不同城市或周末,或持续关注某次住宿的价格变化,且没有 Google Hotels 官方 API 的场景。
- 运行要求
- 远程 MCP 端点 mcp.apify.com,并启用 Google Hotels 抓取工具。需要 Apify 账号,可通过 OAuth 登录或使用 Authorization 请求头中的 Apify API 令牌认证。运行费用计入该 Apify 账号。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Hotels Scraper,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.RalfIJ%2Fgoogle-hotels/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"google-hotels-scraper": {
"type": "http",
"url": "https://mcp.apify.com/?tools=ralfij/google-hotels-scraper"
}
}
}README
Google Hotels API for Python
Get hotel prices from Google Hotels into Python for any city and dates: the nightly price, the total for your stay with taxes and fees, Google's deal note ("23% less than usual"), guest rating, review count, star class, amenities and coordinates. Google Hotels compares booking sites and the hotels' own websites, so one search gives you the going rate.
Google has no public API for reading hotel prices. Its hotel APIs are for travel partners that send their prices to Google. These examples use a hosted scraper instead, the Google Hotels Scraper on Apify, through the official Python client.
[Median hotel price per night in 8 European cities]
Example output: the median price per night of the first 20 hotels Google shows in 8 cities, for 2 adults on the weekend of 13 to 15 November 2026. Made with examples/compare_cities.py.
Quick start
- Create a free Apify account. The free plan includes $5 of credit every month, which covers more than 1,000 hotel prices. No credit card needed.
- Copy your API token from Settings > API & Integrations in Apify Console.
- Run an example:
Examples
sample-output/hotels-lisbon-2026-11-13.csv shows the CSV from search_hotels.py.
Finding the cheapest weekend
cheapest_weekend.py for Amsterdam, run on 10 October 2026:
The weekend of 23 October costs more than twice as much as the cheapest one. That's the Amsterdam Dance Event, which runs from 21 to 25 October.
What you get per hotel
pricePerNightas Google shows it, andtotalPricefor the whole stay with taxes and fees, plustotalPriceBeforeTaxesandtaxesAndFeeswhen Google shows the splitdealText, such as "23% less than usual"rating,reviewCount,hotelClass(stars) andpropertyType(hotel, hostel, vacation rental and so on)amenities,description,checkInTimeandcheckOutTimelatitude,longitude,website,googleHotelsUrlandgoogleMapsUrlhotelId, Google's id for the property, to match hotels across runs
Good to know
- Taxes: Google shows US visitors nightly prices before taxes, and most other markets prices with taxes. For prices you can compare, use
totalPrice / nights, as the examples do. - About 20 hotels per search: that's Google's first page. For more hotels in a city, add searches such as
hotels in Amsterdam Jordaanorhotels near Amsterdam Centraal. - Relative dates:
30 daysand32 dayskeep scheduled runs pointing at the future. To track one stay over time, use fixed dates instead. - Market: the
countryinput (Google'sglsetting) decides which booking sites Google compares, and prices can differ between markets. - How it works: the scraper loads the same Google Hotels search page you see in a browser, without a browser, reads the hotel list from the data in the page, and retries from fresh residential IPs when Google blocks a request.
Other options
- SerpApi has a Google Hotels endpoint, with a monthly subscription.
- Booking sites' own APIs are usually only for partners and affiliates, and only cover their own prices.
Use it from AI assistants (MCP)
To let Claude, Cursor, VS Code or another MCP client look up hotel prices for you, add this MCP server URL: https://mcp.apify.com/?tools=ralfij/google-hotels-scraper. Sign in to Apify when the client asks, or send your Apify API token as Authorization: Bearer <token>. Runs are billed to your own Apify account.
Notes
- I built the Google Hotels Scraper used in these examples, so keep that in mind.
- Pricing is per hotel with no subscription; see the actor page.
- It returns business data only. Guest reviews and reviewer names are left out on purpose.
- Not affiliated with, endorsed by or sponsored by Google. Google Hotels is a trademark of Google LLC.
License
MIT
来源:README.md,提交 216646d
工具
0版本历史
1- v1.0.0最新Oct 10, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分