# Google Hotels Multi-OTA Price Scraper — No Login ($2.00/1K) (`studio001/google-hotels-multi-ota-monitor`) Actor

No-login Google Hotels & multi-OTA price API via direct AtySUc RPC ($2.00/1K Gold, 256MB RAM). Extracts nightly rates across Booking, Expedia, Agoda & Official Site. Callable via native MCP (/mcp) or real-time Standby REST API.

- **URL**: https://apify.com/studio001/google-hotels-multi-ota-monitor.md
- **Developed by:** [YEONG JUN YOO](https://apify.com/studio001) (community)
- **Categories:** Travel, AI, MCP servers
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 hotel items scraped

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

Learn more: https://docs.apify.com/actors/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 Multi-OTA Price & Availability Monitor

**Zero-browser Google Hotels scraper and real-time multi-OTA rate comparison API.** Built directly on Google Travel's `batchexecute` (`AtySUc`) RPC endpoint, it extracts structured nightly rates, total stay prices, guest ratings, GPS coordinates, and full provider offer matrices (**Booking.com, Expedia, Agoda, Hotels.com, Trip.com, Priceline, and Official Hotel Sites**) at **256–512 MB RAM** and **66.4 ms per hotel** — with zero Playwright/Chromium bloat and **$0 charge on blocked or failed queries**.

[![RAM Footprint](https://img.shields.io/badge/RAM-256--512%20MB-brightgreen)](#architecture-anti-bot-politeness--troubleshooting)
[![Measured Speed](https://img.shields.io/badge/Latency-66.4%20ms%2Fhotel-blue)](#why-direct-atysuc-rpc-beats-browser-scrapers)
[![Live Benchmark](https://img.shields.io/badge/Live%20Success-100%25%20\(5%2F5%20Cities\)-success)](#why-direct-atysuc-rpc-beats-browser-scrapers)
[![Pricing](https://img.shields.io/badge/PPE-%243.00%2F1K%20\(Free\)%20%E2%86%92%20%242.00%2F1K%20\(Gold\)-orange)](#transparent-ppe-pricing--5-free-tier-cost-estimator)
[![MCP Ready](https://img.shields.io/badge/MCP-mcp.apify.com%20Ready-purple)](#ai-agents-mcp--skills-ready)

***

### Executive Value Proposition

Travel intelligence teams, revenue managers, hospitality SaaS builders, and AI booking agents rely on accurate hotel pricing across OTAs—yet traditional Google Hotels scrapers break constantly under GDPR consent interstitials, heavy headless Chrome memory spikes, and fragile CSS selectors.

**Google Hotels Multi-OTA Monitor (`studio001/google-hotels-multi-ota-monitor`)** replaces browser automation with direct protocol-level RPC extraction:

- **Direct `AtySUc` RPC Speed & Low Wire Footprint**: Benchmarks across 5 global cities (`125` hotels) measured **8.3s total runtime** (**66.4 ms/hotel**) and only **9.59 KB wire payload per hotel**—over 100x lighter than loading Google Travel UI assets in Chromium.
- **Automatic EU Consent Bypass**: Pre-injects `SOCS` and `CONSENT` cookies on every request so EU/EEA cloud runners never stall on Google's `consent.google.com` wall.
- **Full Multi-OTA Rate Matrix (`includeAllOtaOffers`)**: Goes beyond the headline card price to fetch per-entity OTA offers sorted by lowest price, exposing `provider`, `nightlyPrice`, `totalPrice`, `isOfficialSite`, `roomName`, `freeCancellation`, and `bookingUrl`.
- **Resilient Input & Date Normalization**: Accepts array or newline-delimited string `queries`, drop-in competitor aliases (`locations`, `searchQuery`, `location`, `checkInDate`, `checkOutDate`), and automatically clamps stale/past dates to `today + 14 days` while preserving your stay duration.
- **Zero-Charge Error Protection**: Queries that fail or hit a `/sorry/` CAPTCHA halt immediately without wasteful retries and never charge `hotel-scraped` or `hotel-ota-deep` events.

***

### Why Direct `AtySUc` RPC Beats Browser Scrapers

Public Apify Store telemetry highlights how legacy browser-based Google Hotels actors struggle on cloud runners—for instance, `zerobreak/google-hotels-scraper` exhibits a **44.4% 30-day failure rate** (`1,415` failed out of `3,187` runs) driven by EU consent popups and Chromium timeouts, while charging up to `$4.99 / 1,000` results (`$0.00499` Free, `$0.00432` Bronze, `$0.00366` Silver, `$0.00299` Gold).

| Capability / Metric | **Studio 001: Google Hotels Multi-OTA Monitor** | Legacy Browser Scraper (`zerobreak/google-hotels-scraper`) | Typical Playwright Travel Scrapers |
| --- | --- | --- | --- |
| **Execution Engine** | Direct `batchexecute` (`AtySUc`) RPC (`httpx` HTTP/2) | Headless Chromium DOM scraping | Headless Chromium / Puppeteer |
| **Container RAM Footprint** | **256–512 MB** | 2,048–4,096 MB | 2,048–4,096 MB |
| **Measured Failure Rate** | **0% (100% on 5/5 cities / 125 hotels live benchmark)** | **44.4% 30-day failure rate** (1,415 / 3,187 runs) | High timeout & consent-wall churn |
| **Throughput / Latency** | **66.4 ms / hotel** (`9.59 KB` wire/hotel) | 1,500–4,000 ms / hotel | 2,000–5,000 ms / hotel |
| **Pricing (Free / Silver / Gold per 1K)** | **$3.00 / $2.50 / $2.00** | **$4.99 / $3.66 / $2.99** | $4.00–$8.00+ plus heavy CU burn |
| **Run Start Fee** | `$0.00005` one-time | Varies / higher CU cost | High CU initialization cost |
| **EU Consent Handling** | **Automatic (`SOCS`/`CONSENT` cookies)** | Frequent GDPR redirect failures | Requires brittle UI clicks |
| **Multi-OTA Breakdown** | **Structured `otaOffers[]` + `isOfficialSite` + `freeCancellation`** | Basic/partial OTA rows | Often card-headline price only |
| **Error / Empty Query Charge** | **$0 item charge** (fails fast on `/sorry/`) | Consumes CU & browser proxy traffic | Wastes Residential proxy GB |
| **AI Agent / MCP Compatibility** | **Native `mcp.apify.com` + token-lean JSON** | Heavy payload / slow tool latency | Slow tool timeout risk |

***

### High-Impact Use Cases

#### 1. AI Agents, Travel Concierges & RAG Retrieval

Power conversational travel planners, itinerary copilots, and MCP-connected LLM workflows (`Claude`, `Cursor`, `OpenAI Agents`, `LangGraph`). Because each query executes in sub-second RPC latency and returns clean numeric `lowestPrice`, `totalPrice`, `rating`, `hotelClass`, `freeCancellation`, and `googleHotelsUrl` fields, AI agents can dynamically compare destinations, filter by budget (`maxPricePerNight`), and cite exact booking links inside a single tool call.

#### 2. Scheduled Cron Price Parity & Rate-Leak Monitoring

Hospitality chains, boutique hotels, and metasearch revenue analysts run hourly or daily Apify Schedules with `includeAllOtaOffers: true` to compare `isOfficialSite: true` rates against `Booking.com`, `Expedia`, `Agoda`, `Trip.com`, and `Hotels.com`. Detect OTA undercutting (`lowestOta !== Official Site`), track `dealLabel` signals (`"18% less than usual"`), and push Slack/email alerts via n8n or Make.com.

#### 3. Dynamic Market Intelligence & Geo-Arbitrage Pipelines

Feed multi-city rate snapshots (`queries: ["hotels in Tokyo", "hotels in Seoul", "hotels in Bangkok"]`) across different point-of-sale `country` (`gl`) and `currency` settings into Snowflake, BigQuery, or PostgreSQL to monitor seasonal ADR compression, star-class pricing curves (`hotelClasses: [4, 5]`), and availability shifts (`availabilityStatus`).

***

### Quick-Start Input JSON

#### Minimal Quick-Start (Fast Card Search)

```json
{
  "queries": ["hotels in Tokyo", "hotels in Paris"],
  "adults": 2,
  "currency": "USD",
  "maxResultsPerQuery": 20
}
```

#### Full Multi-OTA Comparison & Filtered Query

```json
{
  "queries": [
    "hotels in Tokyo",
    "hotels in Kyoto"
  ],
  "checkIn": "2027-03-15",
  "checkOut": "2027-03-18",
  "adults": 2,
  "childrenAges": [7],
  "currency": "USD",
  "language": "en",
  "country": "us",
  "maxResultsPerQuery": 40,
  "minRating": 4.2,
  "maxPricePerNight": 350,
  "hotelClasses": [4, 5],
  "includeAllOtaOffers": true,
  "maxOtaEntitiesPerQuery": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxTotalChargeUsd": 1.5
}
```

***

### Input Parameter Reference

All parameters are organized in the Apify Console into **3 collapsible sections**. The Actor also normalizes common drop-in aliases (`locations`, `searchQuery`, `checkInDate`, `checkOutDate`, `languageCode`, `countryCode`, `maxResults`, `maxItems`, `maxPrice`, `includeBookingSources`).

| Parameter | Type | Default / Prefill | Section | Description |
| --- | --- | --- | --- | --- |
| `queries` | `array<string>` (or string) | `["hotels in Tokyo"]` | 1. Target Searches | List of Google Hotels search queries (or newline-separated string). Aliases: `locations`, `searchQuery`. |
| `location` | `string` | `—` | 1. Target Searches | Single city/location fallback (converted to `"hotels in <location>"` if `queries` is omitted). |
| `checkIn` | `string` (`YYYY-MM-DD`) | `today + 14 days` | 1. Target Searches | ISO check-in date (alias: `checkInDate`). Past or invalid dates clamp automatically to future dates. |
| `checkOut` | `string` (`YYYY-MM-DD`) | `checkIn + 2 nights` | 1. Target Searches | ISO check-out date (alias: `checkOutDate`). Preserves stay duration when past dates are clamped. |
| `adults` | `integer` (`1–8`) | `2` | 1. Target Searches | Number of adult guests per room. |
| `childrenAges` | `array<integer>` | `[]` | 1. Target Searches | Optional ages (`0–17`) for child guests (encoded into `AtySUc` occupancy blocks). |
| `currency` | `string` | `"USD"` | 2. Localization & OTAs | ISO 4217 currency code for returned prices (`USD`, `EUR`, `JPY`, `GBP`, `KRW`, etc.). |
| `language` | `string` | `"en"` | 2. Localization & OTAs | Google Travel UI language (`hl` parameter; alias: `languageCode`). |
| `country` | `string` | `"us"` | 2. Localization & OTAs | Point-of-sale country code (`gl` parameter; alias: `countryCode`). |
| `maxResultsPerQuery` | `integer` (`1–200`) | `20` | 2. Localization & OTAs | Max unique hotels per query; auto-paginates 20 per RPC page (aliases: `maxResults`, `maxItems`). |
| `minRating` | `number` (`0–5`) | `—` | 2. Localization & OTAs | Filters output to hotels where `rating >= minRating`. |
| `maxPricePerNight` | `number` (`>= 0`) | `—` | 2. Localization & OTAs | Filters output to hotels where `lowestPrice <= maxPricePerNight` (alias: `maxPrice`). |
| `hotelClasses` | `array<integer>` | `[]` | 2. Localization & OTAs | Optional star-rating whitelist (e.g., `[3, 4, 5]`). |
| `includeAllOtaOffers` | `boolean` | `false` | 2. Localization & OTAs | Enables deep entity `AtySUc` lookups for full `otaOffers[]` matrix (alias: `includeBookingSources`). |
| `maxOtaEntitiesPerQuery` | `integer` (`0–200`) | `0` | 2. Localization & OTAs | Caps deep OTA lookups per query (`0` enriches all filtered hotels in the query). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | 3. Proxy & Guardrails | Apify Proxy config. Explicit `{"useApifyProxy": false}` is respected cleanly. |
| `maxTotalChargeUsd` | `number` (`>= 0`) | `—` | 3. Proxy & Guardrails | Hard USD spending limit for the run; stops charging/pushing once reached. |

***

### Output Example & Field Dictionary

#### Full Dataset Item Example (with `includeAllOtaOffers: true`)

```json
{
  "name": "Hotel Gracery Shinjuku",
  "query": "hotels in Tokyo",
  "entityKey": "ChoI4c6E3qG4vJ_qARoNL2cvMTFiNjQ4NXl4eBAB",
  "cid": "0x60188cd6a40b5285:0x3293e03f38e1a9d4",
  "checkIn": "2027-03-15",
  "checkOut": "2027-03-18",
  "currency": "USD",
  "lowestPrice": 180.0,
  "totalPrice": 540.0,
  "lowestOta": "Agoda",
  "dealLabel": "18% less than usual",
  "otaCount": 4,
  "otaOffers": [
    {
      "provider": "Agoda",
      "nightlyPrice": 180.0,
      "totalPrice": 540.0,
      "currency": "USD",
      "isOfficialSite": false,
      "roomName": "Standard Double Room",
      "freeCancellation": true,
      "bookingUrl": "https://www.google.com/aclk?sa=l&ai=..."
    },
    {
      "provider": "Hotel Gracery Shinjuku",
      "nightlyPrice": 195.0,
      "totalPrice": 585.0,
      "currency": "USD",
      "isOfficialSite": true,
      "roomName": "Standard Double Non-Smoking",
      "freeCancellation": true,
      "bookingUrl": "https://www.google.com/aclk?sa=l&ai=..."
    },
    {
      "provider": "Expedia",
      "nightlyPrice": 205.0,
      "totalPrice": 615.0,
      "currency": "USD",
      "isOfficialSite": false,
      "roomName": "Double Room",
      "freeCancellation": false,
      "bookingUrl": "https://www.google.com/aclk?sa=l&ai=..."
    },
    {
      "provider": "Booking.com",
      "nightlyPrice": 210.0,
      "totalPrice": 630.0,
      "currency": "USD",
      "isOfficialSite": false,
      "roomName": "Deluxe Double",
      "freeCancellation": true,
      "bookingUrl": "https://www.google.com/aclk?sa=l&ai=..."
    }
  ],
  "availabilityStatus": "available",
  "rating": 4.4,
  "reviewCount": 8912,
  "hotelClass": 4,
  "checkInTime": "2:00 PM",
  "checkOutTime": "11:00 AM",
  "officialWebsite": "https://gracery.com/shinjuku/",
  "categories": ["hotel"],
  "description": "Modern high-rise hotel in Kabukicho offering compact rooms & a Godzilla terrace.",
  "thumbnailUrl": "https://lh3.googleusercontent.com/p/AF1Qip...",
  "latitude": 35.69566,
  "longitude": 139.702101,
  "googleHotelsUrl": "https://www.google.com/travel/hotels/entity/ChoI4c6E3qG4vJ_qARoNL2cvMTFiNjQ4NXl4eBAB?hl=en&curr=USD"
}
```

#### Key-Value Store Telemetry (`OUTPUT_METRICS`)

Every run writes an `OUTPUT_METRICS` JSON record in the default Key-Value Store with exact query counts, wire transfer bytes, and per-1K unit economics:

```json
{
  "counts": { "apify-actor-start": 1, "hotel-scraped": 20, "hotel-ota-deep": 20 },
  "bronze_total_usd": 0.092,
  "blended_total_usd": 0.08355,
  "wire_bytes_in": 196400,
  "wire_bytes_out": 28400,
  "queriesTotal": 1,
  "queriesSucceeded": 1,
  "failedQueries": [],
  "itemsPushed": 20,
  "requestCount": 21
}
```

#### Top-Level Output Field Dictionary

| Field | Type | Description |
| --- | --- | --- |
| `name` | `string` | Official hotel or lodging property name from Google Hotels. |
| `query` | `string` | The normalized search query string that produced this hotel record. |
| `entityKey` | `string \| null` | Google Travel Knowledge Graph entity token (`Cho...`/`Chk...`) used for deep OTA lookups. |
| `cid` | `string \| null` | Google Maps hexadecimal Customer ID (`0x...:0x...`) for cross-referencing Places data. |
| `checkIn` | `string` | Normalized ISO check-in date (`YYYY-MM-DD`) evaluated for pricing. |
| `checkOut` | `string` | Normalized ISO check-out date (`YYYY-MM-DD`) evaluated for pricing. |
| `currency` | `string` | ISO 4217 currency code applied to all prices in this record. |
| `lowestPrice` | `number \| null` | Lowest observed nightly price across available providers (null if unavailable). |
| `totalPrice` | `number \| null` | Total stay price for the selected dates and guest count. |
| `lowestOta` | `string \| null` | Name of the cheapest booking provider (e.g., `"Agoda"`, `"Booking.com"`). |
| `dealLabel` | `string \| null` | Google Hotels historical discount badge when present (e.g., `"18% less than usual"`). |
| `otaCount` | `integer` | Count of parsed provider entries in `otaOffers` (or `1` if only card-featured OTA is present). |
| `otaOffers` | `array<object>` | Sorted list (cheapest first) of OTA pricing objects when `includeAllOtaOffers` is `true`. |
| `availabilityStatus` | `string` | `"available"` when a nightly rate exists; `"unavailable"` when sold out or unpriced. |
| `rating` | `number \| null` | Average Google guest review score (0.0–5.0). |
| `reviewCount` | `integer \| null` | Total number of guest reviews on Google. |
| `hotelClass` | `integer \| null` | Official hotel star classification (e.g., `3`, `4`, `5`). |
| `checkInTime` | `string \| null` | Property check-in time string (e.g., `"3:00 PM"`). |
| `checkOutTime` | `string \| null` | Property check-out time string (e.g., `"11:00 AM"`). |
| `officialWebsite` | `string \| null` | Property's own domain URL when published in Google Travel metadata. |
| `categories` | `array<string>` | Google place category tags stripped of `gcid:` prefix (e.g., `["hotel", "resort_hotel"]`). |
| `description` | `string \| null` | Short editorial summary snippet from Google Hotels. |
| `thumbnailUrl` | `string \| null` | Primary hotel photo URL. |
| `latitude` | `number \| null` | WGS84 latitude rounded to 6 decimal places. |
| `longitude` | `number \| null` | WGS84 longitude rounded to 6 decimal places. |
| `googleHotelsUrl` | `string \| null` | Direct deep link to the Google Travel entity page for the currency. |

#### Nested `otaOffers[]` Object Dictionary

| Nested Field | Type | Description |
| --- | --- | --- |
| `otaOffers[].provider` | `string` | OTA or direct brand name (e.g., `"Booking.com"`, `"Expedia"`, `"Agoda"`, or hotel name). |
| `otaOffers[].nightlyPrice` | `number \| null` | Provider nightly rate rounded to 2 decimal places. |
| `otaOffers[].totalPrice` | `number \| null` | Provider total stay price including taxes/fees reported by Google. |
| `otaOffers[].currency` | `string` | ISO 4217 currency code matching the offer. |
| `otaOffers[].isOfficialSite` | `boolean` | `true` when the offer comes directly from the hotel's official booking engine. |
| `otaOffers[].roomName` | `string \| null` | Room category label when provided by the OTA feed (e.g., `"Deluxe Double"`). |
| `otaOffers[].freeCancellation` | `boolean` | `true` if Google reports free cancellation terms on this offer. |
| `otaOffers[].bookingUrl` | `string \| null` | Google Travel `/aclk` outbound redirect link to the booking checkout page. |

***

### Transparent PPE Pricing & $5 Free Tier Cost Estimator

You pay only for **actor initialization** (`apify-actor-start`) and **unique hotels actually pushed to your dataset** (`hotel-scraped`), plus optional deep OTA enrichment (`hotel-ota-deep`) only when `includeAllOtaOffers: true` returns OTA offers. **Failed queries, filtered-out hotels, and `/sorry/` blocks are billed `$0` per item.**

#### Live Pay-Per-Event (PPE) Schedule

| Event Name | Trigger Condition | FREE | BRONZE | SILVER | GOLD |
| --- | --- | :---: | :---: | :---: | :---: |
| `apify-actor-start` | One-time run initialization fee | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `hotel-scraped` | Per unique hotel pushed to dataset | `$0.003` (`$3.00/1K`) | `$0.003` (`$3.00/1K`) | `$0.0025` (`$2.50/1K`) | `$0.002` (`$2.00/1K`) |
| `hotel-ota-deep` | Per hotel with `otaOffers` fetched (`includeAllOtaOffers: true`) | `$0.0015` | `$0.0015` | `$0.0012` | `$0.001` |

#### Plan Budget & Capacity Estimator (Assuming 100 Hotels / Run)

| Apify Plan Tier | Monthly Credit | Standard Search Capacity (`hotel-scraped`) | Deep Multi-OTA Capacity (`hotel-scraped` + `hotel-ota-deep`) | Effective Cost / 1K Standard Hotels |
| --- | :---: | :---: | :---: | :---: |
| **Free Tier** | **$5.00** | **~1,655 hotels** | **~1,105 hotels** | **$3.02 / 1K** (incl. start) |
| **Starter ($19/mo)** | **$19.00** | **~6,290 hotels** | **~4,200 hotels** | **$3.02 / 1K** (Bronze rate) |
| **Scale ($199/mo)** | **$199.00** | **~65,890 (Bronze) – ~98,500 (Gold)** | **~44,025 (Bronze) – ~65,890 (Gold)** | **$2.02 – $3.02 / 1K** |

> **Hard Budget Safety**: Set `"maxTotalChargeUsd": 1.0` in input to automatically halt dataset pushes and deep OTA lookups as soon as cumulative charges reach `$1.00`.

***

### AI Agents, MCP & Skills Ready

#### 1. Model Context Protocol (MCP) — Claude Desktop, Cursor & VS Code

Connect directly to Apify's hosted MCP server scoped exclusively to this Actor (`?actors=studio001/google-hotels-multi-ota-monitor`):

```json
{
  "mcpServers": {
    "google-hotels-multi-ota": {
      "url": "https://mcp.apify.com/?actors=studio001/google-hotels-multi-ota-monitor",
      "headers": {
        "Authorization": "Bearer <APIFY_API_TOKEN>"
      }
    }
  }
}
```

Example MCP prompt in Claude Desktop or Cursor:

> *"Run `studio001/google-hotels-multi-ota-monitor` for `hotels in Kyoto` checking in next month for 2 adults, filter `minRating: 4.3` and `maxPricePerNight: 280`, enable `includeAllOtaOffers: true` with `maxOtaEntitiesPerQuery: 10`, and build a comparison table highlighting where Official Site beats Booking.com or Expedia."*

#### 2. For AI Agents & LLMs — Copy-Paste Skill Block

```markdown
#### Skill: Google Hotels Multi-OTA Rate Lookup
- **Actor ID**: `studio001/google-hotels-multi-ota-monitor`
- **When to use**: Retrieving live hotel prices, availability, coordinates, ratings, and multi-OTA price comparisons (Booking.com, Expedia, Agoda, Hotels.com, Official Site) without launching a browser.
- **Minimal input**: `{"queries": ["hotels in <city>"], "adults": 2, "currency": "USD", "maxResultsPerQuery": 20}`
- **Deep OTA mode**: Set `"includeAllOtaOffers": true` and `"maxOtaEntitiesPerQuery": 10` to control PPE spend while getting full `otaOffers[]` breakdown.
- **Safety & Billing**: Do not pass >200 `maxResultsPerQuery`. Past dates auto-clamp safely. Use `maxTotalChargeUsd` when operating autonomously. Read `OUTPUT_METRICS` from the default Key-Value Store to confirm `queriesSucceeded` vs `failedQueries`.
- **Key output fields**: `name`, `lowestPrice`, `totalPrice`, `lowestOta`, `rating`, `reviewCount`, `hotelClass`, `availabilityStatus`, `otaOffers[].provider`, `otaOffers[].nightlyPrice`, `otaOffers[].isOfficialSite`, `otaOffers[].freeCancellation`, `googleHotelsUrl`.
```

#### 3. n8n, Make.com & Zapier Scheduled Cron Recipes

Production workflow templates (with cron triggers, Slack/Google Sheets/Notion sinks, and error branches) are maintained in the companion repository: **[yeongjunyoo/studio001-apify-clients](https://github.com/yeongjunyoo/studio001-apify-clients)**.

- **n8n Cron Recipe**:
  1. **Schedule Trigger** (`0 8 * * *` daily at 08:00 UTC)
  2. **Apify -> Run Actor (`studio001/google-hotels-multi-ota-monitor`)** with JSON body:
     ```json
     {
       "queries": ["hotels in Tokyo", "hotels in Seoul"],
       "adults": 2,
       "currency": "USD",
       "maxResultsPerQuery": 20,
       "includeAllOtaOffers": true,
       "maxOtaEntitiesPerQuery": 10,
       "maxTotalChargeUsd": 0.25
     }
     ```
  3. **Apify -> Get Dataset Items** -> **IF (`lowestOta !== Official Site`)** -> Send Slack rate-parity alert or append row to Google Sheets / BigQuery.
- **Make.com / Zapier Webhook**: Trigger via Apify's synchronous dataset endpoint or attach an `ACTOR.RUN.SUCCEEDED` webhook pointing to Make/Zapier to ingest JSON rows without polling.

#### 4. Python (`apify-client`) & cURL REST API Quickstart

##### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_API_TOKEN>")

run = client.actor("studio001/google-hotels-multi-ota-monitor").call(
    run_input={
        "queries": ["hotels in Tokyo", "hotels in Paris"],
        "adults": 2,
        "currency": "USD",
        "minRating": 4.2,
        "maxResultsPerQuery": 20,
        "includeAllOtaOffers": True,
        "maxOtaEntitiesPerQuery": 10,
        "maxTotalChargeUsd": 0.50,
    }
)

hotels = client.dataset(run["defaultDatasetId"]).list_items().items
for h in hotels[:5]:
    print(f"{h['name']} | ${h['lowestPrice']}/night via {h['lowestOta']} | Rating: {h['rating']}")
```

##### cURL (Synchronous Run + Direct Dataset Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/studio001~google-hotels-multi-ota-monitor/run-sync-get-dataset-items?token=<APIFY_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": ["hotels in Tokyo"],
    "adults": 2,
    "currency": "USD",
    "maxResultsPerQuery": 20,
    "includeAllOtaOffers": true,
    "maxOtaEntitiesPerQuery": 5
  }'
```

***

### Architecture, Anti-Bot Politeness & Troubleshooting

#### Protocol Architecture

1. **Input & Date Normalization**: Coerces list/string queries and competitor aliases (`locations`, `searchQuery`, `checkInDate`, `checkOutDate`). Past or invalid dates are clamped to `today + 14 days` while preserving the original night span.
2. **Direct `AtySUc` RPC Search**: Sends `application/x-www-form-urlencoded` `f.req` payloads to Google Travel's `batchexecute?rpcids=AtySUc` endpoint with `SOCS`/`CONSENT` cookies and bounded concurrency (`Semaphore(3)`). Automatically paginates via `469845717` / `410579159` continuation tokens (`20` properties per page, deduplicated by `entityKey`/`cid`/name).
3. **Optional Deep Multi-OTA Matrix**: When `includeAllOtaOffers: true`, fetches `AtySUc` entity records (`Semaphore(5)`) and merges provider slots (`441552390[6][2]`) deduplicated by lowest price per provider.
4. **Anti-Bot Politeness & Proxy Escalation**:
   - **Never bypasses CAPTCHAs**: Any HTTP redirect to `/sorry/` or `g-recaptcha` / `"detected unusual traffic"` body triggers `CaptchaBlockedError` and **immediately aborts retries** for that query.
   - **Bounded Fallback**: Uses Cloud Datacenter proxy by default (respecting explicit opt-out `{"useApifyProxy": false}`), allows 1 bounded Datacenter rotation retry on non-CAPTCHA errors, and 1-shot Residential fallback on Apify Cloud only if Datacenter returned empty/failed.

#### Troubleshooting & Error Handling Table

| Symptom / Status | Cause | Billing Impact | Resolution |
| --- | --- | --- | --- |
| `availabilityStatus: "unavailable"` (`lowestPrice: null`) | Property sold out or has no bookable inventory for the requested dates/occupancy | Charged `hotel-scraped` only if pushed; `$0` for `hotel-ota-deep` | Try shifting `checkIn`/`checkOut` dates or increasing `adults` room compatibility. |
| `failedQueries` populated with `/sorry/` error | Google anti-bot CAPTCHA gate encountered; Actor halts retries immediately | **$0 item charge** (`hotel-scraped` not billed) | Reduce batch size, ensure `proxyConfiguration: {"useApifyProxy": true}` is active, or space out scheduled runs. |
| `otaOffers` is empty (`[]`) | `includeAllOtaOffers` is `false`, or property lacked `entityKey` / active OTA feed | **$0 `hotel-ota-deep` charge** | Set `"includeAllOtaOffers": true` and check `maxOtaEntitiesPerQuery`. |
| Past dates appear shifted forward | Input `checkIn` was earlier than today's UTC date | Normal behavior | Pass current or future `YYYY-MM-DD` dates, or omit `checkIn`/`checkOut` to use `today + 14 days`. |
| Run stopped early before all queries finished | `maxTotalChargeUsd` cap reached | Stopped cleanly at your cap | Increase or remove `maxTotalChargeUsd`, or restrict `maxResultsPerQuery` / `maxOtaEntitiesPerQuery`. |

***

### Frequently Asked Questions (FAQ)

**Q: What happens if I omit `proxyConfiguration` on Apify Cloud?**
On Apify Cloud (`APIFY_IS_AT_HOME=1`), the Actor automatically enables Datacenter proxy (`{"useApifyProxy": true}`) with bounded session rotation and a 1-shot Residential fallback only if Datacenter returns empty or fails. If you explicitly pass `{"useApifyProxy": false}`, no Apify proxy is called.

**Q: Why are my check-in/check-out dates adjusted when I test old JSON payloads?**
Google Travel rejects past check-in dates. Instead of crashing your workflow, `default_dates()` automatically shifts past or invalid dates forward (`today + 14 days`) while preserving the exact night duration between `checkIn` and `checkOut`.

**Q: How do I control costs when `includeAllOtaOffers` is enabled?**
Use `maxOtaEntitiesPerQuery` (for example, `5` or `10`) together with `minRating`, `maxPricePerNight`, or `hotelClasses` filters. Deep OTA lookups run **only** on hotels that pass your filters, up to `maxOtaEntitiesPerQuery`, and you can add `maxTotalChargeUsd` as a hard stop.

**Q: Does this Actor ever bypass CAPTCHAs or login walls?**
No. If Google responds with `/sorry/`, `g-recaptcha`, or unusual-traffic gates, `CaptchaBlockedError` halts retries immediately for that query and logs it in `OUTPUT_METRICS.failedQueries` with `$0` item billing.

**Q: Can I pass a single city name or newline-separated string instead of a JSON array?**
Yes. You can pass `location: "Kyoto"`, `queries: "hotels in Tokyo\nhotels in Osaka"`, or drop-in aliases from other scrapers (`locations`, `searchQuery`, `checkInDate`, `checkOutDate`, `maxResults`, `maxPrice`).

**Q: Where can I verify exact wire usage and run cost?**
Open the `OUTPUT_METRICS` record in the run's default Key-Value Store (`metrics` tab in the Output view). It logs `counts`, `bronze_total_usd`, `wire_bytes_in`, `wire_bytes_out`, `queriesSucceeded`, and `unit_economics_1k`.

***

### Use as a Real-Time API or Native MCP Server (Standby)

Query live Google Hotels multi-OTA prices synchronously over Apify Standby mode:

- **Native MCP Endpoint (`LIMITED_PERMISSIONS`, `256 MB`):** `https://studio001--google-hotels-multi-ota-monitor.apify.actor/mcp` (`tools/list` exposes `search_google_hotels`)
- **Instant REST Endpoint:** `POST https://studio001--google-hotels-multi-ota-monitor.apify.actor/api/run`

```bash
curl -X POST "https://studio001--google-hotels-multi-ota-monitor.apify.actor/api/run" \
  -H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["hotels in Tokyo"], "maxResultsPerQuery": 3, "includeAllOtaOffers": false}'
```

***

### More High-Reliability APIs by Studio 001

Explore the full Studio 001 zero-browser API suite on Apify Store—all built for **128–1024 MB RAM**, **Pay-Per-Event transparency**, **$0 charge on errors**, and **MCP integration**:

| Actor | Category | Key Capability | Apify Store URL |
| --- | --- | --- | --- |
| **YouTube Transcript & Chapters Pro API** | Videos / AI / MCP | 4-tier Innertube captions, chapters, `chapterMarkdown`, SRT/VTT | [apify.com/studio001/youtube-transcript-chapters-pro-api](https://apify.com/studio001/youtube-transcript-chapters-pro-api) |
| **Instagram Reels AI Transcript & Hook Extractor** | Social / AI / MCP | Audio-first DASH + Groq/local Whisper + 3.5s opening hook analytics | [apify.com/studio001/instagram-reels-ai-transcript-hook-extractor](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor) |
| **B2B Domain Email Finder & SMTP/MX Verifier** | Leads / DevTools / MCP | DoH MX/SPF/DMARC + pattern finder + Port-25/relay SMTP verify | [apify.com/studio001/b2b-email-finder-smtp-mx-verifier](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) |
| **Google Ads Transparency Direct-RPC** | Marketing / AI / MCP | Direct RPC ad creative & advertiser intelligence at 256 MB RAM | [apify.com/studio001/google-ads-transparency-direct-rpc](https://apify.com/studio001/google-ads-transparency-direct-rpc) |
| **Naver Blog & Cafe Pro Scraper** | Korea / RAG / MCP | Fast Naver search, blog post bodies & cafe feeds for Korean market intel | [apify.com/studio001/naver-blog-cafe-pro-scraper](https://apify.com/studio001/naver-blog-cafe-pro-scraper) |
| **OliveYoung Global & KR Beauty API** | E-Commerce / Beauty | K-Beauty rankings, SKUs, prices, reviews & stock intelligence | [apify.com/studio001/oliveyoung-global-kr-beauty-api](https://apify.com/studio001/oliveyoung-global-kr-beauty-api) |
| **Coupang Search & Product Detail Pro API** | E-Commerce / Retail | Rocket Delivery search, pricing, ratings & seller detail extraction | [apify.com/studio001/coupang-search-detail-pro-api](https://apify.com/studio001/coupang-search-detail-pro-api) |
| **ATS Direct Multi-Board Jobs Feed** | Jobs / Leads / MCP | Direct Greenhouse, Lever & Ashby job-board JSON feeds | [apify.com/studio001/ats-jobs-direct-api](https://apify.com/studio001/ats-jobs-direct-api) |
| **YouTube Channel Search & Creator Discovery Pro API** | Videos / Creator / MCP | Channel search, subscriber/view filters & creator discovery feeds | [apify.com/studio001/youtube-channel-search-pro-api](https://apify.com/studio001/youtube-channel-search-pro-api) |
| **Similarweb Traffic & Channel Intel API** | Marketing / B2B / MCP | Monthly visits, bounce rate, channel split, geo & competitors (`UNBLOCKER`) | [apify.com/studio001/similarweb-traffic-channel-intel-api](https://apify.com/studio001/similarweb-traffic-channel-intel-api) |
| **AI Search & AEO Brand Monitor** | AI / SEO / MCP | Google AI Overviews, Perplexity, ChatGPT & Gemini brand citations & share of voice | [apify.com/studio001/ai-search-aeo-brand-monitor](https://apify.com/studio001/ai-search-aeo-brand-monitor) |

#### Suggested Pipeline Chains

1. **Hotel Brand Competitive Intelligence Chain**: Run **Google Hotels Multi-OTA Monitor** to discover top competing luxury properties and `officialWebsite` domains -> feed those domains into [**Google Ads Transparency Direct-RPC**](https://apify.com/studio001/google-ads-transparency-direct-rpc) to inspect active paid search & display hotel ad campaigns.
2. **Hospitality B2B Partnerships & Outreach Chain**: Extract `officialWebsite` domains of independent boutique hotels in target cities -> pass domains to [**B2B Domain Email Finder & SMTP/MX Verifier**](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) (`domainsToHarvest` / `leads`) to discover and SMTP-verify GM or partnerships contacts.
3. **Destination Content & Influencer Travel Guide Chain**: Pair city hotel pricing snapshots from **Google Hotels Multi-OTA Monitor** with travel creator reviews extracted via [**YouTube Channel Search & Creator Discovery Pro API**](https://apify.com/studio001/youtube-channel-search-pro-api) -> [**YouTube Transcript & Chapters Pro API**](https://apify.com/studio001/youtube-transcript-chapters-pro-api) for AI travel itinerary agents.

***

### Task Examples

Launch pre-configured zero-setup workflows directly from Apify Store:

- **[Google Hotels Multi-OTA Price Comparison (Booking vs Expedia)](https://apify.com/studio001/google-hotels-multi-ota-monitor/examples/google-hotels-price-comparison-multi-ota)** — Compare Google Hotels nightly prices across Booking.com, Expedia, Agoda, and official sites at 256MB RAM ($2/1K Gold). No browser overhead.
- **[Google Hotels Booking & Expedia Rate Parity Monitor](https://apify.com/studio001/google-hotels-multi-ota-monitor/examples/google-hotels-booking-com-rate-parity-monitor)** — Track OTA vs direct hotel rate parity across Booking, Expedia, and Agoda via scheduled cron or MCP. Fast 256MB JSON RPC.
- **[5-Star Luxury Hotels Price & Rating Scraper (Google Hotels)](https://apify.com/studio001/google-hotels-multi-ota-monitor/examples/google-hotels-luxury-5-star-rates-scraper)** — Scrape 5-star luxury hotel prices, guest ratings (4.5+), amenities, and multi-OTA links from Google Hotels without browser overhead.
- **[Budget Hotels & Under-$150 Nightly Rate Finder (Google Hotels)](https://apify.com/studio001/google-hotels-multi-ota-monitor/examples/google-hotels-budget-stays-price-filter)** — Discover 4.0+ star hotels under $150/night with real-time rates, coordinates, and booking links via 256MB Google Hotels RPC.
- **[Family Hotels Availability & Multi-Guest Pricing API](https://apify.com/studio001/google-hotels-multi-ota-monitor/examples/google-hotels-family-room-availability-api)** — Get real-time family hotel availability and pricing with custom adults and childrenAges parameters via Google Hotels direct RPC.

***

### Custom Data Pipelines & Enterprise SLA

Need dedicated rate limits, custom dataset schemas, private webhook/S3/Snowflake delivery, high-volume volume discounts, or bespoke multi-Actor pipelines?

- **Direct Engineering Contact:** <studio001.kr@gmail.com>
- **Supported Delivery:** Managed Apify Standby MCP integrations, dedicated residential/unblocker routing, custom cron monitoring, and SLA-backed ETL connectors.

# Actor input Schema

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

List of Google Hotels location or property queries (e.g., \["hotels in Tokyo", "hotels in Paris"]). Also accepts newline-separated strings or aliases (locations, searchQuery).

## `location` (type: `string`):

Optional single city or destination string (automatically normalized to "hotels in <location>" if queries is omitted).

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

Check-in date in ISO format YYYY-MM-DD (also accepts checkInDate). Leave empty to dynamically default to 14 days from today; past dates clamp automatically to future dates.

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

Check-out date in ISO format YYYY-MM-DD (also accepts checkOutDate). Defaults to checkIn + 2 nights (preserving requested stay length when clamping).

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

Number of adult guests per room (1-8).

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

Optional JSON array of children ages (0-17) for family room pricing.

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

ISO 4217 currency code for returned nightly and total prices (e.g., USD, EUR, JPY, GBP, KRW).

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

Google Travel UI language code (hl parameter, e.g., en, fr, ja, de, ko).

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

Google Travel point-of-sale country code (gl parameter, e.g., us, gb, jp, de, kr).

## `maxResultsPerQuery` (type: `integer`):

Maximum number of unique hotels to collect per query (auto-paginates 20 results per RPC page up to 200).

## `minRating` (type: `number`):

Optional filter keeping only hotels with Google guest rating >= minRating (0.0-5.0).

## `maxPricePerNight` (type: `number`):

Optional filter keeping only hotels with nightly lowestPrice <= maxPricePerNight in the selected currency.

## `hotelClasses` (type: `array`):

Optional JSON array of star ratings to include (e.g., \[4, 5]). Leave empty for all classes.

## `includeAllOtaOffers` (type: `boolean`):

When true, issues per-entity AtySUc lookups to extract full OTA rate matrices (Booking.com, Expedia, Agoda, Hotels.com, Trip.com, Official Site) with roomName, freeCancellation, and bookingUrl.

## `maxOtaEntitiesPerQuery` (type: `integer`):

Safety cap on deep OTA lookups per query when includeAllOtaOffers is true (0 = enrich all filtered hotels).

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

Apify Proxy configuration. Datacenter proxy is prefilled for reliable cloud runs; explicit opt-out ({ "useApifyProxy": false }) is respected.

## `maxTotalChargeUsd` (type: `number`):

Optional hard PPE spending cap for this run in USD. Stops pushing additional billable hotels once reached.

## Actor input object example

```json
{
  "queries": [
    "hotels in Tokyo",
    "hotels in Paris"
  ],
  "location": "Kyoto",
  "checkIn": "2027-03-15",
  "checkOut": "2027-03-17",
  "adults": 2,
  "childrenAges": [
    6,
    10
  ],
  "currency": "USD",
  "language": "en",
  "country": "us",
  "maxResultsPerQuery": 20,
  "minRating": 4.2,
  "maxPricePerNight": 250,
  "hotelClasses": [
    4,
    5
  ],
  "includeAllOtaOffers": false,
  "maxOtaEntitiesPerQuery": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxTotalChargeUsd": 2
}
```

# Actor output Schema

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

Extracted hotel rates, ratings, availability, and multi-OTA comparison offers.

## `metrics` (type: `string`):

Execution telemetry, wire bytes, proxy usage, and per-run unit economics JSON.

# 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": [
        "hotels in Tokyo"
    ],
    "adults": 2,
    "childrenAges": [],
    "currency": "USD",
    "language": "en",
    "country": "us",
    "maxResultsPerQuery": 20,
    "hotelClasses": [],
    "includeAllOtaOffers": false,
    "maxOtaEntitiesPerQuery": 0,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio001/google-hotels-multi-ota-monitor").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": ["hotels in Tokyo"],
    "adults": 2,
    "childrenAges": [],
    "currency": "USD",
    "language": "en",
    "country": "us",
    "maxResultsPerQuery": 20,
    "hotelClasses": [],
    "includeAllOtaOffers": False,
    "maxOtaEntitiesPerQuery": 0,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio001/google-hotels-multi-ota-monitor").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": [
    "hotels in Tokyo"
  ],
  "adults": 2,
  "childrenAges": [],
  "currency": "USD",
  "language": "en",
  "country": "us",
  "maxResultsPerQuery": 20,
  "hotelClasses": [],
  "includeAllOtaOffers": false,
  "maxOtaEntitiesPerQuery": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio001/google-hotels-multi-ota-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio001/google-hotels-multi-ota-monitor"
        }
    }
}
```

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/qbF6onbgpsx08TTGj/builds/PcP7IlZmMsoVDIjTz/openapi.json
