# Trivago Scraper — Hotel Prices from $0.40/1K (`memo23/trivago-scraper`) Actor

Hotel prices from trivago, one row per booking site. Each deal has the nightly rate, the all-in rate, the room, the booking link, stars, guest score, address, distance, a photo, and amenities. Start from a city search or a hotel page, on trivago.com or a country site. Export JSON or CSV.

- **URL**: https://apify.com/memo23/trivago-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Travel, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 deals

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

## Trivago Scraper

Hotel prices from trivago, one row per booking site.

Paste a city search or a hotel page, set the stay, and get the nightly rate, the all-in rate, the room, and the link to book it. On the Gold plan a deal is $0.0004, which is $0.40 per 1,000 deals.

### Why Use This Scraper?

- One row per booking site, so the same hotel can be compared across the sites trivago lists
- Nightly price and all-in price, with the room name and room category
- The cheapest nightly rate in that run flagged on the row
- Address, distance, guest score, stars, photo, amenities, and highlights on every deal
- A city search or a single hotel page, including trivago.de, trivago.co.uk, and the other country sites
- Dates, party size, currency, star class, guest score, and a nightly price cap
- JSON or CSV from the dataset

### Overview

Trivago Scraper is for revenue managers, travel analysts, and agencies who need the prices trivago is showing for a stay.

A city search and a hotel page both become deal rows. You do not get one summary row per hotel with the prices nested inside it. A hotel that returns 12 booking sites is 12 rows.

`isCheapest` marks the lowest nightly price among the deals this run saved for that hotel, after your price cap. If `maxDealsPerHotel` stops at 25, the flag is the cheapest of those 25, not a claim that no other site on trivago is lower.

A stay with no prices returns no rows for that hotel. That is an empty result, not a failed run. Dates far ahead often come back empty.

### Supported Inputs

#### URL types

| URL type | What to paste | Example |
|---|---|---|
| Hotel page | A trivago hotel URL whose search id starts with `100-` | `https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830` |
| City search | A trivago city URL whose search id starts with `200-` | `https://www.trivago.com/en-US/odr/hotels-new-york-new-york-state?search=200-14734` |
| Country site | The same kinds of page on another trivago host | `https://www.trivago.de/de/oar/hotel-the-plaza-new-york?search=100-8830` |

#### Copy-pasteable startUrls

```json
{
  "startUrls": [
    "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830",
    "https://www.trivago.com/en-US/odr/hotels-new-york-new-york-state?search=200-14734"
  ]
}
```

#### Not supported

- A hotel name on its own. The run starts from a city search or a hotel page.
- Hosts that are not trivago. A Booking.com or Hotels.com link is skipped.
- Later pages of a city search. The run reads the hotels on the first results page, then `maxHotels` decides how many of those are priced.
- A meal-plan name. The row does not include one.
- Prices that are only visible after you log in.

### Use Cases

| Audience | Use case |
|---|---|
| **Revenue managers** | Compare the nightly and all-in rate each booking site shows for the same stay |
| **Travel analysts** | Export a city for a date range, with guest score, stars, and distance on every row |
| **OTA teams** | See where their rate sits against the other sites trivago lists for that hotel |
| **Agencies** | Hand a client a dataset of hotel deals without building a collector |
| **Researchers** | Keep address, coordinates, amenities, and the price that was on the page |

### How It Works

![How Trivago Scraper works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-trivago-hotels.png)

1. **Input.** Paste one or more trivago city searches or hotel pages. Leave the dates blank to use tomorrow night, or set both check-in and check-out.
2. **Read the hotel.** Stars, guest score, address, distance, photo, amenities, and highlights come from that page.
3. **Collect the deals.** Each booking site's price for the stay becomes its own row, with the room and the booking link.
4. **Mark the cheapest.** The lowest nightly price among the deals saved for that hotel is flagged.
5. **Output.** Export JSON or CSV. One row per booking-site price.

### Input Configuration

