# Trivago Hotels Search Scraper (`stealth_mode/trivago-hotels-search-scraper`) Actor

Scrape hotel listings from Trivago.com search results including pricing, deals, ratings, sponsored status, and display attributes. Perfect for travel analysts, price comparison tools, and hospitality researchers needing structured accommodation data.

- **URL**: https://apify.com/stealth\_mode/trivago-hotels-search-scraper.md
- **Developed by:** [Stealth mode](https://apify.com/stealth_mode) (community)
- **Categories:** Automation, Developer tools, Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

```markdown
## Trivago Hotels Search Scraper: Extract Hotel Listings & Deals at Scale
---

### What Is Trivago.com?

Trivago is one of the world's largest hotel metasearch platforms, aggregating prices and availability from hundreds of booking sites. It serves millions of travelers searching for accommodation across every major destination. Manually collecting hotel listings, deal data, and pricing from Trivago is impractical at scale — the **Trivago Hotels Search Scraper** automates this, turning search result pages into structured, analysis-ready datasets.

---

### Overview

The **Trivago Hotels Search Scraper** extracts hotel listings directly from Trivago search result URLs, capturing everything from pricing deals and sponsorship flags to display attributes and distance labels. It is built for:

- **Travel analysts** monitoring hotel availability and pricing trends
- **Price comparison platforms** aggregating multi-source accommodation data
- **Revenue managers** benchmarking competitor rates across markets
- **Researchers** studying hospitality supply and demand by city or region

The scraper supports bulk URL inputs, configurable item limits, and fault-tolerant runs via `ignore_url_failures`.

---

### Input Format

The scraper accepts a JSON configuration object with the following parameters:

```json
{
  "ignore_url_failures": true,
  "max_items_per_url": 200,
  "urls": [
    "https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40;pa-2"
  ]
}
````

| Field | Type | Description |
|---|---|---|
| `urls` | `array` | One or more Trivago hotel search result page URLs. Accepts single entries or a bulk list. Each URL should represent a fully filtered search (location, dates, guests, filters). |
| `max_items_per_url` | `integer` | Maximum number of hotel records to collect per URL. Default prefill: `20`. Set higher (e.g., `200`) for comprehensive market snapshots. |
| `ignore_url_failures` | `boolean` | If `true`, the scraper continues running when individual URLs fail instead of stopping the entire run. Recommended for bulk jobs. Default: `true`. |

***

### Output Format

#### Example Output Record

```json
{
  "id": "100/48076",
  "nsid": {
    "id": 48076,
    "ns": 100
  },
  "accommodation_details": {
    "accommodation_category": "HOTEL",
    "translated_name": {
      "value": "The Marble Arch Hotel, by Thistle"
    },
    "image_gallery": {
      "total_image_count": 103
    },
    "construction_year": null,
    "created_at": null,
    "destination_hierarchy": [
      {
        "nsid": {
          "id": 17399,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 5,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "London"
        }
      },
      {
        "nsid": {
          "id": 16240,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 4,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "Greater London"
        }
      },
      {
        "nsid": {
          "id": 16235,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 3,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "England"
        }
      },
      {
        "nsid": {
          "id": 66,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 2,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "United Kingdom"
        }
      },
      {
        "nsid": {
          "id": 4,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 1,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "Europe"
        }
      },
      {
        "nsid": {
          "id": 439374,
          "ns": 200
        },
        "type_object": {
          "nsid": {
            "id": 101,
            "ns": 201
          }
        },
        "translated_name": {
          "value": "World"
        }
      }
    ],
    "is_v_r_b_o_exclusive": false,
    "unit_details": null,
    "booking_exclusive_rating": null,
    "vrbo_exclusive_rating": null,
    "country": {
      "translated_name": {
        "value": "United Kingdom"
      }
    },
    "coordinates": {
      "latitude": 51.51416015625,
      "longitude": -0.15665000677108765
    },
    "highlights": {
      "popular": false,
      "ai_generated": [
        {
          "title": "Historic Italian marble entrance",
          "scored_aspect_themes": null
        }
      ]
    },
    "locality": {
      "nsid": {
        "id": 17399,
        "ns": 200
      },
      "translated_name": {
        "value": "London"
      }
    },
    "user_friendly_url": {
      "slug": "the-marble-arch-hotel-by-thistle-london"
    },
    "business_studio": {
      "subscription_status": "INACTIVE"
    },
    "type_object": {
      "translated_name": {
        "value": "Hotel"
      },
      "nsid": {
        "id": 2,
        "ns": 101
      }
    },
    "nsid": {
      "id": 48076,
      "ns": 100
    },
    "has_room_details70344": true,
    "review_rating": {
      "formatted_rating": "8.4",
      "reviews_count": 26013,
      "trivago_rating": 8412
    },
    "review_ratings": {
      "has_reviews_summary_match": true
    },
    "hotel_classification": {
      "rating": 4,
      "is_superior": false
    },
    "special_offers": {
      "has_offer": false,
      "advertiser": null,
      "loyalty": null,
      "limited_time_offer": null
    },
    "scored_aspect_themes": [
      {
        "id": "4",
        "name": {
          "translation": {
            "value": "Family-friendly"
          }
        }
      },
      {
        "id": "4",
        "name": {
          "translation": {
            "value": "Family-friendly"
          }
        }
      },
      {
        "id": "4",
        "name": {
          "translation": {
            "value": "Family-friendly"
          }
        }
      },
      {
        "id": "4",
        "name": {
          "translation": {
            "value": "Family-friendly"
          }
        }
      },
      {
        "id": "4",
        "name": {
          "translation": {
            "value": "Family-friendly"
          }
        }
      }
    ],
    "is_airbnb_exclusive": false,
    "main_image_object": {
      "path": "/partner-images/f6/b9/2a656b2824dab84a8c8421f04a85caa00f44c87b73e97f7fadd965bc0c58"
    }
  },
  "distance_label": {
    "value": "1.0 km to Hyde Park"
  },
  "deals": {
    "best": {
      "advertiser_details": {
        "nsid": {
          "id": 626,
          "ns": 400
        },
        "group": null,
        "logo": {
          "localized_url_tail": "/partnerlogos-s3/626",
          "localized_favicon_url_tail": "/partnerlogos-squared/626"
        },
        "advertiser_tagline": null
      },
      "accommodation_details": {
        "nsid": {
          "id": 48076,
          "ns": 100
        },
        "special_offers": {
          "has_offer": false,
          "advertiser": null,
          "loyalty": null,
          "limited_time_offer": null
        }
      },
      "enriched_price_attributes_translated": [
        {
          "nsid": {
            "id": 1,
            "ns": 411
          }
        },
        {
          "nsid": {
            "id": 2,
            "ns": 412
          }
        },
        {
          "nsid": {
            "id": 1,
            "ns": 402
          }
        }
      ],
      "clickout_url": "https://www.trivago.vn/forward/en-US?forwarderA=haJSVTregzRCCXD0ntQWxwwakGw7GdMGO11mxACBJsDZfjE%2F4mJhv9gM5Q9oI5dmZteRdgvtIBUBNi3Ivv%2FF4ZDDHFcJAXyJEsrcKa1wuH%2F55QeURNeEkOnbJ%2FcD75g0Xaig66zvsA2uhrp9QlBhnBQvV0jS%2FZY6%2BDvxE3lhVASlA%2BNZX8nNIWXJ01YOZLgqmLWV2J5RXluoRZ%2F6TMiQ5%2Bg0CzYbKpi98tpCGl8XZCWPmsNIQ4H8GPUjIlOJOKsf97bp5HG4DuyhGn%2BYJK9dfETnwW5OQTNNOOHiZfR9CKDIJCjfrsusFF4lt%2Behn8%2FkUvdJ98V8gARovAjMMJwLRLriqmZJErVYj2mUBTDQBR%2B8hfPDTzd6hwbVrL%2FmZUuXAlEXWhffEFPIs3qqsr3nIwiUGxTWQo9S2mzYYyOCKsfDjmXs8fEsMACITUeX53AWKQrTw8G62Ew%3D&forwarderB=PdsozybNGYlf7a5LIXnJc81kWy1kXe6yIkGHFkAQMPLFJ61I6jN6%2FaBVc4gT8DIkJH%2F2wS220b5rntkN2OzCtZpNPNHDKLDnf6npMD9%2BgF7WAb00mBpYkMQlA3vZKSlzmMcZhgWqqrzBre3gkGqHmpBr1oC7%2FCw%2B6VjsEOkO%2Bl2Q6ARTJDWsjsvyI3t2oPFqkMX2UPS%2FhBBHf%2Fh1mYC7NIET3pUtePdO%2B4NYZGQm5Bp4kHNrDXLsO2uW7bzHHb0ex6KeacYMX5cY68GomxnbQre7mTxshOcvDSQwjdk1G0ztyTb6Fg8wy42oIzLSU1aOHSYOHOGakhNsYGiRE11BH34oO1NDEs0UM%2BxS1ISZX7Yn0Mjb4uXbvsIaK77XtVBSRR0tSg%2FNMv66rlrXUhmwMPwhXsFB0gW9gKcxFQ3JO42xJtoEr9RQQvVDO00jSZue",
      "display_attributes_list": [
        "CHAMPION_DEAL",
        "GLOBAL_OTA",
        "MINIMUM_DEAL"
      ],
      "all_in_price_per_night": {
        "amount": 9276100,
        "eurocents": 30233
      },
      "all_in_price_per_stay": {
        "amount": 18552100,
        "eurocents": null
      },
      "price_per_night": {
        "amount": 9276100,
        "eurocents": 30233
      },
      "price_per_stay_object": {
        "amount": 18552100,
        "eurocents": null
      },
      "price_per_night_strikethrough": null,
      "price_per_stay_strikethrough": null,
      "room_category": null,
      "deal_classifications": [
        {
          "absolute_savings_amount_per_night": {
            "amount": 1704700
          },
          "original_price_per_night": {
            "amount": 10980800,
            "eurocents": null
          },
          "absolute_savings_amount_per_stay": {
            "amount": 3409500
          },
          "savings_percentage": 16,
          "type": {
            "nsid": {
              "id": 20,
              "ns": 404
            },
            "translated_name": null
          }
        }
      ],
      "id": "-5938884567153740768",
      "price_details": {
        "free_cancellation_deadline": null,
        "room_info": [
          {
            "bed_arrangements": []
          }
        ],
        "reward_rate": null
      },
      "eligible_for_accommodation_details_page": false
    },
    "alternatives": [
      {
        "advertiser_details": {
          "nsid": {
            "id": 227,
            "ns": 400
          },
          "group": null,
          "logo": {
            "localized_url_tail": "/partnerlogos-s3/227",
            "localized_favicon_url_tail": "/partnerlogos-squared/227"
          },
          "advertiser_tagline": null
        },
        "accommodation_details": {
          "nsid": {
            "id": 48076,
            "ns": 100
          },
          "special_offers": {
            "has_offer": false,
            "advertiser": null,
            "loyalty": null,
            "limited_time_offer": null
          }
        },
        "enriched_price_attributes_translated": [
          {
            "nsid": {
              "id": 1,
              "ns": 411
            }
          },
          {
            "nsid": {
              "id": 2,
              "ns": 412
            }
          },
          {
            "nsid": {
              "id": 1,
              "ns": 413
            }
          },
          {
            "nsid": {
              "id": 1,
              "ns": 402
            }
          }
        ],
        "clickout_url": "https://www.trivago.vn/forward/en-US?forwarderA=Gp2yFSiaCHGgQYg80uMj6VlZa7c6jGLHLrIlEJgouQUqREPmhTkGolODVw0MfGFTp8%2FzKq%2BAalXljenFW%2FYZ%2BPLkFBuMwlVTu0qWn8Oonun1ZKy7gZDHZ9wqa7IGxi5RqVcKzKXwoQXIuY1DC9MU4lpSrgonwCkxY3fM5fkQfXZJ3RqZoalO4UBjn1eJ6PmCXALRjrMvZisMFScT2jFa2dPQdp62xWsb8ylP8EgPoyYRnotiTw4yHtgkJeMBSFXMGsRjLXPdQ2kH9w0JBHPCKFyPfBG47D0P72%2FB2jONPqpvD7ypwFm4yvV3kC%2BodF1YyQgQTTEobJPNlJyq%2BBEdwNNdnki4SsqJCwGK6K2N55MSfyDNiaeG9aX6vT9d387yW1V1tCVzGkqTIwAKcUkY4eb6r3ptIQw889qNw4rZRshbLlAqs8t%2FG6hMP0zfDIx0%2Bsifdc87dmE%3D&forwarderB=lgmuf3hW6GyDJJJaduHfkXrIrGOk00hA64FBKcTxGa3NAD6c1R42EqdM9JQMooY9aetRqqR2BDNC%2BSrn9cVwD9%2FYpxfrcwbVgZoK9vNC5Z47WPXtyGjl65KrY6YnaaEV2sT5GSfJvZFj3sMFR96IO960emJAkLuoUGQSuV2hxkdk3hZwIORdeLxtwtkmgqQl5wLkBkCeP2rWuZpxre%2FK0HRnH9xOR3ywOb1SL%2BBH0hMokpV14Ta%2Bp1zjT4W6SmS7%2Boyq2BtFrq6XlRmnU7W617srpmDMzVUdizzPCCWeMIG9GVua0mAzus3yq%2BBsaT1nGUO0b5PKxkx51I3vVgDrV1qpEuLcv%2FR%2FrG8T8dJbzsGltAb0nTFCdWUlugwzI9TE10ytzc5mFJXc9dU1PkArt%2B3IUEslwUWUr4rG20rImEBsqVI%3D",
        "display_attributes_list": [
          "ALTERNATIVE_DEAL"
        ],
        "all_in_price_per_night": {
          "amount": 9678400,
          "eurocents": 31544
        },
        "all_in_price_per_stay": {
          "amount": 19356800,
          "eurocents": null
        },
        "price_per_night": {
          "amount": 9678400,
          "eurocents": 31544
        },
        "price_per_stay_object": {
          "amount": 19356800,
          "eurocents": null
        },
        "price_per_night_strikethrough": null,
        "price_per_stay_strikethrough": null,
        "room_category": null,
        "deal_classifications": [],
        "id": "-8562093682939205134",
        "price_details": {
          "free_cancellation_deadline": null,
          "room_info": [],
          "reward_rate": null
        },
        "eligible_for_accommodation_details_page": false
      },
      {
        "advertiser_details": {
          "nsid": {
            "id": 395,
            "ns": 400
          },
          "group": {
            "nsid": {
              "id": 395,
              "ns": 400
            }
          },
          "logo": {
            "localized_url_tail": "/partnerlogos-s3/395",
            "localized_favicon_url_tail": "/partnerlogos-squared/395"
          },
          "advertiser_tagline": "Giá giảm đặc biệt, khuyến mại có thời hạn"
        },
        "accommodation_details": {
          "nsid": {
            "id": 48076,
            "ns": 100
          },
          "special_offers": {
            "has_offer": false,
            "advertiser": null,
            "loyalty": null,
            "limited_time_offer": null
          }
        },
        "enriched_price_attributes_translated": [
          {
            "nsid": {
              "id": 1,
              "ns": 411
            }
          },
          {
            "nsid": {
              "id": 2,
              "ns": 412
            }
          },
          {
            "nsid": {
              "id": 1,
              "ns": 413
            }
          },
          {
            "nsid": {
              "id": 1,
              "ns": 402
            }
          }
        ],
        "clickout_url": "https://www.trivago.vn/forward/en-US?forwarderA=iNiKZTlr9jXIlaUeRLYMLaGJ4oXRra39W04WJyL3TO34TnCgpd%2Btg1Y95D4StL3kUchc82URi5FQF21OXLcFlRMHAqhxPqSoMkN7Wzv7L7V3X%2BGHFuLvDB1mWt0R7wElP0fNCEJS3TRAxaMfDIPUS9abpj%2FOwTeWl36If%2FajjGGNZk%2F8oZJWHQafKNY5SGn0dfZJ3bPdynGHNp1rQfkzPvIdb%2FJaJj1s8ubLtNedhV2cYIUeKgm8upLhviaDySS%2BwpRCUIPwfbOXAso%2FdI9mvkQBXXjsjrCCMMsr%2FKYszbBw5nY8Ysg%2BQLzIoulp%2B4qUb8ETxobbFI6Vd0yGimpyAannKtqVCBajw5SGdgRWcz1Pb%2Fxmx0r5G12EB3mlNpZXq%2BYEqD4IA6BONTI6PiLptCdqIXi9ccKaUKLOJttoBEF77j8tQ7cjekGsmqDzuSUgf0u3AhIaQiA%3D&forwarderB=8tRJOh5lp%2F9CKj6YY47KKNYcdYgsOEejF%2F4YVlO84PLXq2chaUSxEu766G7yxDR1%2Beh6AELg1y1ULmCskIebvC1rY8%2B5A%2B794FK6KOLBpHFTqjtUp9ymfrCrDgJExXGG4oz6QpQIPnfGkCWlEY49R5GKwolLc0%2BiAWBDdQM1WjsbAfPjFceC8z7YJeh9xf0gmBiIIkWQndhputUIDNM42wO%2Bn1GUPjwj6u3p4nsBLSpGwA0XT78Qx6XZC1V5768Y8RbOue%2BTDUJZaqWe%2BMRitziEKrNH2ITeJ868XL%2Bi3kx59GV3SdUzQ5y1tBnS60vej4m2vN2U4drDDIxDtfkqgM%2B4XMvxdGQ0qz%2FMDnPGBevBQRcpY9atslutycoFtMhhhNOcCoFXuPd2BLcCTwrKwZZRGJC%2BcYkQ6A%3D%3D",
        "display_attributes_list": [
          "ALTERNATIVE_DEAL",
          "GLOBAL_OTA"
        ],
        "all_in_price_per_night": {
          "amount": 10980800,
          "eurocents": 35789
        },
        "all_in_price_per_stay": {
          "amount": 21961600,
          "eurocents": null
        },
        "price_per_night": {
          "amount": 10980800,
          "eurocents": 35789
        },
        "price_per_stay_object": {
          "amount": 21961600,
          "eurocents": null
        },
        "price_per_night_strikethrough": {
          "amount": 16569973,
          "eurocents": 54005
        },
        "price_per_stay_strikethrough": {
          "amount": 33139946,
          "eurocents": null
        },
        "room_category": null,
        "deal_classifications": [],
        "id": "-6763244096487940658",
        "price_details": {
          "free_cancellation_deadline": null,
          "room_info": [],
          "reward_rate": null
        },
        "eligible_for_accommodation_details_page": false
      }
    ],
    "cheapest": {
      "advertiser_details": {
        "nsid": {
          "id": 626,
          "ns": 400
        },
        "group": null,
        "logo": {
          "localized_url_tail": "/partnerlogos-s3/626",
          "localized_favicon_url_tail": "/partnerlogos-squared/626"
        },
        "advertiser_tagline": null
      },
      "accommodation_details": {
        "nsid": {
          "id": 48076,
          "ns": 100
        },
        "special_offers": {
          "has_offer": false,
          "advertiser": null,
          "loyalty": null,
          "limited_time_offer": null
        }
      },
      "enriched_price_attributes_translated": [
        {
          "nsid": {
            "id": 1,
            "ns": 411
          }
        },
        {
          "nsid": {
            "id": 2,
            "ns": 412
          }
        },
        {
          "nsid": {
            "id": 1,
            "ns": 402
          }
        }
      ],
      "clickout_url": "https://www.trivago.vn/forward/en-US?forwarderA=haJSVTregzRCCXD0ntQWxwwakGw7GdMGO11mxACBJsDZfjE%2F4mJhv9gM5Q9oI5dmZteRdgvtIBUBNi3Ivv%2FF4ZDDHFcJAXyJEsrcKa1wuH%2F55QeURNeEkOnbJ%2FcD75g0Xaig66zvsA2uhrp9QlBhnBQvV0jS%2FZY6%2BDvxE3lhVASlA%2BNZX8nNIWXJ01YOZLgqmLWV2J5RXluoRZ%2F6TMiQ5%2Bg0CzYbKpi98tpCGl8XZCWPmsNIQ4H8GPUjIlOJOKsf97bp5HG4DuyhGn%2BYJK9dfETnwW5OQTNNOOHiZfR9CKDIJCjfrsusFF4lt%2Behn8%2FkUvdJ98V8gARovAjMMJwLRLriqmZJErVYj2mUBTDQBR%2B8hfPDTzd6hwbVrL%2FmZUuXAlEXWhffEFPIs3qqsr3nIwiUGxTWQo9S2mzYYyOCKsfDjmXs8fEsMACITUeX53AWKQrTw8G62Ew%3D&forwarderB=PdsozybNGYlf7a5LIXnJc81kWy1kXe6yIkGHFkAQMPLFJ61I6jN6%2FaBVc4gT8DIkJH%2F2wS220b5rntkN2OzCtZpNPNHDKLDnf6npMD9%2BgF7WAb00mBpYkMQlA3vZKSlzmMcZhgWqqrzBre3gkGqHmpBr1oC7%2FCw%2B6VjsEOkO%2Bl2Q6ARTJDWsjsvyI3t2oPFqkMX2UPS%2FhBBHf%2Fh1mYC7NIET3pUtePdO%2B4NYZGQm5Bp4kHNrDXLsO2uW7bzHHb0ex6KeacYMX5cY68GomxnbQre7mTxshOcvDSQwjdk1G0ztyTb6Fg8wy42oIzLSU1aOHSYOHOGakhNsYGiRE11BH34oO1NDEs0UM%2BxS1ISZX7Yn0Mjb4uXbvsIaK77XtVBSRR0tSg%2FNMv66rlrXUhmwMPwhXsFB0gW9gKcxFQ3JO42xJtoEr9RQQvVDO00jSZue",
      "display_attributes_list": [
        "CHAMPION_DEAL",
        "GLOBAL_OTA",
        "MINIMUM_DEAL"
      ],
      "all_in_price_per_night": {
        "amount": 9276100,
        "eurocents": 30233
      },
      "all_in_price_per_stay": {
        "amount": 18552100,
        "eurocents": null
      },
      "price_per_night": {
        "amount": 9276100,
        "eurocents": 30233
      },
      "price_per_stay_object": {
        "amount": 18552100,
        "eurocents": null
      },
      "price_per_night_strikethrough": null,
      "price_per_stay_strikethrough": null,
      "room_category": null,
      "deal_classifications": [
        {
          "absolute_savings_amount_per_night": {
            "amount": 1704700
          },
          "original_price_per_night": {
            "amount": 10980800,
            "eurocents": null
          },
          "absolute_savings_amount_per_stay": {
            "amount": 3409500
          },
          "savings_percentage": 16,
          "type": {
            "nsid": {
              "id": 20,
              "ns": 404
            },
            "translated_name": null
          }
        }
      ],
      "id": "-5938884567153740768",
      "price_details": {
        "free_cancellation_deadline": null,
        "room_info": [
          {
            "bed_arrangements": []
          }
        ],
        "reward_rate": null
      },
      "eligible_for_accommodation_details_page": false
    },
    "worst": null
  },
  "is_sponsored": false,
  "display_information": {
    "advertisers_with_eligible_prices": 4,
    "search_reflection": null
  },
  "display_attributes": [],
  "price_restrictions": [
    "NO_RESTRICTION"
  ],
  "restricted_deals": null,
  "from_url": "https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40"
}
```

Each hotel listing returns a structured record with the following fields:

#### Core Identifiers

| Field | Meaning |
|---|---|
| `ID` | Trivago's internal unique identifier for the accommodation |
| `NSID` | Secondary namespace identifier used for cross-referencing within Trivago's data systems |

#### Accommodation Details

| Field | Meaning |
|---|---|
| `Accommodation Details` | Core property information including name, category (hotel, apartment, hostel), star rating, review scores, and location data |
| `Distance Label` | Human-readable distance string from a reference point (e.g., city center or landmark), as displayed in search results |

#### Pricing & Deals

| Field | Meaning |
|---|---|
| `Deals` | Available pricing deals aggregated from booking partners — typically includes price per night, source platform, and booking link |
| `Restricted Deals` | Deals that are conditionally available (e.g., member-only rates, geo-restricted prices, or login-required offers) |
| `Price Restrictions` | Flags or rules limiting how prices can be displayed or used (e.g., regional restrictions, currency constraints) |

#### Listing Flags & Presentation

| Field | Meaning |
|---|---|
| `Is Sponsored` | Boolean flag indicating whether the listing is a paid/promoted placement in search results |
| `Display Information` | Structured data controlling how the listing appears in search (e.g., badges, highlights, featured labels) |
| `Display Attributes` | Visual or functional attributes shown to users such as "Free cancellation", "Breakfast included", "Pay at hotel", etc. |

***

### How to Use

1. **Run a Trivago search** — Set your destination, dates, guest count, and any filters. Copy the full URL.
2. **Configure the input** — Paste URLs into the `urls` array. Adjust `max_items_per_url` based on how many hotels you need (up to the number of results on the page).
3. **Run the scraper** — Start the actor and monitor progress in the run log.
4. **Export results** — Download as JSON, CSV, or Excel for analysis or integration.

**Best practices:**

- Use date-specific URLs for accurate pricing data — Trivago deals are date-sensitive.
- For multi-city research, add multiple search URLs in a single run.
- Set `ignore_url_failures: true` for bulk batches to avoid interruptions from occasional failures.

**Common issues:**

- If a URL returns 0 results, verify it loads correctly in a browser and isn't geo-blocked.
- Very broad searches (no date filters) may return inconsistent pricing data.

***

### Use Cases & Business Value

- **Rate intelligence:** Track nightly prices across London, Paris, or any major market over time
- **Competitive analysis:** Identify which hotels are sponsoring listings and at what price points
- **Travel app development:** Feed structured hotel data into booking aggregators or travel planning tools
- **Market research:** Analyze accommodation supply density, average pricing, and deal availability by city

The scraper eliminates hours of manual data collection and delivers consistent, machine-readable records compatible with spreadsheets, databases, and BI platforms.

***

### Conclusion

The **Trivago Hotels Search Scraper** is a practical solution for extracting hotel listing data at scale — from pricing and deals to sponsorship flags and display attributes. Whether you're building a price comparison tool or conducting hospitality market research, it provides the structured foundation your workflow needs. Configure your first search URL and start collecting.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the hotels list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## `max_items_per_url` (type: `integer`):

The maximum number of items to scrape per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40;pa-2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}
```

# 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 = {
    "urls": [
        "https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40;pa-2"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("stealth_mode/trivago-hotels-search-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 = {
    "urls": ["https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40;pa-2"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("stealth_mode/trivago-hotels-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.trivago.com/en-US/lm/hotels-london-united-kingdom?search=100-48076;200-17399;106-1527;106-1324;dr-20260610-20260612;drs-40;pa-2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}' |
apify call stealth_mode/trivago-hotels-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=stealth_mode/trivago-hotels-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trivago Hotels Search Scraper",
        "description": "Scrape hotel listings from Trivago.com search results including pricing, deals, ratings, sponsored status, and display attributes. Perfect for travel analysts, price comparison tools, and hospitality researchers needing structured accommodation data.",
        "version": "0.0",
        "x-build-id": "dRe0tgPa4tWX6cZJi"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/stealth_mode~trivago-hotels-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-stealth_mode-trivago-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/stealth_mode~trivago-hotels-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-stealth_mode-trivago-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/stealth_mode~trivago-hotels-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-stealth_mode-trivago-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "urls": {
                        "title": "URLs of the hotels list urls to scrape",
                        "type": "array",
                        "description": "Add the URLs of the hotels list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ignore_url_failures": {
                        "title": "Continue running even if some URLs fail to be scraped",
                        "type": "boolean",
                        "description": "If true, the scraper will continue running even if some URLs fail to be scraped."
                    },
                    "max_items_per_url": {
                        "title": "Max items per URL",
                        "type": "integer",
                        "description": "The maximum number of items to scrape per URL."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
