# Google Hotels Scraper & Price API: Verified Dates (`zerofail/google-hotels-scraper`) Actor

Returns live Google Hotels prices per night and per stay, with stars and rating, for any destination and check-in dates: up to 20 hotels per search and date. Every row is checked against the dates you asked for; unverified rows are dropped and never charged. Daily price monitoring: only changes.

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

## Pricing

from $3.20 / 1,000 verified hotel results

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 & Price API: Verified Dates

![Actor status](https://apify.com/actor-badge?actor=zerofail/google-hotels-scraper)

Returns live Google Hotels prices (per night and per stay, currency, stars, rating, review count)
for any destination and check-in dates, up to 20 hotels per search and per date, one row per hotel
and date. Every row is checked against the dates you asked for, and a row that fails the check is
dropped and never charged.

**Try it now:** the prefilled input prices hotels in Paris for one night, 30 days from today, for
2 adults: one results page, at most 20 verified rows, so $0.12 or less on the free plan (see
*How much does 1,000 hotels cost?*), inside the free monthly platform credit of Apify's free plan.
Every issue opened on this Actor is answered within 6 hours.

### What you can do with it

- **Watch a destination's prices every morning (revenue management, rate shopping).** One search
  per city or district, `monitorMode: true`, scheduled daily: you get the hotels whose price moved,
  which works as a daily hotel price alert. Google shows a rotating sample of about 20 hotels per
  search, so this watches a **market**, not a fixed list of named hotels.
- **Compare a whole market on fixed dates (comparison site, newsletter, market study).** Ten
  destinations on the same two dates is one run (`checkInMode: "fixedDates"`), and every row states
  the stay and the party it was quoted for.
- **Answer an AI agent's question via MCP, e.g. "what does a room in Lisbon cost next Friday?"**
  Rows are keyed on Google's stable hotel ID (`entityId`), not on a rank that moves.
- **Feed your own pipeline from n8n, Make or Clay.** One HTTP call starts a run and returns the
  dataset. A run that fails returns an error your workflow can branch on.

### Why this one

- **Verified dates.** Google ignores the check-in/check-out parameters passed in the page URL
  (`checkin`, `checkout`, `check_in_date`, `dates`) and answers 200 with its default dates. A past
  date is replaced by default dates. This Actor checks, on every row, that the page priced the
  dates you asked for. In our own tests (30 Oct 2026), 40 of 40 test stays came back at the
  requested dates. Past check-in dates are refused before any request.
- **Honest run status.** A run that could not verify anything **fails** with the reason named. It
  never shows as a green run over an empty dataset. `PARTIAL` names what went wrong. An empty
  dataset counts as a success only when it is a real answer: every page was read and priced for
  your dates, and no hotel was selling the stay (`NO_RESULTS`), or nothing changed in monitor mode.
- **Pay per verified row.** You only pay for rows that passed the date check and reached your
  dataset. In monitor mode you pay a lower rate per hotel-date compared, and you only receive what
  changed. See "How much does 1,000 hotels cost?" below.

### Example output

One row, exactly as a real run produced it:

```json
{
  "entityId": "ChgI9LOche-i1LjzARoLL2cvMXRkM2t4YjMQAQ",
  "hotelName": "Hôtel Belgrand",
  "googleHotelsUrl": "https://www.google.com/travel/hotels/entity/ChgI9LOche-i1LjzARoLL2cvMXRkM2t4YjMQAQ/prices?hl=en-US&gl=us",
  "stars": 3,
  "rating": 3.4,
  "reviewCount": 442,
  "pricePerNight": 62.0,
  "totalPrice": 62.0,
  "currency": "EUR",
  "taxesIncluded": true,
  "featuredOfferSite": null,
  "featuredOfferPrice": null,
  "typicalPriceLow": null,
  "typicalPriceHigh": null,
  "offerDetailStatus": "not_requested",
  "checkInRequested": "2026-11-09",
  "dateVerified": true,
  "nights": 1,
  "adults": 2,
  "childAges": [],
  "positionInResults": 1,
  "searchQuery": "hotels in Paris",
  "scrapedAt": "2026-11-08T19:18:40Z",
  "changeType": null,
  "previousPricePerNight": null
}
```

| Field | Notes |
| --- | --- |
| `entityId` | Google's stable hotel ID. Use this, never `positionInResults`, to follow a hotel across runs. |
| `hotelName`, `googleHotelsUrl` | Name as displayed, and the hotel's own Google Hotels page. |
| `pricePerNight`, `totalPrice`, `currency` | `totalPrice` is the price of the whole stay as shown on the card; `null` when the page shows none. |
| `taxesIncluded` | `true`/`false` when the page states it in English or French, `null` otherwise. |
| `featuredOfferSite`, `featuredOfferPrice` | The first non-sponsored offer Google lists for the hotel, and its price. Sponsored "Featured options" ads are never read as the offer. `null` unless `includeFeaturedOffer` is on. |
| `typicalPriceLow`, `typicalPriceHigh` | Google's "this hotel typically costs between X and Y per night" range for the requested dates, when the page shows it (it did on 33 of 40 measured pages). |
| `offerDetailStatus` | `not_requested`, `ok` or `failed`. A `failed` detail call leaves the four fields above empty and changes nothing else: the row keeps its verified base price. |
| `stars` | Hotel class, when the page states it. Apartments and guest houses often have none. |
| `rating`, `reviewCount` | Review score out of 5 and how many reviews it is based on. |
| `checkInRequested`, `nights`, `adults`, `childAges` | The stay and the party the price was quoted for. |
| `dateVerified` | Always `true`: a row only exists for a page whose dates matched. |
| `positionInResults`, `searchQuery`, `scrapedAt` | Rank on the page, the search as sent to Google, and the UTC timestamp. |
| `changeType`, `previousPricePerNight` | `null` in normal mode. In monitor mode: `new`, `priceChanged` (with the price it is compared against) or `becameAvailable`. |

### How much does 1,000 hotels cost?

You pay per **verified hotel row**: a row that passed the date check and reached your dataset.
Nothing else is charged. The price depends on your Apify plan:

| Per 1,000 | Free | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| Verified hotel rows (`hotel-result`) | $6 | $4 | $3.60 | $3.20 |
| Monitor mode, hotel-dates compared (`hotel-monitored`, replaces `hotel-result`) | $3 | $2 | $1.80 | $1.60 |
| Booking offer detail (`hotel-offer-detail`, only with `includeFeaturedOffer: true`) | $22.50 | $15 | $13.50 | $12 |

What that means for a typical run:

- **One city, one date**: one results page, up to 20 verified rows: at most **$0.12** on the free
  plan, $0.08 on Bronze, $0.072 on Silver, $0.064 on Gold.
- **A city watched every morning**: one search × 14 check-in dates in monitor mode, up to 280
  checks a day: at most **$0.84 a day** on the free plan, $0.56 on Bronze, $0.504 on Silver,
  $0.448 on Gold.

| Event | When it is charged | Free | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- | --- |
| `hotel-result` | Each verified hotel × date row pushed to the dataset | $0.006 | $0.004 | $0.0036 | $0.0032 |
| `hotel-monitored` | In monitor mode, each verified row **compared** to the previous run, changed or not. Replaces `hotel-result` in that mode — never both on one row | $0.003 | $0.002 | $0.0018 | $0.0016 |
| `hotel-offer-detail` | Each successful booking-offer enrichment, only with `includeFeaturedOffer: true` | $0.0225 | $0.015 | $0.0135 | $0.012 |

What is never charged:

- a card with no price, a card priced in another currency, and every card on a page Google
  answered with other dates — dropped, never stored;
- a run that verifies nothing: it charges nothing, whether it failed or simply found no price
  listed for the stay;
- a detail call that fails or times out: free, and the row keeps its verified base price.

The run's **Max total charge** field (Apify's own) is respected: once there is no room for another
event the Actor stops fetching, keeps the rows it already delivered and reports
`budgetLimitReached: true`. Reaching your budget is a partial success, not a failed run.

### Configuration

Every field has a default that works, so the Actor runs as-is on `hotels in Paris` for tomorrow.

| Field | Default | What it does |
| --- | --- | --- |
| `searches` | `["hotels in Paris"]` | One or more destinations. `Lyon` is sent as `hotels in Lyon`; a search that already names an accommodation is left as typed. |
| `checkInMode` | `nextNDays` | A rolling window from today (best for a daily schedule), or `fixedDates` for an explicit list. |
| `daysAhead` / `numberOfDates` | `1` / `1` | Rolling window: how far ahead the first check-in is, and how many consecutive dates follow. |
| `checkInDates` | `[]` | Fixed mode only, `YYYY-MM-DD`. Listing dates without setting `checkInMode` to `fixedDates` stops the run instead of pricing the rolling window. Past dates are refused, not replaced, and so are check-ins more than 394 days ahead — the furthest the rolling window itself can reach, and further than hotels publish rates. |
| `nights` | `1` | Length of the stay. There is no check-out field on purpose — see the FAQ. |
| `adults` / `children` | `2` / `[]` | `children` takes one age in years per child (0-17); Google's pricing requires the ages. |
| `currency` | `EUR` | ISO 4217. For `EUR`, `USD`, `GBP` and `JPY` the Actor also checks the page's prices really are in that currency. |
| `language` / `country` | `en-US` / `us` | Google's `hl` and `gl`. Both European and US number formats are read. |
| `maxHotelsPerSearch` | `20` | 20 is what one results page holds — see the limits. |
| `includeFeaturedOffer` | `false` | Adds the booking offer and the price range per hotel, at one extra request per hotel. |
| `monitorMode` | `false` | Return only what changed since the last run with the same tracking key. |
| `minChangePct` | `5` | Monitor mode: a price must move by strictly more than this to be reported. `0` reports every change. |
| `trackingKey` | `""` | Monitor mode: pins the comparison across runs. Empty means derived from the searches, the date window, the travellers and the currency. |
| `debug` | `false` | Keeps each fetched page in the key-value store for support. A page weighs ~3 MB. |

One run fetches one page per search **and** per check-in date: 3 destinations × 7 dates = 21
pages, up to 420 rows.

### Schedule it daily

Monitor mode is built for a schedule: the comparison is stored between runs, so from the second
run on, a scheduled Task reports only what moved.

1. In Apify Console, save your input as a **Task** with `monitorMode: true`, for example one search,
   `checkInMode: "nextNDays"`, `numberOfDates: 14`.
2. Add a **Schedule** to that Task: `0 7 * * *` runs it every morning at 07:00.
3. Optionally set `trackingKey` (e.g. `paris-market`). If you set it, you keep the history when you
   edit the search text. If you leave it empty, editing the search, dates, travellers or currency
   starts a new comparison.

What to expect: the first runs also list hotels the rotating sample had not shown before, as
`new`. That flow dries up after a few runs, and `priceChanged` is what remains. A run where nothing
moved is a **success** with an empty dataset.

From your own stack, start a run and get the rows in one call:

```bash
## n8n "HTTP Request" node, Make, Clay or curl: synchronous, returns the dataset items
curl -X POST "https://api.apify.com/v2/acts/zerofail~google-hotels-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"searches":["hotels in Lisbon"],"checkInMode":"nextNDays","daysAhead":5,"numberOfDates":3,"nights":2,"adults":2,"currency":"EUR","monitorMode":false}'
```

A run that fails returns HTTP 400 (`run-failed`), so a workflow can branch on it instead of
silently storing nothing. The synchronous call waits at most 300 seconds. A longer run answers 408
and keeps running, so use the asynchronous run endpoints for big inputs.

### Integrations

- **MCP / AI agents.** Available through Apify's MCP server, with a description written for
  agents: live prices for a destination and check-in dates, every row date-checked, monitor mode
  keyed on Google's stable hotel entity ID. Not historical data, not flights, not vacation
  rentals.
- **n8n and Make.** The Apify nodes, or the `run-sync-get-dataset-items` call above.
- **Clay, Sheets, BI.** The dataset exports to JSON, CSV, Excel or an API feed; one row per hotel
  and date needs no reshaping.

### FAQ

#### Why does my run sometimes fail?

Because it could not verify anything. If every search was blocked, every page came back priced
for other dates, or no page could be fetched at all, the run ends **Failed** with a message
naming the search and the reason. A green run over an empty dataset is what makes a broken
monitoring job invisible for a week, so this Actor refuses to produce one. Run `PARTIAL` is the
middle ground: rows were delivered, and something — a block, a substitution, an unpriced page —
is named in the summary.

**An empty answer is not a failure.** If every page was fetched, read, and confirmed to price the
stay you asked for, and no hotel on them carries a price, the run **succeeds** with an empty
dataset and `runStatus: "NO_RESULTS"`: Google's answer is that nobody sells that stay yet, and
that is information, not a breakdown. It happens mostly for check-ins far ahead. Nothing is
pushed and nothing is charged. A single blocked or substituted page puts the run back on
**Failed**, and so does a run whose pages held no hotel card at all — that is what a broken
reader looks like, and it is never reported as "no results".

Every run also stores a `RUN-SUMMARY` record in its key-value store, where `candidateRows` always
equals `validRows` plus the `dropped*` counters, `rowsNotPushedBudgetLimit` and
`monitoredUnchanged` — every card the Actor read is accounted for.

#### Why is a row not charged?

Because it was not verified. No price on the card, a price in another currency, or a page Google
answered with a different stay: the row is dropped before the dataset, so it cannot be charged.
`chargedEvents` in the summary is what was actually charged, not what the Actor hoped for.

#### How do I get only the changes?

Set `monitorMode: true` and run it twice with the same `trackingKey`. The second run pushes only
rows marked `new`, `priceChanged` (with `previousPricePerNight`) or `becameAvailable`; rows whose
price held are counted in `monitoredUnchanged` and not pushed. **A run where nothing changed is a
success** — `Succeeded`, empty dataset, and a status line such as
`0 change(s) in 20 verified row(s) (20 unchanged)`. That is the one case where no row is not a
failure.

A hotel dropping out of Google's results is deliberately **not** reported. Google answers each
search with a rotating sample of about twenty hotels — two sessions share only eight of twenty,
and three runs minutes apart would have published "no longer listed" rows for hotels that never
went anywhere. Those absences are counted in `absencesNotReported` and nothing is claimed about
them.

The same rotation works the other way round: the first runs of a monitored search report a steady
stream of `new` rows, which are hotels the sample had not shown yet rather than hotels that just
opened. How much of a report that is depends entirely on the interval, and both ends are measured
on the same search — one destination, 14 check-in dates:

| Interval between the two runs | Rows delivered | `priceChanged` | `new` |
| --- | --- | --- | --- |
| 90 seconds | 100 | 2 | 98 |
| **24 hours** (a daily schedule) | 144 | **51** | 93 |

At the cadence this Actor is built for, two runs out of five report a price that actually moved.
Over 90 seconds prices have no time to move, so almost everything left is rotation. The stored
state keeps every hotel it has ever seen for 90 days, so the `new` flow dries up as a tracking key
accumulates runs, and `priceChanged` is what remains.

On that 24-hour pair, 187 hotel-dates could be compared across the two runs, and **51 of them —
27 % — had moved by more than 5 %**, by a median of 10 % and up to 43 %. Those 51 rows involve 27
distinct hotels: the unit is a hotel on a date, not a hotel, since one hotel is priced separately
for each of the 14 check-in dates. One search, one 24-hour interval, measured once.

#### Which destinations work?

The rows are the Google Travel hotel prices anyone sees at google.com/travel, so anything Google
Hotels itself understands works: a city (`Lyon`), a district, a region, or a free-text
search (`hotels near Gare de Lyon`). Note that Google never answers
"no results" — a misspelled or made-up place is quietly resolved to somewhere else and comes back
full of priced hotels. Check `searchQuery` and the first `hotelName`s of a new search once; after
that it is stable.

#### Why is there no check-out field?

Because the stay is sent as `nights` and every row is verified against it; a separate check-out
date would add nothing.

#### What happens if Google changes its page?

A run that cannot read or verify the page fails with the reason named — it does not hand back
prices it could not check, so a change on Google's side shows up the same day as a failed run,
not weeks later as wrong data. Every issue opened on this Actor is answered within 6 hours.

