# Trivago Hotel Rate Comparison Scraper (`xtracto/trivago-rate-parity-scraper`) Actor

Compare live hotel prices across every booking site Trivago lists — Booking.com, Expedia, Agoda, Hotels.com, and the hotel's own site — with one clean row per deal. Add hotel names or destinations, set your dates and party, and get partner, price per night, total, room type, and a booking link.

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

## Pricing

from $3.33 / 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

## Trivago Hotel Rate Comparison Scraper

Compare live hotel prices across every booking site Trivago lists — Booking.com, Expedia, Agoda, Hotels.com, Priceline, and the hotel's own website — and get one clean row per deal. Perfect for rate-parity monitoring, competitor tracking, and finding the cheapest site for any hotel. No account or login required.

### Why use this actor

- **No account, login, or API key required.**
- **See every booking site's price side by side** for the same hotel, dates, and party — the core of rate-parity checking.
- **One row per deal** — each record is a single site's offer (per-night price, total stay price, room type, and a direct booking link), so you can sort, compare, and spot the cheapest option instantly.
- **Prices in the currency you choose**, plus a normalized value that lets you compare fairly across currencies.
- **Hotel details included** on every row — star rating, guest review score, review count, map coordinates, and location.
- **Stable JSON output** ready for spreadsheets, dashboards, databases, or pricing pipelines. Runs on a schedule, retries automatically, and exports to JSON, CSV, or Excel.

### How it works

1. Enter one or more **hotel names** (and optionally a currency).
2. Set your **check-in / check-out dates** and party size (adults, children, rooms).
3. Run it. The actor matches each name to a hotel, gathers the live offers from every booking site, and pushes one clean record per site.

You do not manage any scrapers, browsers, or blocks — the actor handles that automatically and returns clean records.

### Input

