# Google Hotels Search & Vacation Rental Price Comparison (`xyrelith-data/google-hotels-scraper`) Actor

Search Google Hotels and vacation rentals by destination and dates. Returns hotel class, guest ratings, nightly and stay-total prices, deal labels, amenities, coordinates and optional per-provider offers, typical price context and nearby places.

- **URL**: https://apify.com/xyrelith-data/google-hotels-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Travel, Automation, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Hotels Search & Vacation Rental Price Comparison

Scrape Google Hotels results for any destination and stay dates, then optionally open each property to collect its full address, contact details, every booking-provider offer, Google's typical-price context and nearby places. Works for both hotels and vacation rentals, in any Google market and currency, without login, cookies or an API key.

### What you get

One dataset row per property:

- **Identity**: Google entity ID, name, hotel or vacation-rental type, star class, Google Hotels link.
- **Location**: latitude/longitude, full address, phone, official website (with the detail pass).
- **Guest feedback**: overall guest rating, review count, star distribution and category scores (cleanliness, location, service, value and more).
- **Prices**: nightly price, stay total with taxes and fees, nightly base, taxes, fees, currency, number of nights and the searched dates.
- **Deals**: Google deal badge (`DEAL`, `GREAT DEAL`, `GREAT PRICE`) and the explanation (`17% less than usual`, `for a 4-star hotel`).
- **Property details**: amenities, thumbnail and gallery image URLs, short and long descriptions, check-in/check-out times.
- **Provider offers** (detail pass): Booking.com, Agoda, Expedia, the hotel's own site and every other provider Google lists, with nightly price, stay total, free-cancellation flag and deadline, member-rate label and click-through link.
- **Price context** (detail pass): Google's typical nightly range, the typical price for the trip and its verdict (`low`, `typical`, `high`), plus eco-certification when shown.
- **Nearby places** (detail pass): top sights, restaurants, airports and transit stops with Google ratings, review counts, descriptions and walking/driving/transit times.
- **Search context**: destination, query, check-in/check-out, guests, filters, country, language and result position.

Missing values are omitted rather than emitted as `null`, `""` or placeholders.

### Input

#### Input reference

| Field | Default | Description |
|---|---|---|
| `mode` | `search` | `search` or `byHotelUrls`. |
| `destinations` | `["Paris"]` | Destination names for search mode. |
| `hotelUrls` | – | Hotel URLs or IDs for `byHotelUrls`. |
| `checkInDate` | – | Arrival date; tomorrow when empty. |
| `checkOutDate` | – | Departure date; check-in + 2 nights when empty. |
| `adults` | `2` | Adults per room. |
| `children` | `0` | Number of children. |
| `childrenAges` | – | One age per child. |
| `propertyType` | `hotels` | `hotels` or `vacationRentals`. |
| `sortBy` | `relevance` | `relevance`, `lowestPrice`, `highestRating`, `mostReviewed`. |
| `minHotelClass` | `any` | `any`, `2`, `3`, `4`, `5`. |
| `minGuestRating` | `any` | `any`, `3.5`, `4.0`, `4.5`. |
| `priceMin` | – | Nightly price floor. |
| `priceMax` | – | Nightly price ceiling. |
| `amenities` | – | Any of `freeWifi`, `freeBreakfast`, `restaurant`, `parking`, `fitnessCenter`, `spa`, `pool`. |
| `freeCancellation` | `false` | Free-cancellation filter. |
| `ecoCertified` | `false` | Eco-certified filter. |
| `includeDetails` | `false` | Per-property detail pass. |
| `maxItems` | `50` | Maximum properties. |
| `currency` | `USD` | Three-letter price currency. |
| `country` | `us` | Google market code. |
| `language` | `en` | Interface/content language. |

