# Google Hotels Search Scraper (`thescrappa/google-hotels-search-scraper`) Actor

Search Google Hotels with Scrappa. Extract hotel names, prices, ratings, booking links, amenities, coordinates, property tokens, and pagination metadata.

- **URL**: https://apify.com/thescrappa/google-hotels-search-scraper.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Travel, Developer tools, Automation
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Search Scraper

Scrape Google Hotels search results with dates, guests, price filters, star class, ratings, amenities, vacation rental filters, booking links, and pagination.

The actor saves one dataset item per property and stores the complete Scrappa response in key-value store key `OUTPUT`.

### Example input

Replace the date values with future dates before running the actor.

```json
{
  "q": "Paris, France",
  "check_in_date": "YYYY-MM-DD",
  "check_out_date": "YYYY-MM-DD",
  "adults": 2,
  "currency": "EUR",
  "gl": "fr",
  "hl": "en",
  "sort_by": 3,
  "hotel_class": 4,
  "rating": 8
}
````

### Output fields

Common top-level fields include:

- `name`
- `hotel_class`
- `overall_rating`
- `reviews`
- `rate_per_night_lowest`
- `rate_per_night_extracted_lowest`
- `total_rate_lowest`
- `total_rate_extracted_lowest`
- `booking_link`
- `property_token`
- `entity_id`
- `place_id`
- `latitude`
- `longitude`
- `price_sources_count`
- `amenities_count`
- `request_q`
- `request_check_in_date`
- `request_check_out_date`

Use `next_page_token` from the full `OUTPUT.pagination` object to fetch additional result pages.

# Actor input Schema

## `q` (type: `string`):

Location, landmark, area, or hotel query to search in Google Hotels.

## `check_in_date` (type: `string`):

Check-in date in YYYY-MM-DD format. Must be today or a future date.

## `check_out_date` (type: `string`):

Check-out date in YYYY-MM-DD format. Must be after the check-in date.

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

Number of adults.

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

Number of children. If greater than 0, provide matching Children Ages.

## `children_ages` (type: `array`):

Ages for each child, 1-17. The number of ages must match Children.

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

Three-letter currency code such as USD, EUR, or GBP.

## `gl` (type: `string`):

Two-letter Google country code such as us, fr, gb, or de.

## `hl` (type: `string`):

Two-letter language code such as en, fr, de, or es.

## `sort_by` (type: `string`):

Google Hotels sort mode: 3 for lowest price, 8 for highest rating, 13 for most reviewed.

## `min_price` (type: `integer`):

Minimum nightly price.

## `max_price` (type: `integer`):

Maximum nightly price. Must be greater than Minimum Price and within 5000.

## `hotel_class` (type: `string`):

Hotel star class filter.

## `rating` (type: `string`):

Google Hotels minimum rating filter: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+.

## `free_cancellation` (type: `boolean`):

Return only properties with free cancellation. Cannot be combined with price, class, rating, amenities, property type, or brand filters.

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

Google Hotels amenity IDs.

## `vacation_rentals` (type: `boolean`):

Search vacation rentals instead of hotels.

## `eco_certified` (type: `boolean`):

Return only eco-certified hotels. Cannot be combined with other non-boolean filters.

## `special_offers` (type: `boolean`):

Return only properties with special offers. Cannot be combined with other non-boolean filters.

## `property_types` (type: `array`):

Google Hotels property type IDs.

## `brands` (type: `array`):

Google Hotels brand IDs.

## `bedrooms` (type: `integer`):

Minimum bedrooms for vacation rental searches.

## `bathrooms` (type: `integer`):

Minimum bathrooms for vacation rental searches.

## `next_page_token` (type: `string`):

Pagination token returned by a previous Google Hotels search response.

## `property_token` (type: `string`):

Specific Google Hotels property token, often returned by Google Hotels autocomplete.

## Actor input object example

```json
{
  "q": "Paris, France",
  "adults": 2,
  "children": 0,
  "currency": "USD",
  "gl": "us",
  "hl": "en",
  "free_cancellation": false,
  "vacation_rentals": false,
  "eco_certified": false,
  "special_offers": false
}
```

# 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 = {
    "q": "Paris, France"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/google-hotels-search-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 = { "q": "Paris, France" }

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

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

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

```

## CLI example

