# Google Hotels Scraper (`scrapeai/google-hotels-scraper`) Actor

A scraper that extracts hotel listings from Google Travel search pages. It collects hotel names, prices, ratings, locations, amenities, and booking links from dynamic Google Hotels results for travel analysis, price comparison, and market research.

- **URL**: https://apify.com/scrapeai/google-hotels-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** Travel, Developer tools, Automation
- **Stats:** 17 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Hotels Scraper

Actor for scraping Google Hotels search results. It searches for hotels in a given location and checks the prices from different providers for a given date range.

### What It Does

This scraper searches Google Hotels for your query and extracts detailed information about each hotel listing including prices from multiple booking providers. Perfect for market research, price comparison, and travel planning.

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| searchQuery | String | Hotel search query (e.g. "Prague") | "hotels in London" |
| checkInDate | String | Check-in date in YYYY-MM-DD format | (none) |
| checkOutDate | String | Check-out date in YYYY-MM-DD format | (none) |
| numberOfAdults | Number | Number of adult guests | 2 |
| numberOfChildren | Number | Number of child guests | 0 |
| currencyCode | String | Currency code (e.g. "EUR", "USD") | (none) |
| maxResults | Number | Maximum number of hotels to scrape | 20 |
| proxyConfiguration | Object | Proxy settings | Apify Residential |

### Example Input

```json
{
    "searchQuery": "Prague",
    "checkInDate": "2022-12-24",
    "checkOutDate": "2022-12-26",
    "numberOfAdults": 2,
    "numberOfChildren": 0,
    "currencyCode": "EUR",
    "maxResults": 100
}
```

### Output

Each hotel result includes:

| Field | Type | Description |
|---|---|---|
| position | Number | Position in the results |
| url | String | Google Travel URL for the hotel |
| title | String | Name of the hotel |
| website | String | Hotel's own website URL |
| address | String | Hotel address |
| phone | String | Hotel phone number |
| photos | Array | List of photo URLs |
| thumbnail | String | URL of the first photo |
| rating | Number | Rating out of 5 |
| reviews | Number | Number of reviews |
| prices | Array | Provider price list `[{provider, price, link}]` |
| priceRange | String | Min–max price across providers (e.g. `"167 - 173"`) |
| stars | Number | Star class (e.g. 3, 4, 5) |
| amenities | Array | Available amenities (Wi-Fi, Pool, Parking, etc.) |
| searchQuery | String | The search query used |
| checkInDate | String | Check-in date |
| checkOutDate | String | Check-out date |
| numberOfAdults | Number | Number of adult guests |
| numberOfChildren | Number | Number of child guests |
| scrapedAt | String | Timestamp of when the data was scraped |

### Example Output

```json
{
    "position": 1,
    "url": "https://www.google.com/travel/search?q=Prague&...",
    "title": "Hilton Prague",
    "website": "https://www.hilton.com/en/hotels/prghitw-hilton-prague/",
    "address": "Pobřežní 311/1, 186 00 Praha 8-Rohanský ostrov",
    "phone": "224 841 111",
    "photos": [
        "https://lh5.googleusercontent.com/p/AF1QipPcz2Xfi5AxX2VVZTsoQxW6EeSC0J810wUW_N2o=w253-h201-k-no"
    ],
    "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipPcz2Xfi5AxX2VVZTsoQxW6EeSC0J810wUW_N2o=w253-h201-k-no",
    "rating": 4.4,
    "reviews": 8723,
    "prices": [
        { "provider": "Hilton Prague", "price": 173, "link": "https://.../" },
        { "provider": "Booking.com",   "price": 173, "link": "https://.../" },
        { "provider": "Vio.com",       "price": 167, "link": "https://.../" }
    ],
    "priceRange": "167 - 173",
    "stars": 5,
    "amenities": ["Wi-Fi", "Pool", "Spa", "Restaurant", "Gym"],
    "searchQuery": "Prague",
    "checkInDate": "2025-08-01",
    "checkOutDate": "2025-08-05",
    "numberOfAdults": 2,
    "numberOfChildren": 0,
    "scrapedAt": "2025-07-14T10:30:00.000Z"
}
```

### Supported Features

- Search for hotels in any city, region, or country
- Filter by check-in and check-out dates
- Specify number of guests
- Set country and language preferences
- Extracts 26+ types of amenities (Wi-Fi, Pool, Parking, Breakfast, Spa, Gym, and more)
- Automatic scroll to load more results
- Handles Google consent dialogs automatically
- Residential proxy support for reliable scraping

### Tips

- Use specific queries like "5-star hotels in Tokyo" or "budget hotels near Times Square" for targeted results
- Set check-in and check-out dates to get accurate pricing from each provider
- Use `currencyCode` to receive prices in your preferred currency (e.g. `"EUR"`, `"USD"`, `"GBP"`)
- Start with a small `maxResults` value to test before running larger scrapes

# Actor input Schema

## `searchQuery` (type: `string`):

The hotel search query (e.g. 'hotels in London', 'hotels in New York')

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

Check-in date in YYYY-MM-DD format (e.g. 2026-03-15)

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

Check-out date in YYYY-MM-DD format (e.g. 2026-03-17)

## `numberOfAdults` (type: `integer`):

Number of adult guests

## `numberOfChildren` (type: `integer`):

Number of child guests

## `currencyCode` (type: `string`):

Currency code for prices (e.g. 'EUR', 'USD', 'GBP')

## `maxResults` (type: `integer`):

Maximum number of hotel results to retrieve

## `proxyConfiguration` (type: `object`):

Proxy configuration for the scraper. Use Apify Proxy with RESIDENTIAL group for best results.

## Actor input object example

```json
{
  "searchQuery": "hotels in London",
  "checkInDate": "2026-03-15",
  "checkOutDate": "2026-03-17",
  "numberOfAdults": 2,
  "numberOfChildren": 0,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "searchQuery": "hotels in London",
    "checkInDate": "2026-03-15",
    "checkOutDate": "2026-03-17",
    "numberOfAdults": 2,
    "numberOfChildren": 0,
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/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 = {
    "searchQuery": "hotels in London",
    "checkInDate": "2026-03-15",
    "checkOutDate": "2026-03-17",
    "numberOfAdults": 2,
    "numberOfChildren": 0,
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/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 '{
  "searchQuery": "hotels in London",
  "checkInDate": "2026-03-15",
  "checkOutDate": "2026-03-17",
  "numberOfAdults": 2,
  "numberOfChildren": 0,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scrapeai/google-hotels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeai/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/zmE7FtCdmdE7gc5b7/builds/gJcxOSZEZ0Pg0LVXN/openapi.json
