Back to Browse

Apify Google Hotels API MCP Server

Developer ToolsLow Risk9.8MCP RegistryRemote
Free

Server data from the Official MCP Registry

Google Hotels prices, ratings, reviews, and photos via an Apify Actor, hosted MCP.

About

Google Hotels prices, ratings, reviews, and photos via an Apify Actor, hosted MCP.

Remote endpoints: streamable-http: https://mcp.apify.com/?tools=johnvc/google-hotels-search-scraper

Security Report

9.8
Low Risk9.8Low Risk

Valid MCP server (1 strong, 1 medium validity signals). 1 known CVE in dependencies Imported from the Official MCP Registry. Trust signals: trusted author (12/12 approved).

Endpoint verified Β· Requires authentication Β· 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

APIFY_API_TOKENRequired

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-johnisanerd-google-hotels": {
      "url": "https://mcp.apify.com/?tools=johnvc/google-hotels-search-scraper"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub 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

Watch the walkthrough

Quick Start

Prerequisites

  1. Clone the repository

    git clone https://github.com/johnisanerd/Apify-Google-Hotels-API.git
    cd Apify-Google-Hotels-API
    
  2. Install dependencies with UV

    # Install UV if you do not have it:
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # Install project dependencies:
    uv sync
    
  3. Configure your API key

    cp .env.example .env
    # Edit .env and add your Apify API key
    # Get your free API key at: https://apify.com?fpr=9n7kx3
    
  4. Run the examples

    uv run python google-hotels-api.py            # hotel search (the classic quick start)
    uv run python google-hotels-autocomplete.py   # destination + hotel name suggestions
    uv run python google-hotels-photos.py         # full photo gallery for one hotel
    uv run python google-hotels-reviews.py        # guest reviews for one hotel
    

Alternative: set the API key directly

export APIFY_API_TOKEN="your_api_key_here"
uv run python google-hotels-api.py

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

{
  "q": "hotels in Paris",
  "check_in_date": "2026-06-29",
  "check_out_date": "2026-07-01",
  "adults": 2,
  "max_pages": 1
}

Filtered search

{
  "q": "hotels in New York",
  "check_in_date": "2026-06-29",
  "check_out_date": "2026-07-01",
  "adults": 2,
  "min_price": "100",
  "max_price": "300",
  "hotel_class": "4,5",
  "currency": "USD",
  "max_pages": 1
}

Vacation rentals

{
  "q": "vacation rentals in Miami",
  "check_in_date": "2026-06-29",
  "check_out_date": "2026-07-03",
  "adults": 4,
  "vacation_rentals": true,
  "bedrooms": 2,
  "bathrooms": 2,
  "max_pages": 1
}

Autocomplete suggestions (see google-hotels-autocomplete.py)

{
  "search_type": "autocomplete",
  "q": "hotels in par",
  "gl": "us",
  "hl": "en"
}

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)

{
  "search_type": "photos",
  "property_token": "ChUIksaK9_ij5_kYGgkvbS8wNjJ3YzIQAQ",
  "max_pages": 1
}

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)

{
  "search_type": "reviews",
  "property_token": "ChUIksaK9_ij5_kYGgkvbS8wNjJ3YzIQAQ",
  "reviews_sort_by": "2",
  "max_pages": 2
}

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.

ParameterTypeRequiredDefaultDescription
search_typestringNosearchsearch, autocomplete, photos, or reviews.
qstringYes*-Search query, e.g. hotels in Paris. Required for search (unless property_token is set) and autocomplete.
property_tokenstringYes*-Token for a single property (from a prior result or autocomplete). Required for photos and reviews; returns detailed property info in search mode.
glstringNousCountry code (ISO 3166-1 alpha-2).
hlstringNoenLanguage code (ISO 639-1).
currencystringNo(by country)Currency code (ISO 4217), e.g. USD, EUR.
check_in_datestringNo-Check-in date, YYYY-MM-DD (recommended with a query).
check_out_datestringNo-Check-out date, YYYY-MM-DD.
adultsintegerNo2Number of adult guests.
childrenintegerNo0Number of child guests (children_ages required if > 0).
min_price / max_pricestringNo0.00Price range filter in the chosen currency.
starsstringNo-Comma-separated star ratings, e.g. 4,5.
hotel_classstringNo-Comma-separated class levels 2-5.
guest_ratingstringNo0.0Minimum guest rating (0.0 to 5.0).
vacation_rentalsbooleanNofalseInclude vacation rentals (enables bedrooms/bathrooms).
reviews_sort_bystringNo1Reviews order: 1 most helpful, 2 most recent, 3 highest score, 4 lowest score.
reviews_category_tokenstringNo-Filter reviews by a category token from a property's reviews breakdown.
max_pagesintegerNo1Maximum pages to fetch (0 = no limit). Applies to search, photos, and reviews.
output_filestringNo-Optional filename to save results.

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).

