# Trivago Search Filters API Documentation

<p><strong>Trivago Search Filters API Documentation</strong> List the filters Trivago offers for a destination: filter groups (popular filters, meal options, payment, amenities), property type groups and hotel chain ids. Filters that the search endpoint supports carry search_parameter and search_value: use them as the property_type or amenities parameter. Trivago names only some filters, so a filter can come without a label. The response also lists the sort values, minimum rating values and star classes of the search endpoint.</p>

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

## 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. |
| `market` | string | No | Trivago country site: us, de, uk, fr, es, it or nl. Sets language, currency and prices. Defaults to us. |

## Example response

```json
{
    "data": {
        "market": "us",
        "sort_options": [
            "relevance",
            "price_asc",
            "rating",
            "price_desc"
        ],
        "star_options": [
            1,
            2,
            3,
            4,
            5
        ],
        "filter_groups": [
            {
                "name": "Popular filters",
                "filters": [
                    {
                        "key": "411-2",
                        "label": "Breakfast included"
                    },
                    {
                        "key": "101-2",
                        "label": "Hotel",
                        "search_value": 2,
                        "search_parameter": "property_type"
                    },
                    {
                        "key": "300-25",
                        "search_value": 25,
                        "search_parameter": "amenities"
                    }
                ]
            },
            {
                "name": "Deals",
                "filters": [
                    {
                        "key": "416-6",
                        "label": "Only show stays with highlighted deals"
                    }
                ]
            }
        ],
        "destination_id": 3848,
        "hotel_chain_ids": [
            1835,
            1100,
            1831
        ],
        "min_rating_options": [
            "7.0",
            "7.5",
            "8.0",
            "8.5"
        ],
        "property_type_groups": [
            {
                "name": "Hotels",
                "types": [
                    {
                        "key": "101-2",
                        "label": "Hotel",
                        "search_value": 2,
                        "search_parameter": "property_type"
                    },
                    {
                        "key": "101-5",
                        "search_value": 5,
                        "search_parameter": "property_type"
                    },
                    {
                        "key": "101-6",
                        "label": "Serviced apartment",
                        "search_value": 6,
                        "search_parameter": "property_type"
                    }
                ],
                "description": "Hotels, resorts and more"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search_filters"
    },
    "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. 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)
