# Google Hotels Scraper \[Only $0.8💰] | OTA Rates | Reviews (`ahmed_jasarevic/google-hotels-scraper`) Actor

Scrape Google Hotels for any destination or exact hotel: lead nightly price, the full OTA rate ladder with booking links, stars, guest rating, coordinates and reviews. $0.80 per 1,000 hotels. No login, no API key.

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

## Pricing

from $0.75 / 1,000 hotels

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/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 Scraper

Scrape Google Hotels for any destination or exact hotel and stay date: lead nightly price, the full OTA price ladder with booking links (Booking.com, Agoda, Expedia, Hotels.com and more), star class, guest rating, review count, address and coordinates.

Every hotel row costs $0.80 per 1,000, every priced stay $2.00 per 1,000 and every review $1.00 per 1,000. No login, no API key, no browser: Google renders the hotel list and the OTA ladder server-side, so a run is plain HTTP with Chrome TLS impersonation.

### Main Use Cases

- Hotel price monitoring and nightly rate tracking across a market
- OTA rate parity checks: which booking site undercuts the hotel's own rate
- Building a hotel price calendar by repricing the same stay across a date window
- Revenue management and competitive-set rate shopping for hoteliers
- Travel market research and destination price comparison
- Guest review collection for rating and sentiment analysis

### How It Works

A destination query becomes a Google Travel search URL (`https://www.google.com/travel/hotels/{destination}?checkin=...&checkout=...&adults=...&currency=...`) and the actor reads the hotel cards Google renders into that page. For every hotel it then requests the entity page (`https://www.google.com/travel/hotels/entity/{ChkI...}`), which carries the per-source price ladder and booking links for those exact dates, guests and currency.

Exact hotels can be supplied instead of searches, as a Google Hotels entity link, a `ChkI` token, a Maps link, a `ChIJ` place id or a plain `Name + City`, which is the practical way to re-check a fixed competitor set on a schedule. Reviews are read from `/travel/hotels/entity/{token}/reviews` and its `batchexecute` continuation, up to the requested number of reviews.

Requests use `curl_cffi` with Chrome TLS impersonation, retries with backoff for 429/5xx answers and an optional proxy configuration. Results stream out per batch: hotels are charged and pushed as they complete, prices are charged once per priced hotel and stay-date, and a failed hotel becomes an error row that is never charged for the hotel event.

### Extract Google Hotels Prices And OTA Rates Without The Google Hotels API

Google publishes no public API for Google Hotels prices, the OTA rate ladder or its hotel reviews; that data is only rendered in the Google Travel interface, and the travel partner APIs are gated behind commercial agreements. This actor reads the same public pages a visitor sees and returns them as structured rows:

- Lead price for the stay (`leadVendor`, `pricePerNight`, `totalPrice`, `currency`, `dealBadge`) plus the full `offers` array, one entry per booking source with `vendor`, nightly and total price, `bookingUrl` and an `isOfficial` flag for the hotel's own site.
- Star class, guest rating and review count alongside every rate, so a price row is directly comparable across the market.
- Discovery by destination, or exact-hotel mode for a fixed competitive set you re-run on a schedule.
- Filters that Google itself applies (`minPrice`, `maxPrice`, `minGuestRating`, `minStars`, `sortBy`), plus `maxResults` to cap the run.
- 18 currencies and any language or search country, so prices are returned in the market's own currency.

Prices are date scoped: the same hotel returns a different price for a different `checkInDate`/`checkOutDate`, and Google's list can differ slightly from a browser session because it rotates sponsored results. Coordinates and `placeId` are best effort, because Google does not expose them on every layout.

### Track Hotel Rates, Rate Parity And Price Calendars On A Schedule

Set `priceWindowEnd` and the actor reprices the same length of stay for every check-in day from `checkInDate` up to that date, up to 30 check-in days in one run. Each priced date is a separate `prices-fetched` charge per hotel, which makes a date sweep the cheapest way to build a hotel price calendar or to answer "which weekend is cheapest" without running the actor 30 times.

For rate parity, compare the `offers` array of one hotel: the official-site row is flagged with `isOfficial: true`, so any OTA row with a lower `pricePerNight` is a visible undercut. For markets, schedule a daily run with a fixed date offset and compare rows by `hotelId` and `checkIn` across runs; each row carries `scrapedAt` and the exact `checkIn`/`checkOut` that produced it, so a scheduled dataset becomes your own price history.

Keep `includePrices` on for anything involving rates. Turning it off returns hotel identity, rating and stars only, at the hotel event price and no prices charge.

### Input Parameters

| Field | Type | Required | Default | Notes |
| --- | --- | --- | --- | --- |
| `searchQueries` | array | No | `["hotels in New York"]` | One destination per line, for example `hotels in New York`, `Paris 5 star hotels`, `resorts in Bali`. Each is paged and de-duplicated. Provide this or `hotelUrls`. |
| `hotelUrls` | array | No | `[]` | Exact hotels: a Google Hotels entity link, a `ChkI` token, a Maps link, a `ChIJ` place id, or `Name + City`. Ideal for a fixed competitor set. |
| `checkInDate` | string | No | tomorrow | Check-in day in `YYYY-MM-DD`. Prices are date scoped. Leave both dates empty for a one-night stay starting tomorrow. |
| `checkOutDate` | string | No | day after check-in | Check-out day in `YYYY-MM-DD`. Must be after check-in; the gap sets the length of stay for every priced date. |
| `priceWindowEnd` | string | No | none | Reprice the same length of stay for every check-in day from `checkInDate` up to this date. Maximum 30 check-in days; each extra date is a separate prices charge per hotel. |
| `adults` | integer | No | `2` | Adult guests, 1 to 8. |
| `children` | integer | No | `0` | Children, 0 to 6. |
| `rooms` | integer | No | `1` | Rooms, 1 to 8. |
| `currency` | string | No | `USD` | 3-letter currency for all prices: USD, EUR, GBP, JPY, AUD, CAD, CHF, AED, BRL, PLN, INR, KRW, SEK, NZD, MXN, ZAR, THB, TRY. |
| `languageCode` | string | No | `en` | Interface language (`hl`), for example `en`, `de`, `fr`. |
| `countryCode` | string | No | `us` | Two-letter search region (`gl`), for example `us`, `de`, `gb`. |
| `maxResults` | integer | No | `20` | Stop after this many unique hotels across all queries and links. 0 means no cap (a hard safety cap still applies). Maximum 1000. |
| `minPrice` | integer | No | none | Keep only hotels whose lead price per night is at or above this value. |
| `maxPrice` | integer | No | none | Keep only hotels whose lead price per night is at or below this value. |
| `minGuestRating` | number | No | `0` | Keep only hotels with a guest score at or above this value (0 to 5). 0 disables the filter. |
| `minStars` | integer | No | `0` | Keep only hotels with at least this star class (1 to 5) when Google reports one. 0 disables the filter. |
| `sortBy` | string | No | `relevance` | `relevance`, `priceLow`, `priceHigh`, `rating` or `stars`. |
| `includePrices` | boolean | No | `true` | Fetch the lead price plus the full per-source OTA ladder with booking links. Needs check-in and check-out dates. |
| `includeReviews` | boolean | No | `false` | Fetch guest reviews into a separate `reviews` dataset. |
| `maxReviews` | integer | No | `10` | Reviews per hotel, 1 to 50. Only used when `includeReviews` is on. |
| `maxConcurrency` | integer | No | `5` | Hotel pages fetched in parallel, 1 to 20. Higher is faster and easier to throttle. |
| `proxyConfiguration` | object | No | Apify Proxy | Proxy for Google requests. Residential is recommended for higher volumes. |

### Output Fields

#### Hotels dataset (default)

One row per hotel per stay-date.

- `hotelId`, `name`, `url`, `placeId`: Google entity token (`ChkI...`), hotel name, Google Hotels URL and `ChIJ` place id when found.
- `address`, `latitude`, `longitude`: location. Coordinates are best effort.
- `starClass`, `guestRating`, `reviewCount`: hotel class stars, guest score from 0 to 5 and review count.
- `leadVendor`, `pricePerNight`, `totalPrice`, `currency`, `dealBadge`: the lead price for the requested stay, plus deal text such as `23% less than usual`.
- `offers`: one entry per booking source with `vendor`, `pricePerNight`, `totalPrice`, `currency`, `priceText`, `bookingUrl` and `isOfficial`.
- `rooms`: reserved in the dataset schema and currently returned as an empty array; the per-source ladder is in `offers`.
- `checkIn`, `checkOut`, `query`, `scrapedAt`: the search context that produced the row.
- `error`, `errorMessage`: set on a failed row. Error rows are not charged for the hotel event.

Dataset view: `overview`.

#### Reviews dataset (only when `includeReviews` is on)

One row per guest review.

- `hotelId`, `hotelName`, `hotelUrl`, `checkIn`, `checkOut`: the hotel and stay context.
- `reviewer`, `rating`, `text`, `date`, `ownerResponse`: the review itself and the hotel's reply when present.
- `scrapedAt`: ISO 8601 timestamp.

Dataset view: `overview`.

### Example Input And Output

Example input:

```json
{
  "searchQueries": ["hotels in New York"],
  "checkInDate": "2026-12-10",
  "checkOutDate": "2026-12-11",
  "currency": "USD",
  "maxResults": 20,
  "includePrices": true,
  "includeReviews": false
}
```

Example hotel row:

```json
{
  "hotelId": "ChkIhLCQwvjO2IYWGg0vZy8xMXE0bTZieDkyEAE",
  "name": "Example Midtown Hotel",
  "url": "https://www.google.com/travel/hotels/entity/ChkIhLCQwvjO2IYWGg0vZy8xMXE0bTZieDkyEAE",
  "placeId": "ChIJhLCQwvjO2IYW",
  "address": "123 W 45th St, New York, NY 10036",
  "latitude": 40.7579,
  "longitude": -73.9891,
  "starClass": 4,
  "guestRating": 4.4,
  "reviewCount": 2134,
  "leadVendor": "Booking.com",
  "pricePerNight": 189,
  "totalPrice": 189,
  "currency": "USD",
  "dealBadge": "12% less than usual",
  "offers": [
    {
      "vendor": "Booking.com",
      "pricePerNight": 189,
      "totalPrice": 189,
      "currency": "USD",
      "priceText": "$189",
      "bookingUrl": "https://www.booking.com/...",
      "isOfficial": false
    },
    {
      "vendor": "Official site",
      "pricePerNight": 205,
      "totalPrice": 205,
      "currency": "USD",
      "priceText": "$205",
      "bookingUrl": "https://www.examplehotel.com/...",
      "isOfficial": true
    }
  ],
  "rooms": [],
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-11",
  "query": "hotels in New York",
  "scrapedAt": "2026-11-15T09:00:00.000Z"
}
```

Example reviews row:

```json
{
  "hotelId": "ChkIhLCQwvjO2IYWGg0vZy8xMXE0bTZieDkyEAE",
  "hotelName": "Example Midtown Hotel",
  "hotelUrl": "https://www.google.com/travel/hotels/entity/ChkIhLCQwvjO2IYWGg0vZy8xMXE0bTZieDkyEAE",
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-11",
  "reviewer": "Alex",
  "rating": 4,
  "text": "Great location, small rooms.",
  "date": "2026-09-02",
  "ownerResponse": "Thank you for staying with us.",
  "scrapedAt": "2026-11-15T09:00:05.000Z"
}
```

### Integrations & Automation

Both datasets are standard Apify datasets, so you can export JSON, CSV or Excel, read them through the Apify API, or forward them with a platform webhook when a run finishes. Zapier, Make and n8n can ingest the dataset to update a sheet, a database or an alerting channel.