#### Input fields

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `startUrls` | array of strings | yes | The Plaza hotel page | City searches or hotel pages. A non-trivago URL is skipped. |
| `checkIn` | string | no | tomorrow | Arrival as `YYYY-MM-DD`. Used only when `checkOut` is set too. |
| `checkOut` | string | no | the night after tomorrow | Departure as `YYYY-MM-DD`. Has to be after check-in. |
| `adults` | integer | no | `2` | Adults in the stay. Split across `rooms`. Minimum 1. |
| `children` | array of ages | no | empty | Ages such as `5` and `8`. All of them are placed on the first room. |
| `currency` | string | no | the site's currency | `USD`, `EUR`, `GBP`, and the other codes the page accepts. |
| `minStars` | integer | no | empty | Skip hotels below this star class, from 1 to 5. A hotel with no star class is treated as 0. |
| `minGuestRating` | number | no | empty | Skip hotels below this guest score, from 0 to 10. A missing score is treated as 0. |
| `maxPricePerNight` | number | no | empty | Drop deals above this nightly price, in the stay currency. |
| `rooms` | integer | no | `1` | Number of rooms. Minimum 1. |
| `maxHotels` | integer | no | `5` | Hotels to price from a city search. A hotel page is always one hotel. |
| `maxDealsPerHotel` | integer | no | `25` | Booking-site prices saved for one hotel. |
| `maxItems` | integer | no | `100` | Hard cap on deals saved in the whole run. A free plan stops at 100. |
| `proxyConfiguration` | object | no | off | Residential proxies recommended. The default works out of the box. |

#### One hotel, next night

Leave the dates empty. The stay is tomorrow, checking out the morning after.

```json
{
  "startUrls": [
    "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"
  ],
  "maxDealsPerHotel": 10,
  "maxItems": 10
}
```

#### A city, with a star floor and a price cap

```json
{
  "startUrls": [
    "https://www.trivago.com/en-US/odr/hotels-new-york-new-york-state?search=200-14734"
  ],
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-12",
  "adults": 2,
  "minStars": 4,
  "maxPricePerNight": 400,
  "maxHotels": 5,
  "maxItems": 50
}
```

#### Children, and prices in euro

```json
{
  "startUrls": [
    "https://www.trivago.de/de/oar/hotel-the-plaza-new-york?search=100-8830"
  ],
  "adults": 2,
  "children": ["5", "8"],
  "rooms": 1,
  "currency": "EUR",
  "maxItems": 20
}
```

### Output Overview

Each row is one booking-site price for one hotel and one stay.

The price fields are in major currency units, such as dollars, not cents. `pricePerNight` is the rate shown before the taxes and fees that trivago rolls into `allInPricePerNight`. `pricePerStay` and `allInPricePerStay` cover the whole stay. `priceWasPerNight` is the previous nightly price when the page shows one, and null when it does not.

`bookingSite` is the site name when the booking link names it. `bookingUrl` is that link. `freeCancellation` is a deadline when the rate has one, and null when it does not. The row does not include a meal plan.

Hotel facts repeat on every deal for that hotel: name, stars, guest score, review count, address, coordinates, distance, photo, amenities, and highlights. That keeps a CSV usable without a second table.

### Output Samples

Hotel page, The Plaza in New York, stay 18 November 2026 to 19 November 2026, 2 adults, 1 room. The run saved two Prestigia deals. $1,887 was the cheaper nightly rate, so `isCheapest` is true on this row and false on the $1,901 row. Amenities and highlights are shortened here. The saved row lists the full sets, including Gym, Restaurant, and WiFi.

```json
{
  "dealId": "3523418602396297075",
  "hotelName": "The Plaza",
  "accommodationId": 8830,
  "hotelUrl": "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830",
  "stars": 5,
  "hotelRating": 9,
  "hotelReviewCount": 13568,
  "city": "New York",
  "country": "USA",
  "address": "768 5th Ave, New York, 10019, USA",
  "latitude": 40.76462936401367,
  "longitude": -73.97432708740234,
  "distance": "0.8 miles to Times Square",
  "distanceToCenter": 0.6,
  "imageUrl": "https://imgcy.trivago.com/c_fill,d_dummy.jpeg,f_auto,q_auto,w_1200/partner-images/cf/d4/52f056829357ad6526a8e55db32c6e1904962d18e2c743839828a47aa43e.jpeg",
  "imageCount": 102,
  "propertyType": "Hotel",
  "checkInHour": 15,
  "checkOutHour": 12,
  "freeWifi": true,
  "amenities": ["Gym", "Restaurant", "Spa", "WiFi", "Parking", "Pet-friendly"],
  "highlights": ["24-Hour Fitness Center Access", "Afternoon Tea At Palm Court", "Prime Location Near Central Park"],
  "checkIn": "2026-11-18",
  "checkOut": "2026-11-19",
  "currency": "USD",
  "bookingSite": "Prestigia",
  "advertiserId": 227,
  "bookingUrl": "https://www.trivago.com/forward/en-US?forwarderA=...",
  "room": "Room, 1 King Bed",
  "roomCategory": "standard rooms",
  "freeCancellation": null,
  "pricePerNight": 1887,
  "priceWasPerNight": null,
  "pricePerStay": 1887,
  "allInPricePerNight": 2631,
  "allInPricePerStay": 2631,
  "isCheapest": true
}
```

`bookingUrl` in the dataset is the full link. The sample above cuts it.

