# Hotel Rate Parity Monitor — Is Your Direct Rate Being Undercut? (`xtracto/hotel-rate-parity-monitor`) Actor

Watch hotels across Booking.com, Expedia, Agoda, Hotels.com and more, and see when booking sites undercut the hotel's own website. Each scheduled run reports parity breaches, the cheapest site, price moves and widening price gaps.

- **URL**: https://apify.com/xtracto/hotel-rate-parity-monitor.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Travel, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 57.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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 Rate Parity Monitor — Is Your Direct Rate Being Undercut?

Watch hotels across Booking.com, Expedia, Agoda, Hotels.com, Priceline and other booking sites, and see when they undercut the hotel's own website. Each scheduled run compares every site's price for the same stay, flags parity breaches, and tells you what changed since the last run.

Built for hotel revenue managers, hotel groups, channel managers and travel analysts.

### Why use this actor

- **Parity at a glance**: the hotel's own price vs the cheapest booking site, as a percentage, with a clear breach flag at your threshold.
- **Every site side by side**: each site's lowest price for the stay, room type and booking link.
- **Change alerts**: `parity_breach`, `parity_restored`, `cheapest_partner_changed`, `price_drop` / `price_increase`, `spread_widened`.
- **Fixed or rolling stays**: watch one specific night, or "30 days from today" every day.
- **Pay for news only**: with *Only report changes* a scheduled run with nothing new outputs nothing.
- No account, no login, no API key.

### How it works

1. Enter hotel names as you would search them (or Trivago hotel ids), the stay and the party size.
2. Each run finds the hotel, collects the live price from every booking site Trivago lists, and keeps each site's lowest price.
3. It recognises the hotel's own website ("Hotel Site", or the brand such as "Hilton") and compares it with the cheapest site.
4. It compares everything with the previous run and outputs one row per hotel with the events.

No scraping setup and no database to maintain; history is kept for you between runs.

### Input

