# Hotel Rate Comparison - Rate Parity Across OTAs & Google (`scrape_api/hotel-rate-parity`) Actor

Compare full-stay hotel room prices from Booking, Expedia, Agoda and Google Hotels in one run: a hotel price comparison across booking sites with verified property identity, every observed offer and its conditions, and a calculated rate parity spread for revenue managers and rate shoppers.

- **URL**: https://apify.com/scrape_api/hotel-rate-parity.md
- **Developed by:** [Scrape_API](https://apify.com/scrape_api) (community)
- **Categories:** Travel, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$14.00 / 1,000 priced hotel observations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Comparison & Rate Parity Checker

Hotel rate comparison for one hotel and one dated stay: a hotel room price comparison
taken across Booking.com, Expedia, Agoda and Google Hotels. Every full-stay total comes
back the way that source reports it, and the actor calculates the rate parity spread
between those totals — for revenue managers and rate shoppers who need to know whether
another channel undercuts them, and by how much, without opening four booking sites by
hand. One run is therefore a hotel price comparison across four sources for that one
stay, with the parity spread between the delivered totals already calculated.

### Hotel rate comparison input

Provide the exact hotel name in `hotel_name` and its street, city and country in
`address`. Alternatively, supply `platform_ids` for every platform you select. The
required dates are `check_in` and `check_out`, using YYYY-MM-DD. The supported initial
party is two adults, one room and no children. Prices are requested and verified in
USD; the actor does not convert currencies. Other party sizes, multiple rooms and
other currencies receive an explicit input error.

A stay must begin today or later, last between one and thirty nights, and end within
330 days. The optional `platforms` list selects Booking, Expedia, Agoda or Google
Hotels. All four are requested by default. The optional `country` setting identifies
the price observation market and defaults to GB. That market can differ from the
hotel's physical country and from a seller's point of sale. Each observation reports
its market context; Expedia's supported flow uses the United States point of sale.

Use a precise address. Similar hotel names are common, and matching a word in a name
is insufficient to establish property identity. Ambiguous or unrelated properties are
rejected. Provider availability also varies: if a requested seller cannot be resolved
uniquely, provide that seller's verified property ID. Explicit identifiers are checked
against the other supplied identity evidence rather than accepted as interchangeable
hotels: name, country and the available coordinates must agree, with a maximum of 250
metres between two platforms that describe the same building.

### Output: one priced row per platform

The dataset contains one priced accommodation observation per successfully verified
source platform. A complete four-platform request produces four rows. Each row carries
`source`, `fetched_at`, `platform`, `name`, `accommodation_id`, a public hotel `url`, the
lowest verified inclusive stay `price`, `currency`, `check_in` and `check_out`. It also
includes occupancy, identity checks, price context and a nonempty `offers` array.
Available source address, coordinates, class and review information appear as optional
fields. Missing optional information remains absent.

Offers preserve their provider name, original price label, currency, tax basis and
precision. Available room and rate conditions belong to that specific offer. A nightly
amount is never multiplied to invent a missing stay total. An inclusive stay total is
required before an observation can become a priced result. Rounded amounts remain
identified as rounded; they do not acquire imaginary cent precision.

#### Real output: The Savoy, London, 11–13 January 2027

Four rows, two nights, two adults, one room, USD, observation market GB. The Agoda row
of a delivered run, shortened to the fields that matter here (the delivered row also
carries `source`, `fetched_at`, `children_ages`, `price_context`, the full `identity`
check list and the available address, coordinates, class and review fields):

```json
{
  "platform": "agoda",
  "accommodation_id": "11070",
  "name": "The Savoy Hotel",
  "url": "https://www.agoda.com/the-savoy-hotel/hotel/london-gb.html",
  "price": 1901.62,
  "currency": "USD",
  "check_in": "2027-01-11",
  "check_out": "2027-01-13",
  "nights": 2,
  "adults": 2,
  "rooms": 1,
  "observation_source": "direct",
  "identity": {"method": "platform_id", "distance_m": 107},
  "offers": [
    {
      "offer_id": "agoda-11070-0-0-0",
      "provider": "agoda",
      "provider_name": "Agoda",
      "price": 1901.62,
      "price_label": "1901.62",
      "tax_basis": "included",
      "precision": "exact"
    }
  ]
}
```

The same run delivered Booking.com (US$1,912.68, exact, Superior Queen Room, 1 offer),
Expedia ($1,911 total, rounded, 52 offers) and Google Hotels (32 offers from several
providers, reported in their own comparison group). Its `direct_ota` comparison group,
with `offer_refs` and `unverified_dimensions` left out (both are delivered in full and
are explained below):

```json
{
  "scope": "direct_ota",
  "status": "available",
  "equivalence": "unverified",
  "currency": "USD",
  "min_price": 1901.62,
  "max_price": 1912.6799905005084,
  "spread_amount": 11.06,
  "spread_pct": 0.5816,
  "lowest_offer_refs": [
    {"platform": "agoda", "accommodation_id": "11070", "offer_id": "agoda-11070-0-0-0"}
  ],
  "highest_offer_refs": [
    {"platform": "booking", "accommodation_id": "280149", "offer_id": "booking-280149-lead"}
  ]
}
```

So the three direct OTAs sat within US$11.06 of each other (0.5816 percent) on that
date, while the Google row carried its own group of provider offers in the same run.
`platform_status` reports every source (`ok`, `offers_count`), `partial` reports whether
the run delivered everything it asked for, and `warnings` carry the standing caveats
about rate equivalence and rounded amounts.

The `comparisons` record holds two comparison groups: `direct_ota` for direct Booking,
Expedia and Agoda observations, and `google_providers` for offers reported by Google.
The latter can include the official hotel website. Each group uses the cheapest
eligible inclusive offer per provider and reports the exact delivered offer references.
At least two different providers are required to calculate a spread. With fewer
providers, the status is `insufficient_data`, and no percentage or artificial zero
spread is returned.

The absolute spread is the highest total minus the lowest total. The percentage is
that difference divided by the lowest total, multiplied by one hundred. Source totals
retain their available precision; the derived amount is rounded to cents and the
percentage to four decimal places. Tied minima and maxima retain every relevant
reference. Direct and Google observations never form a single unexplained price pool.

### Use cases for hotel rate comparison

Five jobs cover why this actor is bought: compare hotel prices and compare hotel rates
for one property on one dated stay — a hotel rates comparison across four sources
without opening any of them by hand.

- **Daily parity check on one property.** Run the actor for the hotel and the stay you
  care about, read the spread, and know which channel to investigate before you change
  a rate.
- **Metasearch gap.** Run a hotel price comparison of your own property: set what Google
  Hotels shows for it beside the Booking, Expedia and Agoda rows collected directly, so a
  mispriced feed is visible as a number instead of a rumour.
- **Rate-shop a short list with a hotel rate shopping tool.** One run per hotel gives rows
  you can stack in a dataset and sort; the run-summary counts delivered rows, so a short
  list stays cheap to audit.
- **Verify a claim from a channel manager or booking engine.** When a supplier says
  "our rates are identical everywhere", this is the measurement that either supports or
  contradicts it, with the offer references attached.
- **Feed quality control after a rate change.** A new public rate normally shows up in
  every source; a source still showing the old total is a feed problem, not a parity
  problem, and the per-platform status says which sources answered at all.

### What else exists, and what differs

- **Hotel price comparison sites for travellers** (trivago, Kayak, Skyscanner, Google
  Travel) answer one traveller's search for one moment. They do not hand back a stored
  per-hotel report with source identity, offer references and a computed spread, and they
  cannot be scheduled as a data job.
- **Single-source hotel scrapers** cover one platform per run — a Google Hotels scraper
  or a Booking rates scraper. Parity then becomes manual work: aligning properties
  across four runs by name, which is exactly where similar hotel names go wrong. This
  actor performs that join itself, on name, street, city, country and coordinates, and
  refuses the match when the evidence does not line up.
- **Enterprise rate-parity suites** (Lighthouse, formerly OTA Insight, and RateGain
  among them) sell portfolio-scale monitoring as a contract. This actor is one hotel,
  one dated stay, one run, priced per delivered observation, with no sales call.
- **Our own travel actors** each watch one source: a Google Hotels price scraper or a
  Booking hotel search gives you that platform's prices only. The parity work — the
  comparison of Booking against Expedia against Agoda against Google — is what this
  actor adds on top.

### Interpreting rate conditions

A price spread is an offer difference, not proof that room, bed, meal, cancellation,
payment and sales-market conditions are identical. The first version marks equivalence
as unverified and identifies those unknown dimensions (`room`, `bed`, `meal_plan`,
`cancellation`, `payment_terms`, `point_of_sale`). Even equal displayed totals can hide
rounding or different conditions. A missing official-site offer remains unknown; it
does not mean parity passed. No output determines whether a legal parity agreement has
been breached.

### Pricing and delivered results

The result unit is one delivered priced observation for one hotel on one observation
platform. Nested offers, comparison calculations, warnings and failed sources are not
additional result units. A Google row with several providers remains one observation.
The actor's current Store price model is the authority for the monetary price; this
document does not announce a new price. Empty results have no result charges. The
initial free result allowance accommodates a complete four-platform observation.

When one source fails, the other verified priced rows remain available. `partial`,
`platform_status` and English warnings explain missing sources and comparison limits.
An unavailable or unverified source does not create a paid diagnostic row. If every
source fails, the run records the structured error and delivers no priced rows. These
outcomes distinguish a failed observation from evidence that a hotel is sold out.

### FAQ

#### What is hotel rate parity, and does this actor measure it?

Rate parity means the same hotel sells the same room for the same dates at the same
inclusive total on every channel. This actor measures the observable half of that: it
collects the inclusive stay totals that Booking.com, Expedia, Agoda and Google Hotels
report for one dated stay, compares them inside their comparison group and returns the
spread together with the exact offer references. Whether room, bed, meal, cancellation
and payment conditions are identical stays explicitly unverified, so the number is a
parity signal to investigate, not a verdict.

#### Does a lower price prove a parity violation?

No. Review room, bed, meal, cancellation, payment and point-of-sale conditions before
drawing that conclusion. The reported spread compares eligible observed quotes and
explicitly retains uncertainty about equivalent rate terms.

#### How does hotel rate comparison treat taxes and fees?

The actor only accepts inclusive stay totals: a source that shows a nightly amount
without a stay total does not become a priced row, and a tax label that is not
verifiable keeps the observation out of the priced result. `tax_basis` on every offer
records what the source itself declared (`included` or otherwise).

#### Why can Booking directly differ from Booking through Google?

They are observations from different source flows. Availability, market, rounding and
rate conditions may differ. They appear in separate comparison groups so that their
provenance remains clear.

#### Can I request more rooms or another currency?

The initial verified flow supports two adults, one room, no children and USD. Unsupported
values receive a clear input error instead of a silent substitution. A different observation
country is recorded as observation context and does not imply currency conversion.

#### Why is a requested source missing?

A source can fail, return no matching offer, or provide insufficient identity or price
context. Check the per-platform status and warnings. Missing data is not a zero price
and is not a confirmed sold-out hotel. Supplying a verified platform ID can resolve a
missing identifier, but cannot guarantee inventory.

#### Is this a rate shopper for many hotels at once?

It is a hotel rate shopping tool for one hotel per run, deliberately: identity is
verified per property and the whole four-platform observation fits in one run. For a list
of hotels, run it once per hotel and let the dataset collect the rows.

# Actor input Schema

## `hotel_name` (type: `string`):

Exact property name. Required together with address unless every selected platform has an ID.

## `address` (type: `string`):

Street, city and country of the hotel. Used to reject ambiguous or unrelated properties.

## `platform_ids` (type: `object`):

platform_ids — zie de productdocumentatie.

## `booking_url` (type: `string`):

Optional public Booking.com hotel URL, checked against the returned property.

## `check_in` (type: `string`):

Check-in date, current or future, within 330 days.

## `check_out` (type: `string`):

Check-out after check-in, at most 30 nights and within 330 days.

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

Verified initial occupancy: two adults. Allowed values: 2.

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

Verified initial occupancy: one room. Allowed values: 1.

## `children_ages` (type: `array`):

Only an empty list is currently supported.

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

USD only. No currency conversion.

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

ISO alpha-2 exit country. Source point of sale may differ.

## `platforms` (type: `array`):

Requested observation sources. All four by default.

## Actor input object example

```json
{
  "hotel_name": "The Savoy",
  "address": "Strand, London, United Kingdom",
  "platform_ids": {
    "booking": "280149",
    "expedia": "27158",
    "agoda": "11070",
    "google_hotels": "CgoIqbjvp9r_u_oVEAE"
  },
  "check_in": "2027-01-11",
  "check_out": "2027-01-13",
  "adults": 2,
  "rooms": 1,
  "children_ages": [],
  "currency": "USD",
  "country": "GB",
  "platforms": [
    "booking",
    "expedia",
    "agoda",
    "google_hotels"
  ]
}
```

# Actor output Schema

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

One priced property observation per source platform. Nested offers do not create additional charged rows.

## `output` (type: `string`):

Comparisons, platform statuses, warnings and delivered counts.

## `comparisons` (type: `string`):

Direct and metasearch comparisons.

## `platform_status` (type: `string`):

Status of requested platforms.

# 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 = {
    "hotel_name": "The Savoy",
    "address": "Strand, London, United Kingdom",
    "platform_ids": {
        "booking": "280149",
        "expedia": "27158",
        "agoda": "11070",
        "google_hotels": "CgoIqbjvp9r_u_oVEAE"
    },
    "check_in": "2027-01-11",
    "check_out": "2027-01-13"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape_api/hotel-rate-parity").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 = {
    "hotel_name": "The Savoy",
    "address": "Strand, London, United Kingdom",
    "platform_ids": {
        "booking": "280149",
        "expedia": "27158",
        "agoda": "11070",
        "google_hotels": "CgoIqbjvp9r_u_oVEAE",
    },
    "check_in": "2027-01-11",
    "check_out": "2027-01-13",
}

# Run the Actor and wait for it to finish
run = client.actor("scrape_api/hotel-rate-parity").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 '{
  "hotel_name": "The Savoy",
  "address": "Strand, London, United Kingdom",
  "platform_ids": {
    "booking": "280149",
    "expedia": "27158",
    "agoda": "11070",
    "google_hotels": "CgoIqbjvp9r_u_oVEAE"
  },
  "check_in": "2027-01-11",
  "check_out": "2027-01-13"
}' |
apify call scrape_api/hotel-rate-parity --silent --output-dataset

```

## MCP server setup

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

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/ntlDRl1tcaP8dLwAS/builds/gtiXBzJeIQQscgx6g/openapi.json
