Skip to content
Scrappa Get API key
Trivago API 1 credit/request

Trivago Hotel Offers API Documentation

GET https://scrappa.co/api/trivago/deals

Trivago Hotel Offers API Documentation Get the offers of every booking site for one hotel and stay. Each offer has the provider name and logo, room type, price per night and per stay, the same prices with taxes and fees, currency, free cancellation (with the deadline when known), pay later, meal plan and a deal link. Offers are sorted by price per night. Trivago lists offers only for stays it holds a current price for, and often only for stays of one night. If there is none, the response is a successful empty list with a note, and it is not billed. The deal link opens the booking site through Trivago.

Trivago Hotel Offers API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/trivago/deals
Auth header
x-api-key
Cost
1 credit/request
hotel_id = 1234567890 check_in = example check_out = example
Response preview
200 OK
{
    "data": {
        "market": "us",
        "nights": 1,
        "offers": [
            {
                "id": "1543566299014695026",
                "currency": "USD",
                "deal_url": "https://www.trivago.com/forward/en-US?forwarderA=EXAMPLE",
                "provider": {
                    "id": 395,
                    "logo": "https://imgcy.trivago.com/partnerlogos-s3/395",
                    "name": "Agoda"
                },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

3 required parameters needed before sending a request.

5 optional filters available.

hotel_id integer Required

Trivago hotel id from the suggest or search endpoint. Example: 5670.

Example value 1234567890
check_in string Required

Check-in date, YYYY-MM-DD, today or later. Example: 2027-03-14.

Example value example
check_out string Required

Check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Example: 2027-03-15.

Example value example
adults integer Optional

Number of adults, 1 to 30. Defaults to 2.

Example value 10
rooms integer Optional

Number of rooms, 1 to 9, not more than adults. Defaults to 1.

Example value 10
children_ages string Optional

Comma-separated ages of the children, each 0 to 17, up to 6. Example: 5,7.

Example value example
currency string Optional

Three-letter uppercase currency code. Defaults to the currency of the market.

Example value USD
market string Optional

Trivago country site: us, de, uk, fr, es, it or nl. Sets language, currency and prices. Defaults to us.

Example value US

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "market": "us",
        "nights": 1,
        "offers": [
            {
                "id": "1543566299014695026",
                "currency": "USD",
                "deal_url": "https://www.trivago.com/forward/en-US?forwarderA=EXAMPLE",
                "provider": {
                    "id": 395,
                    "logo": "https://imgcy.trivago.com/partnerlogos-s3/395",
                    "name": "Agoda"
                },
                "meal_plan": "room_only",
                "pay_later": false,
                "room_type": "Double Room",
                "room_category": "standard",
                "price_per_stay": 111,
                "price_per_night": 111,
                "free_cancellation": false,
                "breakfast_included": false,
                "price_per_stay_with_fees": 134,
                "price_per_night_with_fees": 134
            },
            {
                "id": "-2711303296388992688",
                "currency": "USD",
                "deal_url": "https://www.trivago.com/forward/en-US?forwarderA=EXAMPLE",
                "provider": {
                    "id": 626,
                    "logo": "https://imgcy.trivago.com/partnerlogos-s3/626",
                    "name": "Booking.com"
                },
                "meal_plan": "room_only",
                "pay_later": false,
                "price_per_stay": 120,
                "price_per_night": 120,
                "free_cancellation": false,
                "breakfast_included": false,
                "price_per_stay_with_fees": 143,
                "price_per_night_with_fees": 143
            }
        ],
        "check_in": "2027-03-14",
        "currency": "USD",
        "hotel_id": 5670,
        "check_out": "2027-03-15",
        "offer_count": 20,
        "provider_count": 13,
        "lowest_price_per_night": 111
    },
    "meta": {
        "billable": true,
        "endpoint_family": "hotel_offers"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "hotel_id": [
            "The hotel id field is required."
        ]
    },
    "message": "The request validation failed"
}
404

Resource Not Found

The hotel id is unknown. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "hotel_offers"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested Trivago resource was not found."
    },
    "success": false
}
503

Service Unavailable

Trivago could not be reached or answered with an unexpected shape. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "hotel_offers"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Trivago API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.