For reference, the Actor with the largest user base in this category succeeds on only **76 %** of
its runs (Apify Store data, October 2026).

#### Does it need a login, cookies or a proxy?

No. One public request per search and per date, with no account, no cookies and no proxy: on
Apify's infrastructure, 30 of 30 pages went through that way in testing.

### Limits, stated plainly

- **20 hotels per search and per date.** A results page holds exactly 20 cards and has no second
  page: 15 placements of the documented pagination token and a real captured `qs`/`ap` parameter
  all returned the same 20 hotels. Volume comes from more destinations and more dates, not deeper
  pages.
- **The 20 are a sample, not a top 20.** Two identical requests from two sessions returned 8
  hotels in common out of 20. A hotel missing from the next run is churn, not a disappearance.
- **Beyond ~1 year ahead**, far fewer hotels carry a price (9 of 18 at 400 days, in testing), and
  a check-in more than 394 days out is refused before any request. A stay nobody prices yet comes
  back as a successful run with an empty dataset (`NO_RESULTS`), not as a failure.
- **One request per search and date, no browser, no proxy.** A 30-page run on Apify took 2 min
  26 s and cost under a cent of compute; 30 of 30 pages went through and 586 of 586 hotel cards
  were priced and verified. Searches run one after another on purpose: parallel requests work,
  but the run is already cheap, and sequential is the behaviour whose budget and billing rules
  are tested.
- **The featured offer is off by default.** It turns one request per search into one request per
  hotel: 20 hotels mean 21 requests instead of 1. The call itself was reliable in testing (60 of
  60 pages answered, median 1.1 s), but the base price is what this Actor is for.
- **`featuredOfferPrice` can differ from `pricePerNight`.** The first is the bookable offer on the
  hotel's detail page, the second is the price on the results card; both are reported as Google
  showed them rather than reconciled into one number.
- **No personal data** is collected: public hotel and price information only, no profiles and no
  named reviews.

### Veille tarifaire hôtel (français)

**Prix vérifiés, suivi quotidien des changements.** Google Hotels ignore silencieusement les dates
d'une URL de recherche : cet Actor vérifie sur chaque ligne que la date réellement tarifée est
celle demandée, et n'enregistre — ni ne facture — aucune ligne qui échoue à ce contrôle. Un run
qui ne vérifie rien échoue explicitement, jamais un faux « succès » sur un dataset vide.

En mode suivi, vous ne recevez que les prix qui ont bougé depuis le run précédent, indexés sur
l'identifiant d'hôtel stable de Google : idéal pour surveiller les prix d'une ville chaque matin (Google affiche un échantillon tournant
d'une vingtaine d'hôtels par recherche : on suit un marché, pas une liste fixe d'hôtels).

**Prix :** de 3,20 $ (Gold) à 6 $ (offre gratuite) pour 1 000 lignes vérifiées, 4 $ en Bronze ; en mode suivi, de 1,60 $ à 3 $ pour 1 000 couples hôtel-date surveillés, et vous ne recevez que les changements. Les prix
et les montants français (`104 €`, espace insécable) sont lus nativement.

### Other Actors by zerofail

