Google Hotels Scraper

io.github.RalfIJPublished by GitHub account RalfIJv1.0.0Updated Oct 28, 2026

Google Hotels prices for any city and dates: nightly and total price with taxes, ratings, amenities.

VerifiedStreamable HTTPWeb executableLocation & LifestyleWeb Search & Scraping

Overview

AI-generated overview

Remote Apify MCP server that lets an assistant look up Google Hotels prices, ratings and amenities for a city and date range.

What you can do
  • Search hotels in a city for given dates, returning nightly and total prices with taxes and fees
  • Read per-hotel details: deal notes, guest rating, review count, star class, property type, amenities, check-in and check-out times
  • Get location and links for each property: coordinates, website, Google Hotels and Google Maps URLs, and Google's hotel id
  • Compare the same dates across several cities or weekends to find cheaper options
  • Track prices over repeated runs using fixed dates or relative date inputs
When to use it
Useful when you want an assistant to research hotel prices for a trip, compare cities or weekends, or keep an eye on price changes for a specific stay, without a Google Hotels API key.
Requirements
Remote MCP endpoint at mcp.apify.com with the Google Hotels scraper tool enabled. An Apify account is required; authenticate via OAuth sign-in or an Apify API token sent in the Authorization header. Runs are billed to that Apify account.
Before you install
Runs consume Apify credit and are billed to your account, so repeated or scheduled searches cost money. The Authorization header carries an Apify API token, which should be kept secret. Results come from scraping Google's search page, so coverage is roughly the first page of hotels per search and prices vary by market. The author built the scraper and is not affiliated with Google.

Installation

In SourceWeft

  1. Open Google Hotels Scraper in the dashboard and add it to a workspace.
  2. Connect the required credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.RalfIJ%2Fgoogle-hotels/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.

{
  "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

  1. 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.
  2. Copy your API token from Settings > API & Integrations in Apify Console.
  3. Run an example:
bash
pip install -r requirements.txtexport APIFY_TOKEN=your-token        # Windows: set APIFY_TOKEN=your-tokenpython examples/search_hotels.py
hotel                                      stars rating  a night, all-inThe Central House Lisbon Baixa                 2    4.3           53 EURLisbon Wine House - Rooms & Suites             3    3.7           68 EURNext Level Premium Hotels Lisbon               3    4.7           76 EURNovotel Lisboa                                 4      4           83 EUR...Saved 20 hotels to hotels.csv

Examples

FileWhat it does
examples/search_hotels.pyHotels for one city and date range, cheapest first, saved as CSV
examples/compare_cities.pyThe same dates in several cities, with the chart above
examples/cheapest_weekend.pyPrices for the next 8 weekends, to find the cheapest one
examples/price_tracker.pyRun it daily: keeps a price history and lists hotels that got at least 10% cheaper

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:

Fri 16 Oct to Sun 18 Oct: median EUR 191, cheapest EUR 97 a nightFri 23 Oct to Sun 25 Oct: median EUR 302, cheapest EUR 28 a nightFri 30 Oct to Sun 01 Nov: median EUR 140, cheapest EUR 88 a nightFri 06 Nov to Sun 08 Nov: median EUR 177, cheapest EUR 104 a nightFri 13 Nov to Sun 15 Nov: median EUR 135, cheapest EUR 96 a nightFri 20 Nov to Sun 22 Nov: median EUR 133, cheapest EUR 89 a nightFri 27 Nov to Sun 29 Nov: median EUR 141, cheapest EUR 86 a nightFri 04 Dec to Sun 06 Dec: median EUR 132, cheapest EUR 78 a night
Cheapest weekend: 04 December (median EUR 132 a night, taxes included)

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

  • pricePerNight as Google shows it, and totalPrice for the whole stay with taxes and fees, plus totalPriceBeforeTaxes and taxesAndFees when Google shows the split
  • dealText, such as "23% less than usual"
  • rating, reviewCount, hotelClass (stars) and propertyType (hotel, hostel, vacation rental and so on)
  • amenities, description, checkInTime and checkOutTime
  • latitude, longitude, website, googleHotelsUrl and googleMapsUrl
  • hotelId, 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 Jordaan or hotels near Amsterdam Centraal.
  • Relative dates: 30 days and 32 days keep scheduled runs pointing at the future. To track one stay over time, use fixed dates instead.
  • Market: the country input (Google's gl setting) 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

Source: README.md at commit 216646d

Tools

0
This server asks you to sign in, so SourceWeft could not read its tools without an account and has not indexed them. What a connected account sees can depend on that account and its permissions.

Version history

1
  1. v1.0.0LatestOct 10, 2026

Score

85% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts