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

\[ 1k / 1$ ] Google Hotels scraper: give it a Google Hotels property page and extract the hotel plus other hotels in its destination with price, rating, amenities, offers by booking site, address, nearby places and photos.

- **URL**: https://apify.com/alpha-scraper/google-hotels-search-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

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 Scraper

Google Hotels Search Scraper is an Apify Actor that collects travel data from Google Hotels and returns it as clean, structured records.
Google Hotels scraper: give it a Google Hotels property page and extract the hotel plus other hotels in its destination with price, rating, amenities, offers by booking site, address, nearby places and photos.
Instead of copying Google Hotels pages by hand, you enter your keywords, choose a few options, and receive one JSON record for every travel record that Google Hotels returns.

**Who is it for?** travel-fare and hotel-price analysts; travel agencies and meta-search builders; revenue and pricing managers in hospitality.
**What problem does it solve?** Collecting Google Hotels information by hand is slow and hard to repeat. Google Hotels Search Scraper returns the same documented Google Hotels fields every time, ready for spreadsheets, databases and dashboards.
**What data do you get?** 49 documented source fields per record, exported as JSON, CSV, Excel, XML, HTML or RSS.
**What is the easiest way to start?** Open Google Hotels Search Scraper on Apify, keep the pre-filled input, lower `maxItems`, and press Start.

> **📌 Google Hotels Search Scraper at a glance**
>
> - **Platform:** Google Hotels
> - **Category:** travel
> - **Input fields:** 10 · **Output fields:** 49
> - **Listed price:** $1.00 per 1,000 results

### ✨ Google Hotels Search Scraper Key Features

The Actor turns Google Hotels travel records into structured data with a short list of inputs and a documented output.
Here is what Google Hotels Search Scraper offers:

- **Keyword input:** Google Hotels Search Scraper accepts one or many entries in `queries` and processes each entry on its own.
- **Result limit:** `maxItems` caps the Google Hotels records per run, so test runs of Google Hotels Search Scraper stay small and costs predictable.
- **Structured output:** 49 documented Google Hotels fields in a consistent JSON structure.
- **Export anywhere:** download the Google Hotels data as JSON, CSV, Excel, XML, HTML or RSS, or read the dataset through the Apify API.
- **Run summary:** a `RUN_SUMMARY` record and the status message report counts and the first problem of every run of the Actor.
- **Also List Hotels Of The Same Destination** (`expandDestination`): After the hotel you name, also return the other hotels of its destination through Google's own pager, with…
- **Check-In Date** (`checkIn`): Check-in day (YYYY-MM-DD) used for the prices of the destination list.
- **Check-Out Date** (`checkOut`): Check-out day (YYYY-MM-DD).

> **💡 Why use Google Hotels Search Scraper?**
>
> - You work with documented Google Hotels fields instead of raw pages.
> - You can repeat the same Google Hotels job on a schedule and compare results over time.
> - You can start small with Google Hotels Search Scraper, check the output, and scale up when you are happy.

### 🔍 What Data Can Google Hotels Search Scraper Extract?

Each record describes one travel record found on Google Hotels.
The schema documents 49 fields: 42 core fields that appear in almost every record, 6 common fields and 1 conditional fields that appear only when Google Hotels provides the value or the matching option is on.

- `name`: Hotel name
- `url`: Google Hotels link
- `propertyToken`: Property ID
- `cid`: Google place ID (CID)
- `rating`: Guest rating
- `reviewsCount`: Review count
- `countryCode`: Country code
- `latitude`: Latitude

The Output section below lists more source fields with their types and shows a real sample record collected by Google Hotels Search Scraper.

### ⚙️ How Google Hotels Search Scraper Works

The workflow of the Actor is intentionally simple, and Google Hotels Search Scraper needs no code:

1. You provide a JSON input or fill the Console form; missing options use their documented defaults.
2. For every entry in `queries`, Google Hotels Search Scraper requests results from Google Hotels, page after page, until it has `maxItems` records or Google Hotels has no more matches.
3. With `fetchDetails` on, Google Hotels Search Scraper also opens each record's detail page and adds the extra fields.
4. Each record is cleaned and mapped to the documented fields; values that Google Hotels does not provide are left out instead of guessed.
5. Records are saved to the default dataset in small batches, and a `RUN_SUMMARY` record closes the run of the Actor.

### 🚀 How to Use Google Hotels Search Scraper

You can run Google Hotels Search Scraper in a few minutes. Follow these steps in the Apify Console:

1. Open the page of Google Hotels Search Scraper on Apify and select the **Input** tab.
2. Enter your Google Hotels keywords in **Hotel Page URLs Or Tokens** (`queries`).
3. Set **Max Hotels Per Starting Hotel** (`maxItems`) to a small number such as 20 for the first run.
4. Press **Start**, then open the **Output** tab to browse the Google Hotels dataset and use **Export** to download it.
5. Save the input as a **Task** and add a **Schedule** to repeat Google Hotels Search Scraper runs.

A quick start input for the Actor:

```json
{
  "queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"],
  "maxItems": 20
}
```

With this input, Google Hotels Search Scraper searches Google Hotels for the keywords shown and returns at most `maxItems` records.

### 🛒 How to Scrape Google Hotels travel records with Google Hotels Search Scraper

To scrape Google Hotels travel records, add your keywords to `queries`, set `maxItems`, and start Google Hotels Search Scraper. Each keyword is processed separately, so ten keywords produce ten Google Hotels searches that share one dataset.

#### 📁 Can You Export Google Hotels Data to CSV, Excel or JSON?

Yes. Every run of Google Hotels Search Scraper stores its collected records in a dataset that you can download as JSON, CSV, Excel, XML, HTML or RSS from the Console or through the API.

#### ⏰ Can You Schedule Google Hotels Search Scraper to Monitor Google Hotels?

Yes. Save your input as a Task, attach a Schedule, and compare the Google Hotels dataset of every run.

### 📥 Google Hotels Search Scraper Input

This table lists every input field of the Actor, taken from the Actor's input schema. The form is pre-filled with a working example.

#### 🧾 Google Hotels Search Scraper Input Fields

|Field|Type|Default|Purpose|
|---|---|---|---|
|`queries`|array|\["https://www.google.…|Each one starts a search from that hotel.|
|`maxItems`|integer|15|Maximum number of hotels to return per URL or token: the hotel itself first, then the other hotels…|
|`expandDestination`|boolean|true|After the hotel you name, also return the other hotels of its destination through Google's own…|
|`checkIn`|string|-|Check-in day (YYYY-MM-DD) used for the prices of the destination list.|
|`checkOut`|string|-|Check-out day (YYYY-MM-DD).|
|`currency`|string|"USD"|Three-letter currency code for the prices of the destination list.|
|`language`|string|"en"|Google interface language (the 'hl' parameter), lower-case, for example 'en', 'de' or 'pt-BR'.|
|`country`|string|"us"|Two-letter country code of the Google region (the 'gl' parameter), lower-case, for example 'us'…|
|`fetchDetails`|boolean|true|Open every returned hotel's own Google Hotels page (one extra request per hotel) to add address…|
|`detailLimit`|integer|0|Maximum number of hotels that get the detail request: the first N returned records are enriched…|

#### 📝 Google Hotels Search Scraper Input Examples

These are valid inputs for Google Hotels Search Scraper. Copy one into the JSON editor of the input form, or send it through the API.

#### 🧪 Example 1: Minimal input

The smallest useful input: your Google Hotels keywords and a result limit. Every other option keeps its default.

```json
{
  "queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"],
  "maxItems": 20
}
```

#### 🧪 Example 2: Typical input with the documented defaults

Every option that has a documented default, shown with that default value so you can see the full shape of the input.

```json
{
  "queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"],
  "maxItems": 20,
  "expandDestination": true,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "fetchDetails": true,
  "detailLimit": 0
}
```

#### 🧪 Example 3: Also List Hotels Of The Same Destination set to false

Changes `expandDestination` and keeps the other defaults.

```json
{
  "queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"],
  "maxItems": 20,
  "expandDestination": false,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "fetchDetails": true,
  "detailLimit": 0
}
```

### 📤 Google Hotels Search Scraper Output

Google Hotels Search Scraper stores one record per travel record in the default dataset of the run. The table shows the most common of the 49 documented Google Hotels fields.

#### 📋 Google Hotels Search Scraper Output Fields

|Field|Type|Description|
|---|---|---|
|`name`|string|Name of the hotel as shown on Google Hotels.|
|`url`|string|Link to the hotel's own page on Google Hotels.|
|`propertyToken`|string|Google Hotels property ID that identifies the hotel.|
|`cid`|string|Google Maps customer ID of the hotel, a long number stored as text.|
|`rating`|integer or number|Overall guest rating of the hotel on Google, on a scale of 5.|
|`reviewsCount`|integer|Total number of guest reviews behind the Google rating.|
|`countryCode`|string|Two-letter ISO code of the country the hotel is in.|
|`latitude`|number|Latitude of the hotel in decimal degrees.|
|`longitude`|number|Longitude of the hotel in decimal degrees.|
|`locationHierarchy`|array|List of the areas the hotel belongs to, from broad to narrow, each with name…|
|`ratingsBySource`|array|List of ratings from the booking and review sites Google collects, each with…|
|`reviewSnippets`|array|List of up to 15 short guest review excerpts, each with source, rating…|

#### 🧬 Google Hotels Search Scraper Sample Output

This record comes from a real run of Google Hotels Search Scraper. Long texts and lists are shortened, only common fields are shown, and contact details, personal names, usernames and profile links are hidden.

```json
{
  "name": "Pullman Paris Tour Eiffel",
  "cid": "5592324419017481846",
  "url": "https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ?q=hote…",
  "propertyToken": "ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ",
  "latitude": 48.8556488,
  "longitude": 2.2928584,
  "countryCode": "FR",
  "rating": 4.6,
  "reviewsCount": 17796,
  "locationHierarchy": [
    {"name": "Paris Metropolitan Area", "kgMid": "/m/0c0tx7"},
    {"name": "Paris", "kgMid": "/m/05qtj"}
  ],
  "ratingsBySource": [
    {
      "source": "all.accor.com",
      "rating": 3.9,
      "ratingScale": 5,
      "reviewCount": 3569
    },
    {
      "source": "Tripadvisor",
      "rating": 4,
      "ratingScale": 5,
      "reviewCount": 4281
    }
  ],
  "reviewSnippets": [
    {
      "source": "all.accor.com",
      "rating": 5,
      "ratingScale": 5,
      "dateText": "a month ago",
      "text": "We had a TowerSuite view! Amazing. The staff was wonderful. The breakfast was amazing…not…"
    },
    {
      "source": "Tripadvisor",
      "rating": 3,
      "ratingScale": 5,
      "dateText": "3 weeks ago",
      "text": "Great location - Disappointed with the room 141- too small - too cold - Lousy bathroom- t…"
    }
  ],
  "offersCheckIn": "2026-11-16",
  "offersCheckOut": "2026-11-17"
}
```

**Sample record 2**

```json
{
  "name": "International Youth Hostel",
  "cid": "5665671439677908627",
  "url": "https://www.google.com/travel/hotels/entity/ChkIruOt35nPzL1pGg0vZy8xMWI2c3luZHgyEAE?q=hot…",
  "propertyToken": "ChkIruOt35nPzL1pGg0vZy8xMWI2c3luZHgyEAE",
  "latitude": 48.8510685,
  "longitude": 2.3787670999999997,
  "countryCode": "FR",
  "rating": 3,
  "reviewsCount": 1889,
  "locationHierarchy": [
    {"name": "Paris Metropolitan Area", "kgMid": "/m/0c0tx7"},
    {"name": "Paris", "kgMid": "/m/05qtj"}
  ],
  "ratingsBySource": [
    {
      "source": "Tripadvisor",
      "rating": 2.7,
      "ratingScale": 5,
      "reviewCount": 626
    },
    {
      "source": "Trip.com",
      "rating": 3.4,
      "ratingScale": 5,
      "reviewCount": 60
    }
  ],
  "reviewSnippets": [
    {
      "source": "Tripadvisor",
      "rating": 5,
      "ratingScale": 5,
      "dateText": "4 months ago",
      "text": "We had a good experience with the customer support team. Everyone we spoke to, both by ph…"
    },
    {
      "source": "Trip.com",
      "rating": 4,
      "ratingScale": 5,
      "dateText": "2 years ago",
      "text": "We did not check in and we're trying to cancel however there is no any other way to cance…"
    }
  ],
  "offersCheckIn": "2026-11-16",
  "offersCheckOut": "2026-11-17"
}
```

#### 🔬 Google Hotels Search Scraper Field Details

Each field below is described with its type, how often it appears in the sample and example values.

- **`name`** (string, present in 30 of 30 sample records): Name of the hotel as shown on Google Hotels. Examples: `"Pullman Paris Tour Eiffel"`, `"Generator Paris"`.
- **`url`** (string, present in 30 of 30 sample records): Link to the hotel's own page on Google Hotels. Examples: `"https://www.google.com/travel/hotels/entity/Chg…"`, `"https://www.google.com/travel/hotels/entity/Chk…"`.
- **`propertyToken`** (string, present in 30 of 30 sample records): Google Hotels property ID that identifies the hotel. Examples: `"ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"`, `"ChkI7_q93r2s8vwRGg0vZy8xMWI2d20xeTBqEAE"`.

### 🎯 Google Hotels Search Scraper Use Cases

People use the Actor when they need repeatable, structured travel data from Google Hotels. Typical applications:

- Compare prices, ratings and review counts across destinations
- Track how fares or room rates move for the same route or city
- Build deal feeds and price alerts
- Research which properties or routes dominate a destination
- Benchmark amenities, star ratings and review scores
- Export travel data for BI dashboards

Every one of these tasks starts from the same Google Hotels records that Google Hotels Search Scraper stores in the dataset.

### 💰 Google Hotels Search Scraper Pricing

The Actor description lists the price of Google Hotels Search Scraper as **$1.00 per 1,000 results**.
The table shows what that rate means for typical run sizes.

|Results|Cost at the listed rate|
|---|---|
|100|$0.10|
|1,000|$1.00|
|10,000|$10.00|
|100,000|$100.00|

- Check the **Pricing** tab on the Actor page for the current terms; your Apify plan and platform usage may also apply.
- Test with a small `maxItems` value before a large run.

### 💻 Run Google Hotels Search Scraper with the Apify API

You can start Google Hotels Search Scraper from code and read the Google Hotels records from the dataset.

#### 🌐 Run the Actor with cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/ACTOR_ID/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"], "maxItems": 20}'
```

### 🔗 Integrations and Automation

Google Hotels Search Scraper works with schedules, webhooks, the Apify API and many integrations.

#### 🔌 Connect Google Hotels Search Scraper to n8n

- Use the Apify node to run the Actor and read its Google Hotels dataset in an n8n workflow.
- Add a Split In Batches or Loop step to process the Google Hotels records one by one.
- Use an HTTP Request node with the collected dataset API if you prefer to control query parameters yourself.
- Once a run succeeds, the Google Hotels data is ready to use in n8n.

### 🧭 Example Workflows with Google Hotels Search Scraper

These workflows show how teams combine Google Hotels Search Scraper with schedules, storage and analysis tools.

#### 🧭 One-off research export

1. Run the Actor once with the Google Hotels keywords for your question.
2. Download the Google Hotels dataset as CSV or Excel.
3. Filter and sort in your spreadsheet.
4. Keep the run ID in your notes for traceability.

### 🛠️ Tips and Best Practices

Follow these tips to get clean data from the Actor faster:

- Start every new search with a small `maxItems` value so you can check the output and the cost before a big run.
- Change one input option at a time and compare the datasets; this makes it clear which option produced which effect.
- Save good inputs as Apify Tasks and give them descriptive names such as the keyword and the market.
- Use a schedule for monitoring jobs, and keep each run small so that Google Hotels results arrive quickly.
- Treat every field except the identifiers as optional in your downstream code.
- Keep the raw JSON of important runs; it is the most complete representation of each record.
- Review `expandDestination` (Also List Hotels Of The Same Destination) before large runs: After the hotel you name, also return the other hotels of its destination through Google's own pager, with…
- Review `checkIn` (Check-In Date) before large runs: Check-in day (YYYY-MM-DD) used for the prices of the destination list.

### ⚖️ Legal and Responsible Use

Google Hotels Search Scraper is meant for publicly available information, and you are responsible for how you use the Google Hotels data. This is general information, not legal advice.

- Read and follow the terms of service and the published crawler rules of Google Hotels before you run large jobs.
- Collect only the travel records and fields you need from Google Hotels, and use them for a legitimate purpose.
- Treat names, handles and contact details as personal data where privacy laws such as GDPR or CCPA apply.
- Respect copyright and database rights when you republish Google Hotels content, and honour removal requests.

### ❓ Frequently Asked Questions about Google Hotels Search Scraper

Answers to common questions about Google Hotels Search Scraper and about collecting public data.

#### ❓ How do I run Google Hotels Search Scraper?

Open the Actor page on Apify, fill in the input form, and press Start.
The same run can be started from the Apify API, the Apify CLI, a schedule, or an integration, using the identical JSON input shown in the Input section.
The Actor saves every record to the run's default dataset, where you can preview and download it.

#### ❓ Do I need an Apify account to use Google Hotels Search Scraper?

Yes. Google Hotels Search Scraper runs on the Apify platform, so you need an Apify account to start it from the Console or the API.
A free account is enough to try the Actor on a small input; check your plan for the monthly credits it includes.

#### ❓ Can I run Google Hotels Search Scraper through the API?

Yes. Every Apify Actor can be started with the Apify API or one of the official clients for JavaScript and Python.
The API section of this page shows a copy-paste example that sends the same JSON input as the Console form.

#### ❓ How do I schedule the Actor to run every day or every week?

Save your input as an Apify Task, then add a Schedule with a cron expression to that Task.
Each scheduled run creates a new dataset, so you can compare today's Google Hotels results with yesterday's.

#### ❓ Which formats can I export the results in?

Apify datasets can be downloaded as JSON, JSONL, CSV, Excel, XML, HTML table and RSS.
Nested lists and objects are kept intact in JSON; for CSV or Excel choose the Google Hotels fields you need or flatten nested fields in the export options.

#### ❓ Can I use Google Hotels Search Scraper to monitor my own listings or pages on Google Hotels?

Yes, as long as your Google Hotels keywords or filters find them. Compare each run with the previous one to see changes.

### 🤝 Support

Need help with Google Hotels Search Scraper or want a new field? Use the **Issues** tab on the Actor page and include the run link and your input.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

## `queries` (type: `array`):

One or more Google Hotels property page URLs (the address you see when you open a hotel in Google Hotels: https://www.google.com/travel/hotels/entity/<token>) or just the token that starts with 'Ch'. Each one starts a search from that hotel. Free-text searches such as 'hotels in Rome' are not supported.

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

Maximum number of hotels to return per URL or token: the hotel itself first, then the other hotels of the same destination that Google's 'Next' pager lists (about 20 per request) until this number is reached or the pager ends.

## `expandDestination` (type: `boolean`):

After the hotel you name, also return the other hotels of its destination through Google's own pager, with prices for your stay dates in one currency. Turn off to return only the hotels you name.

## `checkIn` (type: `string`):

Check-in day (YYYY-MM-DD) used for the prices of the destination list. Empty means 30 days from today.

## `checkOut` (type: `string`):

Check-out day (YYYY-MM-DD). Empty means one night after check-in; a date that is not after check-in is replaced by one night.

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

Three-letter currency code for the prices of the destination list. Offers shown on a hotel's own page use the currency Google picks for the visitor ('offersCurrency' in each record says which). You may type a code that is not in the list.

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

Google interface language (the 'hl' parameter), lower-case, for example 'en', 'de' or 'pt-BR'. You may type a code that is not in the list.

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

Two-letter country code of the Google region (the 'gl' parameter), lower-case, for example 'us', 'gb' or 'de'. You may type a code that is not in the list.

## `fetchDetails` (type: `boolean`):

Open every returned hotel's own Google Hotels page (one extra request per hotel) to add address, phone, website, category, neighbourhood, amenity groups, popular amenities, ratings by booking site with short snippets, provider offers, typical price range, nearby attractions and the photo list. Reviewer names are never collected. Turn off for list data only.

## `detailLimit` (type: `integer`):

Maximum number of hotels that get the detail request: the first N returned records are enriched, the rest keep their search-card fields and carry 'skipped: detailLimit=N' in 'detailStatus'. 0 means no limit. Used only while 'Fetch Hotel Detail Pages' is on.

## Actor input object example

```json
{
  "queries": [
    "https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"
  ],
  "maxItems": 15,
  "expandDestination": true,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "fetchDetails": true,
  "detailLimit": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Google Hotels Search Scraper and stored in the run's default dataset.

# 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 = {
    "queries": [
        "https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/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 = {
    "queries": ["https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/google-hotels-search-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 '{
  "queries": [
    "https://www.google.com/travel/hotels/entity/ChgIxfW9593Qkbu3ARoLL2cvMXRnczA3ZHQQAQ"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/google-hotels-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/google-hotels-search-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/avErNpFKoiL81vovZ/builds/WuprFdQTbjrpQ3tcH/openapi.json