For monitoring, schedule the actor daily or hourly with fixed dates or a rolling offset, keep the same `searchQueries` or `hotelUrls`, and keep `currency`, `adults` and `rooms` constant so runs stay comparable. A weekly schedule is enough for slow markets; daily is the norm for rate parity. Recurring runs also improve how the actor is ranked in the Apify Store.

### Related Actors

- [vittuhy/google-travel-hotel-prices](https://apify.com/vittuhy/google-travel-hotel-prices)
- [zerobreak/google-hotels-scraper](https://apify.com/zerobreak/google-hotels-scraper)
- [kestrel/google-hotels-prices](https://apify.com/kestrel/google-hotels-prices)
- [santamaria-automations/booking-com-scraper](https://apify.com/santamaria-automations/booking-com-scraper)
- [voyager/booking-scraper](https://apify.com/voyager/booking-scraper)

### FAQ

#### Is there a Google Hotels API?

No. Google publishes no public API for Google Hotels prices, the OTA rate ladder or hotel reviews, and the travel partner APIs that do exist are commercial agreements rather than self-serve endpoints. Google's own price tracking picks the sources and keeps the history inside Google, with no export. This actor reads the public Google Travel pages and returns the same prices, sources and reviews as rows you own.

#### What are the alternatives to this actor for hotel price data?

Other Apify actors cover the same target with different pricing, and hotel rate monitors built on third-party data APIs sell per hotel and date checked. OTA scrapers for Booking.com or Expedia return one channel at a time, while Google Hotels already aggregates the channels for you. This actor is priced at $0.80 per 1,000 hotels, $2.00 per 1,000 priced stays and $1.00 per 1,000 reviews, which is at the low end for Google Hotels data in the Store.

#### How do I track hotel prices daily?

Schedule the actor with `searchQueries` or a fixed `hotelUrls` list, keep the dates and occupancy constant, and run it daily. Each row has `scrapedAt` and the exact `checkIn`/`checkOut`, so you can join runs on `hotelId` and build your own price history. To watch prices for stays further out, shift the dates forward between runs rather than leaving them fixed.

#### What is rate parity and how do I check it with this actor?

Rate parity is whether the hotel's own website and the OTAs all sell the same room at the same price. In each hotel's `offers` array, the direct-booking row carries `isOfficial: true`, so any non-official row with a lower `pricePerNight` is an undercut. Running a fixed competitive set daily turns that comparison into an alert you can trigger on.

#### Can I get prices for a whole date window in one run?

Yes. Set `priceWindowEnd` and the actor reprices the same length of stay for every check-in day from `checkInDate` up to that date, up to 30 check-in days. Each extra date is charged as another `prices-fetched` event per hotel, so a 20-hotel, 7-date sweep is 140 priced stays.

#### Which booking sites are included in the offer ladder?

Every source Google lists for that hotel and stay, which typically includes Booking.com, Agoda, Expedia, Hotels.com, Trip.com and the hotel's own site, and can vary by property and dates. The actor returns what Google returns; it does not add sources Google does not show.

#### Do I need a proxy?

Not for small runs. Google answers plain impersonated HTTP requests, and `maxConcurrency` at 5 keeps volume polite. For larger volumes or repeated runs from the same IP, attach a residential Apify proxy in `proxyConfiguration`.

#### Can I limit the run to hotels that match my filters?

Yes. `minPrice`, `maxPrice`, `minGuestRating`, `minStars` and `sortBy` are applied as Google's own filters, and `maxResults` caps the number of unique hotels. `maxResults: 0` removes the cap but keeps the hard safety cap.

### SEO Keywords

google hotels scraper, google hotels api, google travel hotel prices, hotel price monitoring, ota rate parity, hotel rate shopping, hotel price tracker, hotel price calendar, google hotels prices by date, hotel competitor rates, booking.com price comparison, hotel revenue management data, hotel review scraper, hotel data export, google hotels without api, hotel rates api alternative, destination price comparison, travel market research

### For AI Agents & LLM Apps

Purpose: return hotel rows with a lead nightly price and the full OTA offer ladder for a destination or an exact hotel list and stay, and optionally guest review rows.

Minimal working input:

```json
{ "searchQueries": ["hotels in New York"] }
```

Variants: exact competitor set for a scheduled check, and a date sweep for a price calendar.

```json
{ "hotelUrls": ["ChkIhLCQwvjO2IYWGg0vZy8xMXE0bTZieDkyEAE"], "checkInDate": "2026-12-10", "checkOutDate": "2026-12-11" }
```

```json
{ "searchQueries": ["hotels in Lisbon"], "checkInDate": "2026-12-10", "checkOutDate": "2026-12-12", "priceWindowEnd": "2027-01-08" }
```

Output fields: hotels dataset: `hotelId`, `name`, `url`, `placeId`, `address`, `latitude`, `longitude`, `starClass`, `guestRating`, `reviewCount`, `leadVendor`, `pricePerNight`, `totalPrice`, `currency`, `dealBadge`, `offers`, `rooms`, `checkIn`, `checkOut`, `query`, `scrapedAt`, `error`, `errorMessage`. Each offer: `vendor`, `pricePerNight`, `totalPrice`, `currency`, `priceText`, `bookingUrl`, `isOfficial`. Reviews dataset: `hotelId`, `hotelName`, `hotelUrl`, `checkIn`, `checkOut`, `reviewer`, `rating`, `text`, `date`, `ownerResponse`, `scrapedAt`.

Behaviors an agent should know:

- At least one of `searchQueries` or `hotelUrls` is required; the run fails with an input error when both are empty.
- Leave both dates empty to price a one-night stay starting tomorrow, computed at run time. `checkOutDate` must be after `checkInDate`.
- `priceWindowEnd` multiplies cost: it reprices every check-in day up to that date, maximum 30 check-in days, and each date is a separate `prices-fetched` charge per hotel.
- `maxResults` defaults to 20 and 0 means no cap. Lower it first when you need a cheap exploratory run.
- `includePrices` defaults to true. Turning it off removes the prices charge and the `offers` ladder.
- `includeReviews` defaults to false and writes to a separate `reviews` dataset; `maxReviews` defaults to 10 and is capped at 50.
- Error rows carry `error` and `errorMessage` and are not charged for the hotel event.
- `rooms` is currently returned as an empty array; read `offers` for per-source rates.

Billing: pay-per-event. `hotel` $0.0008 per hotel row, `prices-fetched` $0.002 per hotel per stay-date priced, `review-scraped` $0.001 per review, plus the standard Apify actor start event.

### Legal & Compliance Disclaimer

This actor is independent and is not affiliated with, endorsed by or sponsored by Google LLC or by any booking site whose rates appear in the output. It reads only publicly available Google Travel pages and the public endpoints those pages call. It does not log in, does not bypass authentication, does not solve CAPTCHAs and does not use any private Google API.

Rates, availability and review counts are observations at `scrapedAt`: Google rotates listings and prices change, so a row is not a guaranteed bookable price and must not be presented to end users as a live quote without re-checking. Booking links point to third-party sites, and any booking made through them is subject to that site's terms. Users are responsible for complying with Google's Terms of Service and with applicable data-protection law (for example GDPR) when storing or publishing hotel data. Reviewer names in the reviews dataset are personal data and must not be used for unsolicited outreach.

# Actor input Schema

## `searchQueries` (type: `array`):

One destination per line, e.g. 'hotels in New York', 'Paris 5 star hotels', 'resorts in Bali'. Each is paged server-side and de-duplicated. Provide this OR hotelUrls (at least one required).

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

Specific hotels, one per line. Accepts a Google Hotels /travel/hotels/entity/ link, a ChkI entity token, a maps link, a ChIJ place id, or a plain 'Name + City'. Ideal for a fixed competitor set you re-run on a schedule.

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

Check-in day YYYY-MM-DD. Prices are date-scoped. Leave both dates empty for a 1-night stay starting tomorrow (computed at run time).

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

Check-out day YYYY-MM-DD. Must be after check-in. The gap sets the length of stay for every priced date.

## `priceWindowEnd` (type: `string`):

Reprice the same length-of-stay for every check-in day from check-in up to this date (YYYY-MM-DD, max 30 days). Each extra date is a separate prices charge per hotel.

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

Number of adult guests.

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

Number of children.

## `rooms` (type: `integer`):

Number of rooms.

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

3-letter currency for all prices.

## `languageCode` (type: `string`):

Interface language (hl), e.g. en, de, fr.

## `countryCode` (type: `string`):

Two-letter region for the search (gl), e.g. us, de, gb.

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

Stop after this many unique hotels across all queries and links. 0 = no cap (hard safety cap still applies).

## `minPrice` (type: `integer`):

Keep only hotels whose lead price per night is at or above this (in selected currency). Empty = no filter.

## `maxPrice` (type: `integer`):

Keep only hotels whose lead price per night is at or below this. Empty = no filter.

## `minGuestRating` (type: `number`):

Keep only hotels with guest score at or above this (0-5). 0 = no filter.

## `minStars` (type: `integer`):

Keep only hotels with at least this hotel-class star rating (1-5) when Google reports it. 0 = no filter.

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

Result ordering preference.

## `includePrices` (type: `boolean`):

Fetch the lead price plus the full per-source OTA ladder with booking links. Needs check-in/out dates.

## `includeReviews` (type: `boolean`):

Fetch guest reviews into a separate 'reviews' dataset (reviewer, rating, text, date, owner reply).

## `maxReviews` (type: `integer`):

Cap on guest reviews pulled per hotel.

## `maxConcurrency` (type: `integer`):

How many hotel pages to fetch in parallel. Higher is faster but easier to throttle.

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

Proxy to route Google requests through. Residential recommended for higher volumes.

## Actor input object example

```json
{
  "searchQueries": [
    "hotels in New York"
  ],
  "hotelUrls": [],
  "checkInDate": "",
  "checkOutDate": "",
  "priceWindowEnd": "",
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "languageCode": "en",
  "countryCode": "us",
  "maxResults": 20,
  "minGuestRating": 0,
  "minStars": 0,
  "sortBy": "relevance",
  "includePrices": true,
  "includeReviews": false,
  "maxReviews": 10,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per hotel per stay-date with OTA price ladder.

## `reviews` (type: `string`):

Guest reviews, one row per review (only when includeReviews is on).

# 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 = {
    "searchQueries": [
        "hotels in New York"
    ],
    "hotelUrls": [],
    "checkInDate": "",
    "checkOutDate": "",
    "priceWindowEnd": "",
    "adults": 2,
    "children": 0,
    "rooms": 1,
    "currency": "USD",
    "languageCode": "en",
    "countryCode": "us",
    "maxResults": 20,
    "sortBy": "relevance",
    "includePrices": true,
    "includeReviews": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

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

```

## Python example

```python
from apify_client import ApifyClient

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

# Prepare the Actor input
run_input = {
    "searchQueries": ["hotels in New York"],
    "hotelUrls": [],
    "checkInDate": "",
    "checkOutDate": "",
    "priceWindowEnd": "",
    "adults": 2,
    "children": 0,
    "rooms": 1,
    "currency": "USD",
    "languageCode": "en",
    "countryCode": "us",
    "maxResults": 20,
    "sortBy": "relevance",
    "includePrices": True,
    "includeReviews": False,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "hotels in New York"
  ],
  "hotelUrls": [],
  "checkInDate": "",
  "checkOutDate": "",
  "priceWindowEnd": "",
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "languageCode": "en",
  "countryCode": "us",
  "maxResults": 20,
  "sortBy": "relevance",
  "includePrices": true,
  "includeReviews": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ahmed_jasarevic/google-hotels-scraper --silent --output-dataset

```

## MCP server setup

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

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

## OpenAPI specification

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