# Trivago Hotel Search API Documentation

<p><strong>Trivago Hotel Search API Documentation</strong> Search Trivago hotels in one destination: for each hotel the position, id, name, url, type, star class, guest rating and review count, image and thumbnail, coordinates, location, distance to the center, check-in and check-out hours, highlights, number of booking sites and a price estimate for a future month (forecast_price, not a stay price). The response also carries the total hotel count, the price range, a price histogram and the filter counts of the destination. Search rows carry no stay price: use the offers endpoint with a hotel id for prices. Adults, rooms and children ages are accepted, but Trivago returns the same hotels for any group. Pages hold up to 50 hotels; has_more and next_offset drive pagination. Property types combine as alternatives, amenities must all match.</p>

- **Documentation:** [https://scrappa.co/docs/trivago-api/trivago_search](https://scrappa.co/docs/trivago-api/trivago_search)
- **API group:** Trivago API
- **Endpoint:** `GET https://scrappa.co/api/trivago/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `destination_id` | integer | Yes | Trivago destination id from the suggest endpoint. Example: 3848 for Berlin. |
| `check_in` | string | Yes | Check-in date, YYYY-MM-DD, today or later. Example: 2027-03-14. |
| `check_out` | string | Yes | Check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Example: 2027-03-16. |
| `adults` | integer | No | Number of adults, 1 to 30. Defaults to 2. Search ignores it. |
| `rooms` | integer | No | Number of rooms, 1 to 9, not more than adults. Defaults to 1. Search ignores it. |
| `children_ages` | string | No | Comma-separated ages of the children, each 0 to 17, up to 6. Example: 5,7. |
| `currency` | string | No | Three-letter uppercase currency code. Defaults to the currency of the market. |
| `market` | string | No | Trivago country site: us, de, uk, fr, es, it or nl. Sets language, currency and prices. Defaults to us. |
| `limit` | integer | No | Hotels per page, 1 to 50. Defaults to 35. |
| `offset` | integer | No | Number of hotels to skip. Use next_offset of the previous page. Defaults to 0. |
| `sort` | string | No | relevance, price_asc, price_desc or rating. Defaults to relevance. |
| `min_price` | integer | No | Lowest price per night, whole currency units. |
| `max_price` | integer | No | Highest price per night, whole currency units. |
| `stars` | string | No | Comma-separated star classes 1 to 5. Example: 4,5. |
| `min_rating` | string | No | Minimum guest rating: 7.0, 7.5, 8.0 or 8.5. |
| `property_type` | string | No | Comma-separated property type ids from the filters endpoint. Example: 2,8 (hotels and apartments). |
| `amenities` | string | No | Comma-separated amenity ids from the filters endpoint. Hotels must offer all of them. |

## Example response

```json
{
    "data": {
        "sort": "rating",
        "limit": 3,
        "total": 209,
        "hotels": [
            {
                "id": 2531558,
                "url": "https://www.trivago.com/en-US/oar/serviced-apartment-gorki-apartments-berlin?search=100-2531558",
                "name": "Gorki Apartments",
                "type": "Serviced apartment",
                "image": "https://imgcy.trivago.com/c_fill,d_dummy.jpeg,e_sharpen:60,f_auto,h_800,q_60,w_1200/hotelier-images/44/f6/3a6a16da71a6d82650b2296095b559f0da63ac4f48b8123f6e21aa7e2fc6",
                "stars": 5,
                "rating": 9.6,
                "popular": true,
                "distance": "0.8 miles to Alexanderplatz",
                "locality": "Berlin",
                "location": "Berlin, Germany",
                "position": 1,
                "free_wifi": true,
                "sponsored": false,
                "thumbnail": "https://imgcy.trivago.com/c_fill,d_dummy.jpeg,e_sharpen:60,f_auto,h_267,q_40,w_400/hotelier-images/44/f6/3a6a16da71a6d82650b2296095b559f0da63ac4f48b8123f6e21aa7e2fc6",
                "highlights": [
                    "Eclectic apartment living experience",
                    "Personalized in-room wellness",
                    "Rooftop dining terraces",
                    "Family-friendly accommodations",
                    "Central Mitte district location",
                    "Gourmet kitchen facilities",
                    "Premium in-room technology"
                ],
                "coordinates": {
                    "latitude": 52.530602,
                    "longitude": 13.40172
                },
                "image_count": 104,
                "is_superior": false,
                "review_count": 3857,
                "check_in_hour": 15,
                "check_out_hour": 12,
                "forecast_price": {
                    "month": "2027-01",
                    "currency": "USD",
                    "price_per_night": 171
                },
                "provider_count": 18,
                "construction_year": 1910
            },
            {
                "id": 33148366,
                "url": "https://www.trivago.com/en-US/oar/serviced-apartment-mr-s-stil-design-apartments-berlin?search=100-33148366",
                "name": "Mr(s)STiL Design Apartments",
                "type": "Serviced apartment",
                "image": "https://imgcy.trivago.com/c_fill,d_dummy.jpeg,e_sharpen:60,f_auto,h_800,q_60,w_1200/partner-images/6e/b9/05e3452182293453cb948ea51ab23610e39f98dd717c9ee90e8426355fad",
                "stars": 5,
                "rating": 9.6,
                "popular": false,
                "distance": "2.8 miles to City center",
                "locality": "Berlin",
                "location": "Berlin, Germany",
                "position": 2,
                "free_wifi": true,
                "sponsored": false,
                "thumbnail": "https://imgcy.trivago.com/c_fill,d_dummy.jpeg,e_sharpen:60,f_auto,h_267,q_40,w_400/partner-images/6e/b9/05e3452182293453cb948ea51ab23610e39f98dd717c9ee90e8426355fad",
                "highlights": [
                    "Advanced in-room technology",
                    "Thoughtful family amenities",
                    "Prime West Berlin location",
                    "Gourmet in-room breakfast",
                    "Luxury apartment living experience",
                    "High-end kitchen appliances",
                    "Personalized guest services",
                    "Soundproofed garden view units"
                ],
                "coordinates": {
                    "latitude": 52.49752,
                    "longitude": 13.31834
                },
                "image_count": 29,
                "is_superior": false,
                "review_count": 457,
                "forecast_price": {
                    "month": "2026-11",
                    "currency": "USD",
                    "price_per_night": 155
                },
                "provider_count": 4
            }
        ],
        "market": "us",
        "offset": 0,
        "check_in": "2027-03-14",
        "currency": "USD",
        "has_more": true,
        "check_out": "2027-03-16",
        "city_center": {
            "name": "Berlin",
            "coordinates": {
                "latitude": 52.516136,
                "longitude": 13.378001
            }
        },
        "next_offset": 3,
        "price_range": {
            "max": 600,
            "min": 2
        },
        "destination_id": 3848,
        "price_histogram": [
            {
                "to": 21.92,
                "from": 2,
                "count": 0
            },
            {
                "to": 41.85,
                "from": 21.93,
                "count": 0
            },
            {
                "to": 61.79,
                "from": 41.86,
                "count": 0
            }
        ],
        "available_filters": [
            {
                "hotels": 0,
                "concept": "416-6"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "hotel_search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The destination id is unknown or the offset is past the last hotel. This response is not billable. |
| 503 | Service Unavailable | Trivago could not be reached or answered with an unexpected shape. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