### Key Output Fields

#### Price

| Field | Meaning |
|---|---|
| `pricePerNight` | Nightly rate in major currency units |
| `allInPricePerNight` | Nightly rate with the taxes and fees trivago adds |
| `pricePerStay` | Rate for the whole stay |
| `allInPricePerStay` | All-in rate for the whole stay |
| `priceWasPerNight` | Previous nightly price, when the page shows one |
| `currency` | Currency of the amounts |
| `isCheapest` | True when this nightly rate is the lowest saved for that hotel in the run |

#### The deal

| Field | Meaning |
|---|---|
| `dealId` | Id of this price |
| `bookingSite` | Booking site name, or null when the link did not name one |
| `advertiserId` | Numeric id of that booking site |
| `bookingUrl` | Link onward to the booking site |
| `room` | Room name, such as `Room, 1 King Bed` |
| `roomCategory` | Category label, such as `standard rooms` |
| `freeCancellation` | Free-cancellation deadline, or null |

#### The stay

| Field | Meaning |
|---|---|
| `checkIn` | Arrival date you asked for |
| `checkOut` | Departure date you asked for |
| `checkInHour` | Hotel check-in hour, when the page shows one |
| `checkOutHour` | Hotel check-out hour, when the page shows one |

#### The hotel

| Field | Meaning |
|---|---|
| `hotelName` | Hotel name |
| `accommodationId` | trivago hotel id |
| `hotelUrl` | Hotel page |
| `stars` | Star class |
| `hotelRating` | Guest score, about 0 to 10 |
| `hotelReviewCount` | Count of ratings behind that score |
| `propertyType` | Such as `Hotel` |
| `address` | Street address |
| `city` | City |
| `country` | Country |
| `latitude`, `longitude` | Coordinates |
| `distance` | Distance label from the page, such as `0.8 miles to Times Square` |
| `distanceToCenter` | Distance to the city center |
| `imageUrl` | Main photo |
| `imageCount` | Number of photos |
| `freeWifi` | True when the page says Wi-Fi is free |
| `amenities` | Amenity names |
| `highlights` | Highlight titles |

### FAQ

**Can I paste a city search and a hotel page in the same run?** Yes. Each URL is handled on its own. A hotel page always prices that one hotel. A city search prices up to `maxHotels` hotels from the first results page.

**Why are there fewer deals than booking sites on the page?** `maxDealsPerHotel` defaults to 25, and `maxItems` defaults to 100. Raise either cap if you want more. A free plan still stops at 100 deals in the whole run.

**What does `isCheapest` mean?** It is the lowest `pricePerNight` among the deals saved for that hotel after `maxPricePerNight` is applied. Two deals at that same price are both marked. Deals you did not save are not part of the comparison.

**What if I leave the dates blank?** Check-in is tomorrow and check-out is the morning after, in UTC. Set both dates, or leave both blank. One date on its own is ignored and the run uses tomorrow night.

**What if `freeCancellation` or `priceWasPerNight` is null?** That rate did not show a deadline or a previous price. The row is still saved.

**Do I get a meal plan?** No. The row has no meal-plan field.

**Can I type a hotel name instead of a URL?** No. Paste the city search or the hotel page.

**A city search only returned a handful of hotels.** The run reads the first results page, then applies `maxHotels` (default 5). It does not walk later result pages.

**The run succeeded and the dataset is empty.** That stay had no prices. Try a nearer date. An empty stay is not an error.

**What if `bookingSite` is null?** The price was saved, and the booking link did not include a site name. `bookingUrl` may still be present.

**Which trivago sites work?** Any trivago city search or hotel page, including trivago.de, trivago.co.uk, and the other country sites. Leave `currency` blank to use that site's currency, or set a code such as `USD`.

**Where do the children go?** Every age in `children` is placed on the first room. The other rooms have no children.

**What does a free plan get?** At most 100 deals per run. Paid plans follow `maxItems`.

### Support

