
Google Hotels
io.github.johnisanerdv1.0.0更新於 Oct 6, 2026
Google Hotels prices, ratings, reviews, and photos via an Apify Actor, hosted MCP.
概覽
讓助理透過 Apify 託管的 MCP 端點搜尋 Google Hotels,取得價格、評分、評論、照片與飯店詳細資料。
- 功能
- 封裝了一個查詢 Google Hotels 並回傳結構化 JSON 的 Apify Actor。支援四種模式:依地點查詢搜尋或依 token 查詢單一飯店、自動完成建議、完整相片庫,以及分頁的住客評論。結果包含每晚與總價、優惠、星級、評分、設施、圖片、地址與 GPS 座標,並可依價格、星級、住客評分、設施與度假租賃篩選。
- 適用情境
- 適合旅遊研究、價格監控或開發旅遊應用,讓助理取得目前的飯店清單、房價與評論。當你希望在聊天或代理工作流程中隨需取得飯店資料,而不是自行呼叫 API 時,它很合適。
- 執行需求
- 以遠端 streamable HTTP 端點形式在 mcp.apify.com 執行,並預先載入此 Actor。需要 Apify 帳戶,並透過瀏覽器 OAuth 或 Apify API token 驗證,token 以 APIFY_API_TOKEN 環境變數或 Authorization Bearer 標頭提供。依執行次數與處理的頁面計費。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google Hotels,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"google-hotels": {
"type": "http",
"url": "https://mcp.apify.com/?tools=johnvc/google-hotels-search-scraper"
}
}
}README
🏨 Google Hotels API: Hotel Prices and Property Data in Clean JSON
The most efficient, reliable, and developer-friendly way to use the Google Hotels API.
Actor page: apify.com/johnvc/google-hotels-search-scraper Input schema: apify.com/johnvc/google-hotels-search-scraper/input-schema
The Google Hotels API searches Google Hotels and returns clean, structured JSON: hotel and vacation-rental listings with nightly and total prices, deals, star class and property type, ratings and review counts, amenities, images, descriptions, addresses and GPS coordinates, and check-in/check-out times. Search by location query or fetch one property by token. Supports advanced filters, vacation rentals, localization (country, language, currency), and multi-page pagination.
New: three additional modes via the search_type input - autocomplete (destination and hotel name suggestions with property tokens), photos (a property's full photo gallery), and reviews (paginated guest reviews with ratings, text, and sources). Each has its own runnable example script in this repo.
Video Walkthrough
Quick Start
Prerequisites
- Python 3.11 or higher
- An Apify account and API key (get a free key here)
-
Clone the repository
-
Install dependencies with UV
-
Configure your API key
-
Run the examples
Alternative: set the API key directly
Why Use This Google Hotels API?
Rich property data. Each result includes nightly and total prices, deals, ratings and review counts, amenities, images, descriptions, GPS coordinates, and check-in/check-out times, so you can compare properties directly.
Four retrieval modes. Search by a location query, fetch full details for one property by property_token, resolve partial queries into destinations and hotels with autocomplete, or pull a property's complete photo gallery and guest reviews.
Powerful filters. Constrain by price range, star class, guest rating, amenities, and property type, and switch to vacation rentals with bedroom and bathroom filters.
Predictable, pay-per-use pricing. Per run plus per page processed, with no subscription. You control cost with the page limit.
Easy to automate. Call it from Python in a few lines, or load it as an MCP tool so assistants like Claude and Cursor can search hotels for you on demand.
Features
Core Capabilities
- Location-query search or single-property lookup by token
- Autocomplete suggestions for partial queries, with property tokens for chaining
- Photo galleries with full-size and thumbnail URLs, organized by section
- Guest reviews with ratings, text, dates, sources, and sort options
- Localization by country, language, and currency
- Advanced filters: price range, star class, guest rating, amenities, property type
- Vacation-rental mode with bedroom and bathroom filters
- Multi-page pagination with a configurable page cap
Data Quality
- Nightly and total rates with pre-tax figures and deal flags
- Ratings, reviews, amenities, and images per property
- GPS coordinates and addresses for mapping
- Consistent JSON shape across every query
- Per-page dataset items for accurate billing
Usage Examples
Basic search
Filtered search
Vacation rentals
Autocomplete suggestions (see google-hotels-autocomplete.py)
Returns one dataset item per suggestion. Suggestions for specific hotels include a property_token you can chain into photos, reviews, or property details.
Property photos (see google-hotels-photos.py)
Returns one dataset item per photo (typically 100-200 per property) with photo_url, thumbnail_url, dimensions, gallery section, and source.
Guest reviews (see google-hotels-reviews.py)
Returns one dataset item per review with rating, text, date, source platform, reviewer details, and the hotel's response when one exists. Sort with reviews_sort_by: "1" most helpful, "2" most recent, "3" highest score, "4" lowest score.
Input Parameters
Either q (search query) or property_token is required.
Additional filters (amenities, property_type, rental_type) accept Google's integer IDs; see the Actor page for the full reference.
Output Format
A real result for hotels in Paris (one item per page; the properties array is trimmed to one entry for readability).
n8n integration
Available as an n8n community node, n8n-nodes-google-hotels-api. In n8n: Settings, Community Nodes, install n8n-nodes-google-hotels-api, then use it in any workflow (it also works as an AI Agent tool). Version 0.2.0 adds Get Autocomplete Suggestions, Get Photos, and Get Reviews operations.
Use as an MCP tool
You can load the Google Hotels API as an MCP tool so assistants call it for you. The MCP server URL preloads just this one Actor:
Authenticate with OAuth in the browser when offered, or with your Apify API token (the same APIFY_API_TOKEN used by the Python example). Get a token at https://console.apify.com/settings/integrations and a free Apify account at https://apify.com?fpr=9n7kx3 .
Install in Claude Cowork Desktop
[Install in Claude Cowork Desktop]
Cowork is the desktop app's automation mode. To give it the Google Hotels API as a tool, add the Apify MCP server as a connector.
- Open the Claude desktop app and go to Settings → Connectors (or Settings → Developer → Edit Config to edit
claude_desktop_config.jsondirectly).- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the Apify MCP server, preloaded with only this Actor:
- Restart the app. When Cowork first calls the tool, complete the OAuth prompt in your browser, or add your Apify API token in the connector settings to skip OAuth.
- In a Cowork chat, confirm the tool is available and ask it to run the Google Hotels API.
Download the desktop app and start a free trial: https://claude.ai/referral/uIlpa7nPLg More help: https://docs.apify.com/platform/integrations/claude-desktop
Install in Claude Code
Claude Code is the command-line tool. Add the Actor's MCP server with one command:
To use a token instead of browser OAuth:
Then verify with claude mcp list, or run /mcp inside a session. Ask Claude Code to call the Google Hotels API.
Try Claude Code free: https://claude.ai/referral/uIlpa7nPLg Claude Code MCP docs: https://code.claude.com/docs/en/mcp
Install in Claude (website)
On claude.ai you add Apify as a connector, then enable just this Actor's tool.
- Go to Settings → Connectors → Browse connectors and search for Apify MCP server. Install it (enable or update if prompted).
- When connecting, authenticate with your Apify API token, and enable the tool
johnvc/google-hotels-search-scraper. - In any chat, open + → Connectors and turn on Apify.
- Alternatively, choose Add custom connector and paste the full MCP URL
https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper, using OAuth when prompted. - Ask Claude to run the Google Hotels API.
Open Claude on the web: https://claude.ai/referral/uIlpa7nPLg
Install in Cursor
Cursor reads MCP servers from a project file at .cursor/mcp.json.
- In your project, create
.cursor/mcp.json:
- If you prefer token auth over browser OAuth, add a header:
- Open Cursor → Settings → MCP and confirm the apify server is connected (green dot).
- In Composer or Chat, ask Cursor to call the Google Hotels API.
New to Cursor? Get it here: https://cursor.com/referral?code=XQP4VBLI3NNX
Install in ChatGPT
ChatGPT connects to the Apify MCP server through Developer mode (available on ChatGPT Pro, Plus, Business, Enterprise, and Education plans).
- Click your profile icon, then go to Settings > Apps. If you do not see a Create app button, open Advanced settings and enable Developer mode.
- Click Create app and fill out the form:
- Name: Apify
- MCP Server URL:
https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper - Authentication: OAuth
- Click Create and authorize the connection with Apify.
- To use the app in a conversation, click + in the chat, choose Developer mode, and select Apify.
More help: https://docs.apify.com/platform/integrations/mcp
Use the Google Hotels API to power price monitoring, travel apps, and market research with reliable, structured results.
🤖 Ask an AI assistant about this Actor
Open a ready-to-send prompt about the Google Hotels API in the AI of your choice:
- 💬 ChatGPT
- 🧠 Claude
- 🔍 Perplexity
- 🅒 Copilot
Last Updated: 2026.09.22
來源:README.md,提交 4508729
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026