```json
{
  "hotels": ["Hilton Park Lane London", "Marina Bay Sands Singapore"],
  "checkIn": "",
  "checkOut": "",
  "daysAhead": 30,
  "nights": 1,
  "adults": 2,
  "rooms": 1,
  "currency": "USD",
  "parityThresholdPercent": 3,
  "directPartnerNames": [],
  "onlyReportChanges": false,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
|---|---|---|
| `hotels` | array | Hotel names (e.g. "Hilton Park Lane London") or Trivago ids like `100/48062` |
| `checkIn`, `checkOut` | string | Fixed stay (YYYY-MM-DD). Leave both empty for a rolling stay |
| `daysAhead`, `nights` | integer | Rolling stay: check in this many days after each run, for this many nights |
| `adults`, `rooms` | integer | Party per room and number of rooms |
| `currency` | string | Price currency |
| `parityThresholdPercent` | integer | A site at least this much cheaper than the hotel's own website is a breach (also the `spread_widened` threshold) |
| `directPartnerNames` | array | Extra names under which the hotel's own site appears, if not "Hotel Site" or the brand in its name |
| `onlyReportChanges` | boolean | Output only hotels with an event (plus first-run baselines) |
| `proxyConfiguration` | object | Residential proxy support (recommended) |

### Output

Real row from 2026-10-22 (fixed stay). The previous run's state was edited to "no breach, cheapest Expedia 515" to demonstrate the events; every current value is live. Booking links shortened, partners trimmed to 3 of 8.

```json
{
  "hotelName": "London Hilton on Park Lane",
  "nsid": "100/48062",
  "city": "London, United Kingdom",
  "checkIn": "2026-11-21",
  "checkOut": "2026-11-22",
  "nights": 1,
  "occupancy": "2 adults, 1 room(s)",
  "currency": "USD",
  "parityThresholdPercent": 3.0,
  "cheapestPartner": "Super.com",
  "cheapestPrice": 478,
  "highestPrice": 618,
  "spreadPercent": 29.29,
  "directPartner": "Hilton",
  "directPrice": 618,
  "directVsCheapestPercent": 29.29,
  "partnerCount": 8,
  "partners": [
    { "partner": "Super.com", "price": 478, "room": "standard rooms", "url": "https://www.trivago.com/forward/en-US?forwarderA=…", "isDirect": false },
    { "partner": "trivago Book & Go", "price": 505, "room": "standard rooms", "url": "https://www.trivago.com/forward/en-US?forwarderA=…", "isDirect": false },
    { "partner": "Hilton", "price": 618, "room": "standard rooms", "url": "https://www.trivago.com/forward/en-US?forwarderA=…", "isDirect": true }
  ],
  "firstRun": false,
  "events": ["parity_breach", "cheapest_partner_changed", "price_drop"],
  "isParityBreached": true,
  "previousCheapestPartner": "Expedia",
  "previousCheapestPrice": 515,
  "cheapestChangePercent": -7.18,
  "previousDirectVsCheapestPercent": 0.0,
  "previousStay": "2026-11-21..2026-11-22"
}
```

| Field | Type | Description |
|---|---|---|
| `events` | array | `parity_breach`, `parity_restored`, `cheapest_partner_changed`, `price_drop`, `price_increase`, `spread_widened`. Empty = unchanged |
| `isParityBreached` | boolean / null | A site is at least the threshold cheaper than the hotel's own site. `null` = the hotel's own site is not listed for this stay, so parity cannot be judged |
| `directPartner`, `directPrice` | string, number | The hotel's own website offer |
| `cheapestPartner`, `cheapestPrice`, `cheapestUrl` | | The cheapest booking site and its link |
| `directVsCheapestPercent` | number | How much more the direct price is than the cheapest site |
| `spreadPercent` | number | Highest vs lowest site price |
| `partners` | array | Every site's lowest price for the stay, room type, link and whether it is the hotel's own site |
| `previous…`, `cheapestChangePercent` | | Values from the previous run. Price changes are only compared when the stay dates are the same |

### Notes and limits

- **First run = baseline.** Events start from the second run.
- With a **rolling stay**, each run checks a different night, so `price_drop` / `price_increase` are only reported for fixed dates. Parity and cheapest-site events work in both modes.
- Prices are for the whole stay, as each site displays them on Trivago, including the site's own discounts. Confirm on the booking page.
- A hotel that cannot be found or priced is listed in the status message and the run's `FAILURES` record; its history is kept. A run where no hotel could be read is marked failed.

### Related actors

| Actor | Use it for |
|---|---|
| Trivago Hotel Rate Comparison Scraper | One-off, row-per-site price pulls for any hotel or destination |
| Flight Price Monitor | Fare drop alerts for flight routes |

# Actor input Schema

## `hotels` (type: `array`):

Hotel names as you would search them (e.g. 'Hilton Park Lane London'), or Trivago hotel ids like 100/48062.

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

YYYY-MM-DD. Set both check-in and check-out to watch one specific stay. Leave both empty for a rolling stay (see Days ahead).

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

YYYY-MM-DD, after check-in.

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

Without fixed dates, each run checks a stay starting this many days from the run date.

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

Length of the stay, in nights, when dates roll forward with Days ahead.

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

Number of adults in each room.

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

Number of rooms to price.

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

e.g. USD, EUR, GBP, IDR.

## `parityThresholdPercent` (type: `integer`):

Call it a parity breach when a booking site is at least this much cheaper than the hotel's own website. Also the threshold for spread_widened.

## `directPartnerNames` (type: `array`):

Optional. The hotel's own offer is recognised as 'Hotel Site' or by the brand in the hotel name (e.g. 'Hilton'). Add other names here if your brand appears differently.

## `onlyReportChanges` (type: `boolean`):

Output only hotels with an event (plus first-run baselines). Recommended for scheduled runs.

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

Residential proxy is recommended on the platform.

## Actor input object example

```json
{
  "hotels": [
    "Hilton Park Lane London",
    "Marina Bay Sands Singapore"
  ],
  "daysAhead": 30,
  "nights": 1,
  "adults": 2,
  "rooms": 1,
  "currency": "USD",
  "parityThresholdPercent": 3,
  "onlyReportChanges": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per watched hotel and stay (or per changed hotel with onlyReportChanges), stored in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "hotels": [
        "Hilton Park Lane London",
        "Marina Bay Sands Singapore"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/hotel-rate-parity-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 = {
    "hotels": [
        "Hilton Park Lane London",
        "Marina Bay Sands Singapore",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/hotel-rate-parity-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 '{
  "hotels": [
    "Hilton Park Lane London",
    "Marina Bay Sands Singapore"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/hotel-rate-parity-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/hotel-rate-parity-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/qu24nfSzA54kDlYEm/builds/EtQwW9UCPhKfyAjtO/openapi.json