```bash
echo '{
  "q": "Paris, France"
}' |
apify call thescrappa/google-hotels-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=thescrappa/google-hotels-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Hotels Search Scraper",
        "description": "Search Google Hotels with Scrappa. Extract hotel names, prices, ratings, booking links, amenities, coordinates, property tokens, and pagination metadata.",
        "version": "1.0",
        "x-build-id": "lbbXlKllL85dphblP"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/thescrappa~google-hotels-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-thescrappa-google-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/thescrappa~google-hotels-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-thescrappa-google-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/thescrappa~google-hotels-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-thescrappa-google-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "q",
                    "check_in_date",
                    "check_out_date"
                ],
                "properties": {
                    "q": {
                        "title": "Destination or Hotel Query",
                        "type": "string",
                        "description": "Location, landmark, area, or hotel query to search in Google Hotels."
                    },
                    "check_in_date": {
                        "title": "Check-in Date",
                        "type": "string",
                        "description": "Check-in date in YYYY-MM-DD format. Must be today or a future date."
                    },
                    "check_out_date": {
                        "title": "Check-out Date",
                        "type": "string",
                        "description": "Check-out date in YYYY-MM-DD format. Must be after the check-in date."
                    },
                    "adults": {
                        "title": "Adults",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of adults.",
                        "default": 2
                    },
                    "children": {
                        "title": "Children",
                        "minimum": 0,
                        "maximum": 6,
                        "type": "integer",
                        "description": "Number of children. If greater than 0, provide matching Children Ages.",
                        "default": 0
                    },
                    "children_ages": {
                        "title": "Children Ages",
                        "type": "array",
                        "description": "Ages for each child, 1-17. The number of ages must match Children.",
                        "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 17
                        }
                    },
                    "currency": {
                        "title": "Currency",
                        "pattern": "^[A-Za-z]{3}$",
                        "minLength": 3,
                        "maxLength": 3,
                        "type": "string",
                        "description": "Three-letter currency code such as USD, EUR, or GBP.",
                        "default": "USD"
                    },
                    "gl": {
                        "title": "Country",
                        "pattern": "^[A-Za-z]{2}$",
                        "minLength": 2,
                        "maxLength": 2,
                        "type": "string",
                        "description": "Two-letter Google country code such as us, fr, gb, or de.",
                        "default": "us"
                    },
                    "hl": {
                        "title": "Language",
                        "pattern": "^[A-Za-z]{2}$",
                        "minLength": 2,
                        "maxLength": 2,
                        "type": "string",
                        "description": "Two-letter language code such as en, fr, de, or es.",
                        "default": "en"
                    },
                    "sort_by": {
                        "title": "Sort By",
                        "enum": [
                            "3",
                            "8",
                            "13"
                        ],
                        "type": "string",
                        "description": "Google Hotels sort mode: 3 for lowest price, 8 for highest rating, 13 for most reviewed."
                    },
                    "min_price": {
                        "title": "Minimum Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum nightly price."
                    },
                    "max_price": {
                        "title": "Maximum Price",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum nightly price. Must be greater than Minimum Price and within 5000."
                    },
                    "hotel_class": {
                        "title": "Hotel Class",
                        "enum": [
                            "2",
                            "3",
                            "4",
                            "5"
                        ],
                        "type": "string",
                        "description": "Hotel star class filter."
                    },
                    "rating": {
                        "title": "Minimum Rating",
                        "enum": [
                            "7",
                            "8",
                            "9"
                        ],
                        "type": "string",
                        "description": "Google Hotels minimum rating filter: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+."
                    },
                    "free_cancellation": {
                        "title": "Free Cancellation",
                        "type": "boolean",
                        "description": "Return only properties with free cancellation. Cannot be combined with price, class, rating, amenities, property type, or brand filters.",
                        "default": false
                    },
                    "amenities": {
                        "title": "Amenity IDs",
                        "type": "array",
                        "description": "Google Hotels amenity IDs.",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "vacation_rentals": {
                        "title": "Vacation Rentals",
                        "type": "boolean",
                        "description": "Search vacation rentals instead of hotels.",
                        "default": false
                    },
                    "eco_certified": {
                        "title": "Eco Certified",
                        "type": "boolean",
                        "description": "Return only eco-certified hotels. Cannot be combined with other non-boolean filters.",
                        "default": false
                    },
                    "special_offers": {
                        "title": "Special Offers",
                        "type": "boolean",
                        "description": "Return only properties with special offers. Cannot be combined with other non-boolean filters.",
                        "default": false
                    },
                    "property_types": {
                        "title": "Property Type IDs",
                        "type": "array",
                        "description": "Google Hotels property type IDs.",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "brands": {
                        "title": "Brand IDs",
                        "type": "array",
                        "description": "Google Hotels brand IDs.",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    "bedrooms": {
                        "title": "Bedrooms",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Minimum bedrooms for vacation rental searches."
                    },
                    "bathrooms": {
                        "title": "Bathrooms",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Minimum bathrooms for vacation rental searches."
                    },
                    "next_page_token": {
                        "title": "Next Page Token",
                        "type": "string",
                        "description": "Pagination token returned by a previous Google Hotels search response."
                    },
                    "property_token": {
                        "title": "Property Token",
                        "type": "string",
                        "description": "Specific Google Hotels property token, often returned by Google Hotels autocomplete."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
