# Hotel Price Watch — Google Hotels Rate Alerts (`magnova/hotel-price-watch`) Actor

Search Google Hotels and watch rates for price drops. Give a destination and dates; get structured hotel rates — or run in watch mode and receive only rate-drop alerts. Built for AI agents: server-callable, pay per record, no start fee.

- **URL**: https://apify.com/magnova/hotel-price-watch.md
- **Developed by:** [Magnova](https://apify.com/magnova) (community)
- **Categories:** Travel, Automation, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 hotel records

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

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hotel Price Watch — Google Hotels Rate Alerts

Search Google Hotels, or **watch a stay's rates and get told only when they drop**.

Give a destination and dates and get structured hotel rates: property name, nightly rate, the total for the stay including taxes and fees, guest rating and review count, star class and amenities where Google shows them, and a Google Hotels link for the property with your dates applied. Run the same input in **watch mode** on a schedule and the actor remembers the rates — later runs deliver only the properties whose nightly rate fell, with the previous rate and the drop size, plus an optional alert the first time a stay's lowest rate crosses your target price.

Built for AI agents and automations: pay per record, no start fee, and a server mode that answers a POST with the records in the response — no run to start, no dataset to poll.

### Two modes

**Search** — returns the current hotels for each destination stay, cheapest first.

**Watch** — the first run stores the current rates and returns them as a baseline. Later runs return only `PRICE_DROP` and `TARGET_HIT` records. Schedule it daily and you hear about a stay again only when it gets cheaper. Watch state is kept per destination + dates + currency, in a named key-value store in the account running the actor.

### Example input

```json
{
  "searches": [
    { "destination": "Paris", "checkInDate": "2027-06-15", "checkOutDate": "2027-06-17" }
  ],
  "mode": "search",
  "maxResultsPerSearch": 20
}
```

### Example output

One `HOTEL` record (a real record from a staging run, trimmed):

```json
{
  "recordType": "HOTEL",
  "changeType": "SEARCH",
  "rank": 1,
  "destination": "Paris",
  "checkInDate": "2027-06-15",
  "checkOutDate": "2027-06-17",
  "nights": 2,
  "currency": "USD",
  "name": "Hôtel Beaunier - Porte d'Orléans - Paris 14",
  "pricePerNight": 104,
  "totalForStay": 223,
  "rating": 3.8,
  "reviewCount": 144,
  "starRating": null,
  "amenities": ["Free Wi-Fi", "Parking", "Restaurant", "Kid-friendly", "Smoke-free property"],
  "googleHotelsUrl": "https://www.google.com/travel/hotels/entity/ChgIxcu8nqrAo58_GgwvZy8xbjBieHM3aG4QAQ?q=hotels+in+Paris&ts=CAEaIAoCGgASGhIUCgcI6w8QBhgPEgcI6w8QBhgRGAIyAggB&hl=en&curr=USD",
  "hotelKey": "g-ChgIxcu8nqrAo58_GgwvZy8x"
}
```

A watch `PRICE_DROP` record carries the same fields plus `previousPricePerNight`, `dropAmount` and `dropPercent`. A `TARGET_HIT` record adds `targetPricePerNight`. Each search also produces one `SUMMARY` record (counts and the current lowest rate), and a search that cannot be completed produces an `ERROR` record — `SUMMARY` and `ERROR` records are never charged.

### Pricing

Pay per event. No start fee, no monthly fee.

| Event | What you get | FREE / BRONZE | SILVER | GOLD and above |
| --- | --- | --- | --- | --- |
| Hotel record | One hotel in search results, or one baseline row on a watch's first check | $0.002 | $0.0017 | $0.0014 |
| Price drop alert | One `PRICE_DROP` or `TARGET_HIT` record in watch mode | $0.02 | $0.017 | $0.014 |

A 20-result search costs $0.04. A watch check where nothing dropped costs $0. `maxTotalChargeUsd` caps a run's total charge across both events.

### Watch mode, in detail

- **Baseline:** the first watch run for a stay delivers the current list (charged as hotel records) and stores every property's nightly rate.
- **Drops:** a later run delivers a property when its nightly rate is below the stored rate — or when a new property undercuts the stay's previous lowest rate. `minDropPercent` and `minDropAmount` filter out noise.
- **Target:** set `targetPricePerNight` and one `TARGET_HIT` fires when the stay's lowest rate reaches it. It re-arms if rates rise back above the target.
- **Identity:** a watch is its destination, check-in and check-out dates and currency. Change any of them and a new baseline starts.

### Server mode (for agents)

The actor is a Server Actor. POST the same JSON input to its standby URL with your Apify API token:

```
POST https://magnova--hotel-price-watch.apify.actor
Authorization: Bearer <your Apify token>
Content-Type: application/json

{ "searches": [{ "destination": "Paris", "checkInDate": "2027-06-15", "checkOutDate": "2027-06-17" }], "mode": "watch" }
```

The response is `{ "records": [...], "summary": {...} }` — the same records a batch run would deliver, charged to your account at the same per-event prices. Watch mode works over the server too: state persists in your account between calls, so repeated POSTs track the same stays. Up to 5 searches per request.

### Inputs

| Field | Type | Default | Notes |
| --- | --- | --- | --- |
| `searches` | array | — (required) | Each: `destination` (place name), `checkInDate`, `checkOutDate` (YYYY-MM-DD). 1–30 nights, up to ~330 days ahead. Max 10 per run. |
| `mode` | string | `search` | `search` or `watch`. |
| `currency` | string | `USD` | 3-letter code; Google converts at search time. |
| `maxResultsPerSearch` | integer | 20 | Cheapest first, 1–50. |
| `targetPricePerNight` | number | — | Watch only: one alert when the lowest nightly rate reaches it. |
| `minDropPercent` | number | 0 | Watch only: ignore drops smaller than this %. |
| `minDropAmount` | number | 0 | Watch only: ignore drops smaller than this amount. |
| `maxTotalChargeUsd` | number | — | Hard cap on the run's total charge. |

### Good to know

- Rates are priced at Google's standard occupancy (2 guests, 1 room) — the search form Google exposes does not take occupancy parameters.
- `pricePerNight` is the nightly rate before taxes and fees; `totalForStay` is Google's own total for the whole stay including taxes and fees, where shown.
- Data is public Google Hotels data, read logged out — no account, no booking, no personal data.
- Google rate-limits rapid repeat searches; the actor paces and retries, and an occasional search may come back as an `ERROR` record (never charged) under burst pressure. Spaced schedules are unaffected.
- Rates change constantly. A record is the rate at check time, not a quote.

⭐ Finding this useful? A rating on the Apify Store helps other users discover this Actor — thank you!

# Actor input Schema

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

3-letter currency code for all prices in the results (USD, EUR, GBP, AED and most others Google Hotels supports). Rates are converted by Google at search time.

## `maxResultsPerSearch` (type: `integer`):

Maximum hotel records delivered per search, cheapest first (1-50). Extra results Google returns beyond this are not delivered or charged. On a watch's first check this is also the baseline size.

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

Optional hard cap on the total charge for this run, in USD, shared across hotel records and price-drop alerts. The run stops delivering charged records before the cap would be exceeded; ERROR and SUMMARY records are always free.

## `minDropAmount` (type: `number`):

Watch mode only: ignore nightly-rate drops smaller than this amount (in the searched currency). Combine with minDropPercent to filter noise; 0 means every drop counts.

## `minDropPercent` (type: `number`):

Watch mode only: ignore nightly-rate drops smaller than this percentage of the previous rate (0-100). 0 means every drop, however small, is delivered as a PRICE_DROP alert.

## `mode` (type: `string`):

Search returns every hotel found now. Watch remembers the rates in the actor's storage: the first watch run returns the current list as a baseline, later runs return only price drops and target hits. Run watch mode on a schedule (or call the server URL) to track a stay's rates.

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

Each search: a destination place name (city, area or landmark, e.g. "New York", "Dubai Marina", "near Heathrow"), checkInDate and checkOutDate as YYYY-MM-DD. Stays of 1-30 nights, up to ~330 days ahead. Rates are priced at Google's standard occupancy (2 guests, 1 room). Up to 10 searches per run (5 per server request).

## `targetPricePerNight` (type: `number`):

Watch mode only: when the stay's lowest nightly rate falls to this price or below, one TARGET_HIT alert fires (charged as a price-drop alert). It re-arms if the rate rises back above the target. Leave unset to disable target alerts.

## Actor input object example

```json
{
  "currency": "USD",
  "maxResultsPerSearch": 20,
  "maxTotalChargeUsd": 1,
  "minDropAmount": 0,
  "minDropPercent": 0,
  "mode": "search",
  "searches": [
    {
      "checkInDate": "2027-06-15",
      "checkOutDate": "2027-06-17",
      "destination": "New York"
    }
  ],
  "targetPricePerNight": 150
}
```

# 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 = {
    "currency": "USD",
    "maxResultsPerSearch": 20,
    "minDropAmount": 0,
    "minDropPercent": 0,
    "mode": "search",
    "searches": [
        {
            "checkInDate": "2027-06-15",
            "checkOutDate": "2027-06-17",
            "destination": "New York"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("magnova/hotel-price-watch").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 = {
    "currency": "USD",
    "maxResultsPerSearch": 20,
    "minDropAmount": 0,
    "minDropPercent": 0,
    "mode": "search",
    "searches": [{
            "checkInDate": "2027-06-15",
            "checkOutDate": "2027-06-17",
            "destination": "New York",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("magnova/hotel-price-watch").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 '{
  "currency": "USD",
  "maxResultsPerSearch": 20,
  "minDropAmount": 0,
  "minDropPercent": 0,
  "mode": "search",
  "searches": [
    {
      "checkInDate": "2027-06-15",
      "checkOutDate": "2027-06-17",
      "destination": "New York"
    }
  ]
}' |
apify call magnova/hotel-price-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,magnova/hotel-price-watch"
        }
    }
}
```

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/2Gcpg65nap26VNWXI/builds/dPdXaqvTZC0Diuro5/openapi.json