- Issues and feature requests: the Issues tab on [this actor](https://apify.com/memo23/trivago-scraper).
- Website: <https://muhamed-didovic.github.io/>
- Email: <muhamed.didovic@gmail.com>

### Additional services

- A custom export, extra fields, or a one-off dataset: <muhamed.didovic@gmail.com>
- A similar price actor for another hotel site: same address.

### Explore more scrapers

- [Trivago Reviews Scraper](https://apify.com/memo23/trivago-reviews-scraper) for the written guest reviews, the score, and the booking site
- [Google Hotels Scraper](https://apify.com/memo23/google-hotels-scraper) for prices, booking-site rates, and reviews
- [Booking.com Hotel Scraper](https://apify.com/memo23/booking-scraper) for ratings, review counts, and prices
- [Tripadvisor Scraper](https://apify.com/memo23/tripadvisor-scraper) for hotels, restaurants, and reviews
- [Hotels.com Reviews Scraper](https://apify.com/memo23/hotels-scraper) for guest feedback
- Everything else: [memo23 on Apify](https://apify.com/memo23)

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/trivago-scraper`).

**Purpose:** one dataset row per trivago booking-site price, for a city search or a hotel page.

**Minimal input:**

```json
{
  "startUrls": [
    "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"
  ],
  "maxItems": 20
}
```

**Output:** one row per deal. Fields: `dealId`, `hotelName`, `accommodationId`, `hotelUrl`, `stars`, `hotelRating`, `hotelReviewCount`, `city`, `country`, `address`, `latitude`, `longitude`, `distance`, `distanceToCenter`, `imageUrl`, `imageCount`, `propertyType`, `checkInHour`, `checkOutHour`, `freeWifi`, `amenities`, `highlights`, `checkIn`, `checkOut`, `currency`, `bookingSite`, `advertiserId`, `bookingUrl`, `room`, `roomCategory`, `freeCancellation`, `pricePerNight`, `priceWasPerNight`, `pricePerStay`, `allInPricePerNight`, `allInPricePerStay`, `isCheapest`.

**Behaviors an agent should know:**

- Always set `maxItems`. The default is 100, and a free plan stops at 100.
- `startUrls` must be trivago city searches (`/odr/`, search `200-`) or hotel pages (`/oar/`, search `100-`). Other hosts are skipped.
- Leave both dates blank for tomorrow night, or set both as `YYYY-MM-DD`. A city search only prices hotels from the first results page, capped by `maxHotels` (default 5).
- Billed per saved deal on the `deal` event. Gold is $0.0004 per deal. Free is $0.0006. A start fee of $0.005 per GB of memory is charged once. Pushing the row does not add a second charge. A null `bookingSite` is still billed.
- No meal plan. No hotel-name search. An empty stay returns no rows and is not a failed run.

***

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by trivago N.V. or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

The scraper accesses only publicly available hotel and price pages. It does not log in. Users are responsible for ensuring their use complies with trivago's Terms of Service, applicable data-protection law (GDPR, CCPA, and others), and any contractual obligations of their own organization.

### SEO Keywords

trivago scraper, scrape trivago, trivago hotel prices, trivago deals, trivago api, apify trivago, hotel price comparison, booking site rates, nightly rate export, rate parity data, hotel market data, hospitality pricing, city hotel search, trivago.de prices, trivago.co.uk hotels, ota price export, hotel deal dataset, competitor hotel rates, guest score and stars, hotel address export

# Actor input Schema

## `startUrls` (type: `array`):

A trivago city search or hotel page. Example: https://www.trivago.com/en-US/odr/hotels-new-york-new-york-state?search=200-14734

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

Stay arrival as YYYY-MM-DD. Leave blank to use tomorrow.

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

Stay departure as YYYY-MM-DD. Has to be after check-in. Leave blank to use the night after tomorrow.

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

Adults in the stay. Default 2.

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

Ages of the children on the stay, for example 5 and 8. Leave empty when there are no children.

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

Price currency, such as USD, EUR, or GBP. Leave blank to use the currency of the trivago site in the link.

## `minStars` (type: `integer`):

Skip hotels below this star class. Leave empty to keep every star class.

## `minGuestRating` (type: `number`):

Skip hotels scored below this, on the 0 to 10 guest score. Leave empty to keep every score.

## `maxPricePerNight` (type: `number`):

Drop deals above this nightly price, in the stay currency. Leave empty to keep every price.

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

Number of rooms. Default 1. Adults are split across the rooms.

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

How many hotels to take from a city search. A hotel page always stays at one. Default 5.

## `maxDealsPerHotel` (type: `integer`):

Cap on booking-site prices saved for one hotel. Default 25.

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

Hard cap on deals saved in the whole run. Default 100. A free plan stops at 100.

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

Residential proxies recommended. The default works out of the box.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"
  ],
  "adults": 2,
  "children": [],
  "rooms": 1,
  "maxHotels": 5,
  "maxDealsPerHotel": 25,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `deals` (type: `string`):

Nightly and all-in price, room, booking site, address, distance, and guest score.

# 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 = {
    "startUrls": [
        "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/trivago-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 = { "startUrls": ["https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/trivago-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 '{
  "startUrls": [
    "https://www.trivago.com/en-US/oar/hotel-the-plaza-new-york?search=100-8830"
  ]
}' |
apify call memo23/trivago-scraper --silent --output-dataset

```

## MCP server setup

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