```json
{
  "hotelNames": ["Hilton Park Lane London", "Pod Times Square New York"],
  "checkIn": "2026-08-09",
  "checkOut": "2026-08-10",
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "maxHotels": 20,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `hotelNames` | array | Hotel names to compare prices for, e.g. `Hilton Park Lane London`. Each name is matched to a hotel automatically. |
| `destinations` | array | City or place names (optional). Best paired with hotel names — a plain city returns its area match, not a full hotel list. |
| `nsids` | array | Direct Trivago hotel IDs like `100/48062` (optional, advanced) if you already know them. |
| `checkIn` / `checkOut` | string | Dates in `YYYY-MM-DD`. |
| `adults` / `children` / `rooms` | integer | Party size to price the stay for. |
| `currency` | string | ISO code to price in, e.g. `USD`, `EUR`, `GBP`. |
| `maxHotels` | integer | Maximum number of hotels to price in one run. |
| `maxItems` | integer | Overall cap on price rows for the run. `0` = no limit. |
| `proxyConfiguration` | object | Residential is recommended (default). |

### Output

One record per hotel-and-site deal. A single hotel returns many rows — one for each site (and room option) offering it.

```json
{
  "_input": "Hilton Park Lane London",
  "_source": "S1-api",
  "_scrapedAt": "2026-07-09T20:36:57Z",
  "recordType": "DEAL",
  "hotelName": "London Hilton on Park Lane",
  "nsid": "100/48062",
  "starRating": 5,
  "reviewScore": 8.4,
  "reviewsCount": 13687,
  "latitude": 51.50550842285156,
  "longitude": -0.15038999915122986,
  "locationLabel": "London, United Kingdom",
  "country": "United Kingdom",
  "checkIn": "2026-08-09",
  "checkOut": "2026-08-10",
  "occupancy": "2 adults, 0 children, 1 room(s)",
  "otaPartner": "Booking.com",
  "pricePerNight": 494,
  "pricePerNightEurocents": 43295,
  "pricePerStay": 494,
  "pricePerStayEurocents": null,
  "currency": "USD",
  "roomCategory": "standard rooms",
  "strikethroughPrice": null,
  "savings": null,
  "clickoutUrl": "https://www.trivago.com/forward/en-US?forwarderA=i%2F9KoJaj4tQ0AxLcEj6P2c…",
  "hotelUrl": "/en-US/oar/hotel-london-hilton-on-park-lane?search=100-48062"
}
```

The same hotel, one row per booking site (prices per night, `USD`):

| Booking site | Per night | Room |
|---|---|---|
| Booking.com | 494 | standard rooms |
| trivago Book & Go | 471 | standard rooms |
| Hilton | 593 | standard rooms |
| Hotels.com | 495 | standard rooms |
| Expedia | 495 | standard rooms |
| Priceline | 494 | standard rooms |
| Agoda | 496 | standard rooms |

| Field | Type | Description |
|-------|------|-------------|
| `hotelName` | string | Hotel name. |
| `nsid` | string | Trivago's stable hotel ID (e.g. `100/48062`). |
| `starRating` | number | Official star rating (1–5). |
| `reviewScore` | number | Guest review score out of 10. |
| `reviewsCount` | integer | Number of guest reviews. |
| `latitude` / `longitude` | number | Map coordinates. |
| `locationLabel` | string | Human-readable location, e.g. "London, United Kingdom". |
| `country` | string | Country name. |
| `checkIn` / `checkOut` | string | The dates priced. |
| `occupancy` | string | Party the price is for, e.g. "2 adults, 0 children, 1 room(s)". |
| `otaPartner` | string | The booking site offering this price (Booking.com, Expedia, the hotel's own site, …). |
| `pricePerNight` | number | Price per night in your chosen currency. |
| `pricePerNightEurocents` | integer | Same price normalized to euro-cents, for fair comparison across currencies. |
| `pricePerStay` | number | Total price for the whole stay, in your chosen currency. |
| `pricePerStayEurocents` | integer | Total stay price in euro-cents (may be empty for single-night stays). |
| `currency` | string | Currency of the price fields. |
| `roomCategory` | string | Room type for this offer, e.g. "standard rooms". |
| `strikethroughPrice` | number | Original crossed-out price, when the site shows a discount (empty otherwise). |
| `savings` | number | Savings percentage, when the site advertises a deal (empty otherwise). |
| `clickoutUrl` | string | Direct link to open this offer on the booking site. |
| `hotelUrl` | string | Link to the hotel's Trivago page. |

### Notes & limits

- **Best driven by hotel name or hotel ID.** Enter the hotels you want to track. A plain city/destination name matches an area rather than returning its full hotel list, so pair destinations with specific hotel names for reliable results.
- **Volume:** a popular hotel can return well over a hundred offers (many sites, multiple room options). Use `maxItems` to cap the run and `maxHotels` to limit how many hotels are priced.
- **Prices change constantly** with availability — re-run to refresh. `strikethroughPrice` and `savings` are only present when a site is actively advertising a discount.
- **Proxy:** Residential is recommended and set as the default.

### Other actors

See the sibling **Booking.com Hotels Scraper** in this travel collection for destination-wide hotel search results.

# Actor input Schema

## `hotelNames` (type: `array`):

One or more hotel names to compare prices for, e.g. Hilton Park Lane London. Each name is matched to a hotel automatically.

## `destinations` (type: `array`):

City or place names. Best used together with a hotel name — a plain city returns its area match; for reliable results add specific hotel names.

## `nsids` (type: `array`):

Direct Trivago hotel IDs in the form 100/48062, if you already know them. Overrides name matching for those hotels.

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

Check-in date in YYYY-MM-DD format, e.g. 2026-08-09.

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

Check-out date in YYYY-MM-DD format, e.g. 2026-08-10.

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

Number of adult guests to price the stay for.

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

Number of children in the party.

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

Number of rooms to price.

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

ISO currency code to price hotels in, e.g. USD, EUR, GBP.

## `maxHotels` (type: `integer`):

Maximum number of hotels to price in one run.

## `maxItems` (type: `integer`):

Overall cap on the number of price rows for the run. 0 = no limit.

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

Residential proxy is recommended and set as the default.

## Actor input object example

```json
{
  "hotelNames": [
    "Hilton Park Lane London"
  ],
  "destinations": [],
  "nsids": [],
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "maxHotels": 20,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `hotelName` (type: `string`):

Hotel Name as reported by the source.

## `otaPartner` (type: `string`):

Ota Partner as reported by the source.

## `pricePerNight` (type: `string`):

Price Per Night as reported by the source.

## `pricePerStay` (type: `string`):

Price Per Stay as reported by the source.

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

ISO currency code of the price.

## `roomCategory` (type: `string`):

Room Category as reported by the source.

## `starRating` (type: `string`):

Star Rating as reported by the source.

## `reviewScore` (type: `string`):

Review Score as reported by the source.

## `clickoutUrl` (type: `string`):

Link to the clickout.

## `recordType` (type: `string`):

Which kind of row this is.

## `nsid` (type: `string`):

Nsid as reported by the source.

## `reviewsCount` (type: `string`):

Reviews Count. Whole number.

## `latitude` (type: `string`):

Latitude. Numeric value.

## `longitude` (type: `string`):

Longitude. Numeric value.

## `locationLabel` (type: `string`):

Location Label as reported by the source.

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

Country.

## `occupancy` (type: `string`):

Occupancy as reported by the source.

## `pricePerNightEurocents` (type: `string`):

Price Per Night Eurocents.

## `pricePerStayEurocents` (type: `string`):

Price Per Stay Eurocents.

## `strikethroughPrice` (type: `string`):

Strikethrough Price as reported by the source.

## `savings` (type: `string`):

Savings.

## `hotelUrl` (type: `string`):

Link to the hotel.

## `_input` (type: `string`):

The input value this row was produced from.

## `_source` (type: `string`):

Which extraction strategy produced the row.

## `_scrapedAt` (type: `string`):

UTC timestamp of the scrape, ISO 8601.

## `_warning` (type: `string`):

Warning as reported by the source.

## `_warningDetail` (type: `string`):

Warning Detail as reported by the source.

## `_error` (type: `string`):

Set only on diagnostic rows - why that target produced no data.

## `_errorDetail` (type: `string`):

Extra context for the error.

# 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 = {
    "hotelNames": [
        "Hilton Park Lane London"
    ],
    "destinations": [],
    "nsids": [],
    "currency": "USD"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/trivago-rate-parity-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 = {
    "hotelNames": ["Hilton Park Lane London"],
    "destinations": [],
    "nsids": [],
    "currency": "USD",
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/trivago-rate-parity-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 '{
  "hotelNames": [
    "Hilton Park Lane London"
  ],
  "destinations": [],
  "nsids": [],
  "currency": "USD"
}' |
apify call xtracto/trivago-rate-parity-scraper --silent --output-dataset

```

## MCP server setup

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