[**Google Trends Scraper**](https://apify.com/zerofail/google-trends-scraper) — up to 100
keywords compared on one common 0-100 scale, chained through adaptive anchor terms.

### Running it locally

```bash
apify run     # with storage/key_value_stores/default/INPUT.json prepared

## same run with billing simulated: every charge is logged to the charging-log dataset at $1,
## nothing is billed, and a budget can be tried out
ACTOR_TEST_PAY_PER_EVENT=1 ACTOR_MAX_TOTAL_CHARGE_USD=5 apify run

## monitor mode: run it twice with the same trackingKey. The second run reports only what moved;
## its state lives in storage/key_value_stores/monitor-state-<hash>/STATE
cp tests/inputs/monitor-first-run.json storage/key_value_stores/default/INPUT.json && apify run
```

Example inputs used for local and cloud verification live in `tests/inputs/`, including the three
example Tasks of the Store listing (`task-daily-paris.json`, `task-compare-10-cities.json`,
`task-track-14-dates.json`).

# Actor input Schema

## `searches` (type: `array`):

One or more destinations, e.g. "Lyon" or "hotels in Paris 15th". If a search doesn't look like a hotel query, the Actor prepends "hotels in " automatically.

## `checkInMode` (type: `string`):

"nextNDays": a rolling window starting a number of days from today (best for daily monitoring). "fixedDates": an explicit list of check-in dates.

## `daysAhead` (type: `integer`):

Only used when "checkInMode" is "nextNDays". 1 means tomorrow.

## `numberOfDates` (type: `integer`):

Only used when "checkInMode" is "nextNDays".

## `checkInDates` (type: `array`):

Only used when checkInMode is "fixedDates"; listing dates while the mode is "nextNDays" stops the run with an error. Format YYYY-MM-DD. Past dates are refused before any request (Google replaces a past date by its default dates), and so are dates more than 394 days ahead, where far fewer hotels carry a price.

## `nights` (type: `integer`):

Length of the stay, 1 to 60 nights. There is no check-out field: the stay is sent as a number of nights, and every row is verified against it.

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

Number of adult travellers the prices are for. Sent to Google explicitly on every request, never left to its default.

## `children` (type: `array`):

One age in years per child, between 0 and 17. Ages are required by Google's own pricing: there is no way to ask for "two children" without saying how old they are. Leave empty for adults only.

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

Three-letter ISO 4217 code, e.g. EUR, USD, GBP, JPY. For those four, the Actor also checks that the page's prices are in the requested currency; rows priced in another currency are dropped and not charged.

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

Google's "hl" parameter, e.g. en-US or fr. Changes how prices and numbers are formatted on the page; both US and European formats are read.

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

Google's "gl" parameter, e.g. us, fr.

## `maxHotelsPerSearch` (type: `integer`):

Up to 20. A Google Hotels results page holds 20 hotels and has no second page, so 20 is the maximum per search and date. For more rows, add searches or check-in dates.

## `includeFeaturedOffer` (type: `boolean`):

Adds, per hotel, the first non-sponsored booking offer Google lists (site and price) and Google's typical price range. Costs one extra request and one hotel-offer-detail event per hotel ($0.0225 on the free plan, $0.012 to $0.015 on paid plans). If the extra call fails, only that hotel's detail fields stay empty (offerDetailStatus = "failed"), the row keeps its verified price, and the call is not charged. Off by default.

## `monitorMode` (type: `boolean`):

Return only what changed since the previous run with the same tracking key, matched on Google's stable hotel entity ID. Rows reach the dataset only as changeType new, priceChanged or becameAvailable; a run where nothing moved succeeds with an empty dataset. Google shows a rotating sample of about 20 hotels per search, so this watches a market: a hotel missing from one run is not reported. Use with a daily scheduled Task. Off by default.

## `minChangePct` (type: `integer`):

Only used when "monitorMode" is on. A price has to move by strictly more than this to be reported; 0 reports every change.

## `trackingKey` (type: `string`):

Pins the monitor state to a stable key across runs, recommended for scheduled Tasks. If empty, derived automatically from the searches, the date window, the travellers and the currency — convenient, but editing any of those starts a new comparison from scratch.

## `debug` (type: `boolean`):

Stores each fetched HTML page in the key-value store for support/debugging. Off by default; a page weighs about 3 MB.

## Actor input object example

```json
{
  "searches": [
    "hotels in Paris"
  ],
  "checkInMode": "nextNDays",
  "daysAhead": 30,
  "numberOfDates": 1,
  "checkInDates": [],
  "nights": 1,
  "adults": 2,
  "children": [],
  "currency": "EUR",
  "language": "en-US",
  "country": "us",
  "maxHotelsPerSearch": 20,
  "includeFeaturedOffer": false,
  "monitorMode": false,
  "minChangePct": 5,
  "trackingKey": "",
  "debug": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "searches": [
        "hotels in Paris"
    ],
    "daysAhead": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("zerofail/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 = {
    "searches": ["hotels in Paris"],
    "daysAhead": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("zerofail/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 '{
  "searches": [
    "hotels in Paris"
  ],
  "daysAhead": 30
}' |
apify call zerofail/google-hotels-scraper --silent --output-dataset

```

## MCP server setup

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