| Field | What it does |
|---|---|
| `mode` | `search` for destination searches, `byHotelUrls` for exact hotels. |
| `destinations` | Cities, areas, landmarks or hotel names. Plain names are expanded to `hotels in ...` or `vacation rentals in ...`. |
| `hotelUrls` | Google Hotels hotel URLs or entity IDs (`byHotelUrls`). |
| `checkInDate` / `checkOutDate` | `YYYY-MM-DD`. Empty dates default to tomorrow and the next two nights. |
| `adults` / `children` / `childrenAges` | Occupancy passed to Google, including child ages. |
| `propertyType` | Hotels or vacation rentals. |
| `sortBy` | Relevance, lowest price, highest guest rating or most reviewed. |
| `minHotelClass` | 2, 3, 4 or 5 stars and up. |
| `minGuestRating` | 3.5+, 4.0+ or 4.5+. |
| `priceMin` / `priceMax` | Nightly price range in the selected currency. |
| `amenities` | Free Wi-Fi, free breakfast, restaurant, parking, fitness center, spa and/or pool. |
| `freeCancellation` / `ecoCertified` | Restrict results using Google's own filters. |
| `includeDetails` | Add the per-property pass (one extra request per property). |
| `maxItems` | Stop after this many properties. |
| `currency` / `country` / `language` | Point of sale: Google converts prices and localizes results. |

#### Examples

Search hotels in Paris for three nights and collect provider offers:

```json
{
  "mode": "search",
  "destinations": ["Paris"],
  "checkInDate": "2026-12-10",
  "checkOutDate": "2026-12-13",
  "currency": "EUR",
  "country": "fr",
  "language": "en",
  "sortBy": "lowestPrice",
  "minGuestRating": "4.0",
  "includeDetails": true,
  "maxItems": 30
}
```

Search family-friendly vacation rentals in Lisbon:

```json
{
  "mode": "search",
  "destinations": ["Lisbon"],
  "propertyType": "vacationRentals",
  "adults": 4,
  "children": 2,
  "childrenAges": ["7", "10"],
  "currency": "EUR",
  "maxItems": 20
}
```

Fetch exact hotels by URL or ID:

```json
{
  "mode": "byHotelUrls",
  "hotelUrls": [
    "https://www.google.com/travel/hotels/entity/ChgIy5GU4OXH34H6ARoLL2cvMXRkNjRtZ2gQAQ",
    "ChoIjJXZqpyE6ZCYARoNL2cvMTFjbV9odF96cBAB"
  ],
  "checkInDate": "2026-12-10",
  "checkOutDate": "2026-12-13",
  "currency": "USD"
}
```

### How it works

The actor reads Google Hotels' server-rendered search page and its embedded JSON payload, then paginates through the result pages. The optional detail pass opens each property's Google Hotels prices page and reads its embedded offers, price context and nearby-place data. All data is public and cookieless.

### Use cases

- Monitor hotel and vacation-rental prices for a destination or a set of exact properties.
- Compare the same stay across Booking.com, Agoda, Expedia, the official site and other providers.
- Find well-rated, eco-certified or free-cancellation properties within a nightly budget.
- Build price-history datasets and travel comparison tools.
- Research nearby attractions and transit for shortlisted properties.

### FAQ and honest limits

**How many results per page?** Google returns about 18-20 property cards per page. The actor pages through them until `maxItems` or Google's result set ends.

**Why are some fields missing on some rows?** Google only shows an address, phone, website, typical-price range or nearby places for properties that have that data. The detail pass adds whatever Google publishes; fields are omitted when absent.

**Why is the star class missing for vacation rentals?** Google does not assign a hotel star class to most vacation rentals. Their type and unit details (sleeps, bedrooms, bathrooms) are still returned.

**Are prices per night or per stay?** Both are returned: `nightlyPrice` and `stayTotalPrice` (with taxes and fees). `priceBase`, `priceTaxes` and `priceFees` break down the stay.

**Which currency and taxes?** Prices follow the selected `currency` and `country` point of sale. Google's own tax and fee treatment varies by property and market; the totals are what Google displays.

**Do provider links expire?** Google's click-through links are session-scoped. They are valid when the run finishes and may need a fresh run later.

**Why does `ecoCertified` require the detail pass?** The eco badge is only rendered on the property prices page, not in the search cards.

**Can I use a proxy?** No proxy setup is needed; the actor works from Apify's default network. You do not need to provide cookies, logins or API keys.

# Actor input Schema

## `mode` (type: `string`):

Search by destination or fetch exact hotels from links/IDs.

## `destinations` (type: `array`):

One or more cities, areas, landmarks or hotel names. Plain names get 'hotels in ' or 'vacation rentals in ' automatically.

