# Trivago Destination Suggest API Documentation

<p><strong>Trivago Destination Suggest API Documentation</strong> Find Trivago destinations, hotels and landmarks by a search text. Each result has an id, a type (destination, hotel, landmark or place), a name, a location label and a category such as City or Region. Use the id of a destination as destination_id in the search and filters endpoints, and the id of a hotel as hotel_id in the offers, hotel and reviews endpoints. Place suggestions have no Trivago id and cannot start a search. Completions are text suggestions for the search box.</p>

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

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Destination or hotel name, 2 to 100 characters. Example: 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": {
        "query": "Berlin",
        "market": "us",
        "results": [
            {
                "id": 3848,
                "name": "Berlin",
                "type": "destination",
                "category": "City",
                "location": "Berlin, Germany"
            },
            {
                "id": 343951,
                "name": "Berlin",
                "type": "destination",
                "category": "City",
                "location": "Ohio, USA"
            },
            {
                "id": 97952,
                "name": "Berlin",
                "type": "destination",
                "category": "City",
                "location": "Maryland, USA"
            }
        ],
        "completions": [
            "Berlin"
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "destination_suggest"
    },
    "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 | No resource matched. 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)