{
  "search_parameters": {
    "q": "hotels in Paris",
    "gl": "us",
    "hl": "en",
    "currency": "USD",
    "check_in_date": "2026-06-29",
    "check_out_date": "2026-07-01",
    "adults": 2,
    "max_pages": 1
  },
  "search_metadata": {
    "total_results": 15000,
    "properties_count": 20,
    "ads_count": 0,
    "pages_processed": 1,
    "max_pages_set": 1,
    "pagination_limit_reached": true
  },
  "page_number": 1,
  "properties": [
    {
      "type": "hotel",
      "name": "The Originals Boutique, HΓ΄tel Maison Montmartre, Paris",
      "description": "Hip hotel featuring a sophisticated restaurant & a cool rooftop eatery/bar with a terrace.",
      "link": "https://www.hotelmaisonmontmartre.com/",
      "property_token": "ChoI_uTZsvz1i6-bARoNL2cvMTFmZHB6eDEwMxAB",
      "gps_coordinates": { "latitude": 48.900537, "longitude": 2.336269 },
      "check_in_time": "3:00 PM",
      "check_out_time": "12:00 PM",
      "rate_per_night": { "lowest": "$144", "extracted_lowest": 144, "before_taxes_fees": "$120" },
      "total_rate": { "lowest": "$287", "extracted_lowest": 287 }
    }
  ],
  "ads": [],
  "filters": [],
  "refine_by": []
}

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:

https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper

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.

  1. Open the Claude desktop app and go to Settings β†’ Connectors (or Settings β†’ Developer β†’ Edit Config to edit claude_desktop_config.json directly).
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the Apify MCP server, preloaded with only this Actor:
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper"
      ]
    }
  }
}
  1. 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.
  2. 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

Install in Claude Code

Claude Code is the command-line tool. Add the Actor's MCP server with one command:

claude mcp add --transport http apify \
  "https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper"

To use a token instead of browser OAuth:

claude mcp add --transport http apify \
  "https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper" \
  --header "Authorization: Bearer YOUR_APIFY_TOKEN"

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)

Install in Claude (website)

On claude.ai you add Apify as a connector, then enable just this Actor's tool.

  1. Go to Settings β†’ Connectors β†’ Browse connectors and search for Apify MCP server. Install it (enable or update if prompted).
  2. When connecting, authenticate with your Apify API token, and enable the tool johnvc/google-hotels-search-scraper.
  3. In any chat, open + β†’ Connectors and turn on Apify.
  4. 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.
  5. Ask Claude to run the Google Hotels API.

Open Claude on the web: https://claude.ai/referral/uIlpa7nPLg

Install in Cursor

Install in Cursor

Cursor reads MCP servers from a project file at .cursor/mcp.json.

  1. In your project, create .cursor/mcp.json:
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper"
    }
  }
}
  1. If you prefer token auth over browser OAuth, add a header:
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=actors,docs,johnvc/google-hotels-search-scraper",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
  1. Open Cursor β†’ Settings β†’ MCP and confirm the apify server is connected (green dot).
  2. 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

Install in ChatGPT

ChatGPT connects to the Apify MCP server through Developer mode (available on ChatGPT Pro, Plus, Business, Enterprise, and Education plans).

  1. 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.
  2. 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
  3. Click Create and authorize the connection with Apify.
  4. 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


Made with care

Use the Google Hotels API to power price monitoring, travel apps, and market research with reliable, structured results.

Last Updated: 2026.08.30

Reviews

No reviews yet

Be the first to review this server!