# Trivago Hotel Scraper (`parseforge/trivago-scraper`) Actor

Scrape Trivago hotel listings by city or destination. Returns hotel name, rating, price, and amenities as a flat row. Supports optional check-in and check-out dates for price-aware results.

- **URL**: https://apify.com/parseforge/trivago-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Travel, E-commerce, Other
- **Stats:** 7 total users, 0 monthly users, 90.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Trivago Hotel Scraper

**Scrape Trivago hotel listings for any city or destination, up to a million per run.** Every hotel comes with its name, rating, price, and amenities from multiple booking sites. No login or API key. Export to CSV, JSON, Excel, or XML.

Trivago compares hotel prices across hundreds of booking sites, but manually checking every listing for a destination is slow and repetitive. This Actor reads the public search results directly, letting you collect hotel names, ratings, prices, and amenities for any city in one structured dataset. Filter by check-in and check-out dates to get price-aware results, and set a maximum number of hotels to control the run size.

| Who uses it | What they scrape Trivago for |
|---|---|
| Revenue managers | Monitor competitor pricing for a destination over time. |
| Travel agencies | Build a searchable database of hotel options for client trips. |
| Market researchers | Analyze hotel supply, rating distributions, and amenity trends in a region. |
| Affiliate marketers | Gather hotel listings with prices to populate a travel deals site. |

### What it does

This Actor collects Trivago hotel listings by city or destination and returns each one as a flat row with its name, rating, price, and amenities.

- 🏨 **Destination search:** enter any city or destination name, like New York City, Paris, or London.
- 📅 **Date-aware pricing:** set optional check-in and check-out dates to see real-time rates for specific stays.
- 🔢 **Volume control:** cap the number of hotels collected per run, from a single preview to a full market sweep.
- 📦 **Structured output:** every hotel lands as a flat row in CSV, JSON, Excel, or XML, ready for analysis.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Trivago data

**📊 Monitor competitor pricing.**

A revenue manager runs the Actor weekly for their city to track how rival hotels adjust rates across seasons.

**🗺️ Build a destination database.**

A travel agency scrapes all hotels in Paris with dates for a client's trip and loads the results into their booking tool.

**🔍 Research market supply.**

A hospitality analyst collects every hotel in a region to map rating distributions and amenity coverage.

**💸 Power a deals site.**

An affiliate marketer scrapes hotel listings with prices for popular destinations and publishes the best finds.

### Why choose this scraper

| | What you get |
|---|---|
| **Hotel name and rating** | Identify top-rated properties in any destination instantly. |
| **Price from multiple sites** | See the rate Trivago displays, sourced from booking partners. |
| **Amenities list** | Filter hotels by pool, WiFi, parking, and other key features. |
| **Date-specific results** | Collect prices that reflect a real stay, not a generic search. |

### How it compares

This Actor focuses on scraping Trivago hotel listings with optional date-aware pricing. Here is how it compares to other Trivago scrapers on Apify based on their public listings.

| Feature | ParseForge | Trivago Hotels Scraper | Best Hotel Price Search Engine | Trivago Hotel Scraper - Compare Prices & AI Deal Finder |
|---|---|---|---|---|
| Destination search | Yes | Yes | Yes | Yes |
| Date-aware pricing | Yes | Yes | Not listed | Not listed |
| Amenities data | Yes | Not listed | Not listed | Not listed |
| Configurable max items | Yes | Not listed | Not listed | Not listed |
| AI deal finder | Not listed | Not listed | Not listed | Yes |
| Multi-site price comparison | Not listed | Not listed | Yes | Yes |

### Configure the run

Drive the Actor with a city or destination name, and optionally add check-in and check-out dates for price-aware results. The max items limit controls how many hotels reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "location": "New York City",
 "maxItems": 10
}
```

A larger pull:

```json
{
 "location": "New York City",
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Trivago Hotel Scraper](https://apify.com/parseforge/trivago-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Trivago through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/trivago-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that the destination name matches what Trivago expects. Try the exact city name from Trivago's own search suggestions. Also, a very narrow date range in a small destination can sometimes return few or no listings.

**The prices look different from what I see on the Trivago website.**

Prices on Trivago change frequently and can vary by user location, cookies, and browsing session. The Actor sees the public price at the moment of scraping, which may differ from a logged-in or personalized view.

**The run stopped before reaching my max items limit.**

Trivago may return fewer hotels than your limit for a given destination. The Actor collects all available listings up to your cap. If it stops early, the destination likely has fewer hotels than the number you set.

**I get an error about the date format.**

Use the YYYY-MM-DD format exactly, for example 2025-12-20. Do not use slashes, dots, or written months. Both check-in and check-out must use this format if you provide them.

**The Actor is taking a long time to finish.**

Large destinations with high max items limits take longer because the Actor paginates through many results pages. Reduce the max items or choose a smaller destination for faster runs.

### FAQ

| Question | Answer |
|---|---|
| Can I scrape hotels for multiple cities in one run? | The Actor takes one location per run. To scrape multiple cities, run it once per city, either sequentially or in parallel using multiple runs. |
| Do I need a Trivago account or API key? | No. The Actor reads the public search pages that anyone can visit in a browser. No login, no API key, no registration. |
| What happens if I leave the check-in and check-out dates blank? | The Actor runs a flexible search without specific dates. You will still get hotel names, ratings, and amenities, but prices may reflect a default or generic rate rather than a date-specific one. |
| How many hotels can I collect per run? | You set the maximum, from 1 up to 1,000,000. The Actor stops when it hits your limit or when Trivago has no more results for that destination. |
| Does this Actor return the price from every booking site Trivago lists? | It returns the primary price Trivago displays for each hotel, which is typically the best rate found across its partner sites. It does not break out every individual booking site's price in separate columns. |
| Can I filter by star rating or amenities before scraping? | The Actor collects all listings for the destination. You can filter the output dataset afterward by rating or amenities using the tools you import the data into, like Excel or a database. |
| Is this Actor legal to use? | You are responsible for complying with Trivago's terms of service and applicable laws. Apify provides the tool; how you use it is your decision. Many users scrape public data for competitive analysis and market research. |
| What export formats are supported? | You can export your results to CSV, JSON, Excel, or XML from the Apify platform. |
| How often can I run this Actor? | As often as you like. You can schedule it to run daily, weekly, or on any custom interval to track changes over time. |
| Does it handle destinations with non-English names? | Yes. Enter the destination name as you would type it into Trivago's search box, including accented characters or local script if Trivago supports it for that region. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Trivago N.V. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `location` (type: `string`):

City or destination to search for hotels (e.g. 'New York City', 'Paris', 'London')

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

Maximum number of hotels to collect per run.

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

Check-in date in YYYY-MM-DD format (e.g. 2025-12-20). Leave blank for flexible search.

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

Check-out date in YYYY-MM-DD format (e.g. 2025-12-23). Leave blank for flexible search.

## Actor input object example

```json
{
  "location": "New York City",
  "maxItems": 10
}
```

# 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 = {
    "location": "New York City",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/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 = {
    "location": "New York City",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/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 '{
  "location": "New York City",
  "maxItems": 10
}' |
apify call parseforge/trivago-scraper --silent --output-dataset

```

## MCP server setup

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