## `hotelUrls` (type: `array`):

Google Hotels hotel URLs or entity IDs (for example https://www.google.com/travel/hotels/entity/Ch... or Ch...).

## `checkInDate` (type: `string`):

YYYY-MM-DD. Leave empty for tomorrow. (both search modes)

## `checkOutDate` (type: `string`):

YYYY-MM-DD. Leave empty for check-in + 2 nights.

## `adults` (type: `integer`):

Adults per room.

## `children` (type: `integer`):

Number of children.

## `childrenAges` (type: `array`):

Ages for the children (0-17). One age per child; missing ages default to 10.

## `propertyType` (type: `string`):

Hotels or vacation rentals. (mode=search)

## `sortBy` (type: `string`):

Result order.

## `minHotelClass` (type: `string`):

Keep hotels of this star class or higher. (hotels only)

## `minGuestRating` (type: `string`):

Google guest-rating filter.

## `priceMin` (type: `integer`):

Nightly price floor in the selected currency. Applied to the parsed results.

## `priceMax` (type: `integer`):

Nightly price ceiling in the selected currency.

## `amenities` (type: `array`):

Require all selected amenities. Leave empty for no amenity filter.

## `freeCancellation` (type: `boolean`):

Only properties with at least one free-cancellation offer.

## `ecoCertified` (type: `boolean`):

Only properties Google marks eco-certified.

## `includeDetails` (type: `boolean`):

One extra request per property: address, phone, website, check-in/out, every provider offer, typical price range and nearby places. (mode=search; byHotelUrls always fetches details)

## `maxItems` (type: `integer`):

Stop after this many hotels.

## `currency` (type: `string`):

Three-letter currency for prices. Google converts from the market point of sale.

## `country` (type: `string`):

Two-letter Google market code (gl).

## `language` (type: `string`):

Google interface and content language (hl).

## Actor input object example

```json
{
  "mode": "search",
  "destinations": [
    "Paris"
  ],
  "hotelUrls": [],
  "adults": 2,
  "children": 0,
  "childrenAges": [],
  "propertyType": "hotels",
  "sortBy": "relevance",
  "minHotelClass": "any",
  "minGuestRating": "any",
  "amenities": [],
  "freeCancellation": false,
  "ecoCertified": false,
  "includeDetails": false,
  "maxItems": 2,
  "currency": "USD",
  "country": "us",
  "language": "en"
}
```

# Actor output Schema

## `hotels` (type: `string`):

Dataset containing all scraped hotels and vacation rentals.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "destinations": [
        "Paris"
    ],
    "hotelUrls": [],
    "adults": 2,
    "children": 0,
    "childrenAges": [],
    "propertyType": "hotels",
    "sortBy": "relevance",
    "minHotelClass": "any",
    "minGuestRating": "any",
    "amenities": [],
    "freeCancellation": false,
    "ecoCertified": false,
    "includeDetails": false,
    "maxItems": 2,
    "currency": "USD",
    "country": "us",
    "language": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/google-hotels-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "destinations": ["Paris"],
    "hotelUrls": [],
    "adults": 2,
    "children": 0,
    "childrenAges": [],
    "propertyType": "hotels",
    "sortBy": "relevance",
    "minHotelClass": "any",
    "minGuestRating": "any",
    "amenities": [],
    "freeCancellation": False,
    "ecoCertified": False,
    "includeDetails": False,
    "maxItems": 2,
    "currency": "USD",
    "country": "us",
    "language": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/google-hotels-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "destinations": [
    "Paris"
  ],
  "hotelUrls": [],
  "adults": 2,
  "children": 0,
  "childrenAges": [],
  "propertyType": "hotels",
  "sortBy": "relevance",
  "minHotelClass": "any",
  "minGuestRating": "any",
  "amenities": [],
  "freeCancellation": false,
  "ecoCertified": false,
  "includeDetails": false,
  "maxItems": 2,
  "currency": "USD",
  "country": "us",
  "language": "en"
}' |
apify call xyrelith-data/google-hotels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/google-hotels-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HCZnXCzdlcNkcyLbE/builds/t3AeUVkWK5gXbBj9i/openapi.json
