Discover/Trivago API
live

Trivago APItrivago.com.br

Search hotels on Trivago by destination, dates, and guest count. Get autocomplete suggestions, live pricing from booking sites, and detailed hotel info.

Endpoint health
verified 5h ago
autocomplete
search_hotels
get_hotel_info
1/3 passing latest checkself-healing
Endpoints
3
Updated
26d ago

What is the Trivago API?

The Trivago API exposes 3 endpoints covering hotel search, destination autocomplete, and hotel detail retrieval from trivago.com.br. The search_hotels endpoint returns up to 45 hotels per query with per-night pricing sourced from multiple booking sites, star ratings, guest ratings, and review counts. Filter results by arrival/departure dates, number of adults, currency, and price range. Use autocomplete to resolve freeform location input into structured destination identifiers.

Try it
Search keyword for location (e.g. 'New York', 'London', 'Paris')
api.parse.bot/scraper/c0845b42-e172-40e0-b541-1ddd9b39e91d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/c0845b42-e172-40e0-b541-1ddd9b39e91d/autocomplete?query=Paris' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace trivago-com-br-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Trivago Hotel Search — find hotels, get details, compare prices."""
from parse_apis.trivago_hotel_search_api import Trivago, NotFound

client = Trivago()

# Search for destination suggestions
for loc in client.locations.search(query="London", limit=3):
    print(loc.name, loc.type, loc.label)

# Search hotels in a destination with a price cap
hotel = client.hotels.search(location="London", currency="USD", max_price=300, limit=1).first()
if hotel:
    print(hotel.name, hotel.star_rating, hotel.price.amount, hotel.price.currency)

    # Drill into full hotel details
    try:
        detail = hotel.details()
        print(detail.name, detail.rating, detail.reviews_count, detail.address)
        print(detail.coordinates.latitude, detail.coordinates.longitude)
    except NotFound as exc:
        print(f"Hotel not found: {exc}")

print("exercised: locations.search / hotels.search / hotel.details")
All endpoints · 3 totalmissing one? ·

Autocomplete/suggest destinations as the user types a location name. Returns up to 5 suggestions including cities, regions, airports, and landmarks. Each suggestion includes a structured nsid (namespace/id pair) usable with search_hotels internally, a human-readable type, and a location label for disambiguation.

Input
ParamTypeDescription
queryrequiredstringSearch keyword for location (e.g. 'New York', 'London', 'Paris')
Response
{
  "type": "object",
  "fields": {
    "items": "array of location suggestion objects with name, nsid, type, and label"
  },
  "sample": {
    "items": [
      {
        "name": "Paris",
        "nsid": {
          "id": 22235,
          "ns": 200
        },
        "type": "City",
        "label": "Île-de-France, France"
      },
      {
        "name": "Paris Orly Airport",
        "nsid": {
          "id": 134104,
          "ns": 500
        },
        "type": "Airport",
        "label": "Paris, France"
      }
    ]
  }
}

About the Trivago API

Endpoints Overview

The API covers three operations. autocomplete accepts a partial location string and returns up to 5 structured suggestions — cities, regions, airports, and landmarks — each with a name, type, label, and nsid field. The nsid is the namespace/id pair that uniquely identifies a destination within Trivago. search_hotels takes a freeform location string, resolves it to an internal destination ID, and returns a list of hotels with pricing. get_hotel_info accepts a hotel id in ns/id format (e.g., 100/49218) and returns detailed metadata for a single property.

search_hotels Parameters and Response

search_hotels requires a location string and accepts optional arrival and departure dates in YYYY-MM-DD format. If dates are omitted, the API defaults to a stay starting 14 days from today and ending 18 days from today. You can specify the number of adults (1–6), a currency code (e.g., USD, BRL, EUR), and min_price / max_price per night in the selected currency. Each hotel object in the response includes id, name, star_rating, guest_rating, reviews_count, distance, price, booking_site, and a representative image URL. The params field in the response echoes back the resolved arrival, departure, currency, and location_nsids used for the query.

get_hotel_info Response Fields

get_hotel_info takes the id returned by search_hotels and returns name, rating, address, coordinates (latitude and longitude as floats), star_rating, photos_count, and reviews_count. This endpoint is useful when you want to display a map pin or validate a property address before showing it to an end user. The hotel ID must be in ns/id format as returned by search_hotels; constructing IDs manually is not reliable.

Reliability & maintenanceVerified

The Trivago API is a managed, monitored endpoint for trivago.com.br — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when trivago.com.br changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official trivago.com.br API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5h ago
Latest check
1/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a hotel price comparison widget that shows per-night rates from multiple booking sites using price and booking_site fields.
  • Power a destination search input with live autocomplete using the autocomplete endpoint and its name, type, and label fields.
  • Filter hotel results by budget using min_price and max_price parameters to surface only affordable options.
  • Plot hotel locations on a map using the coordinates field returned by get_hotel_info.
  • Display star ratings and guest review scores alongside review counts to help users compare properties.
  • Support multi-currency travel apps by passing a currency code to normalize all returned prices.
  • Aggregate hotel metadata including photo counts and addresses for a travel database or content pipeline.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Trivago offer an official developer API?+
Trivago does not publish a public developer API. Their developer program (trivago Developer Hub) is geared toward accommodation partners submitting inventory feeds, not third-party data consumers. This Parse API covers the hotel search and detail data accessible to end users on trivago.com.br.
What does search_hotels return, and how does the price field work?+
Each hotel object includes a price field representing the lowest per-night rate found across booking sites for your specified dates and currency, along with the booking_site name that offers that rate. The guest_rating and reviews_count fields are also included so you can display both price and social proof in one response.
Does the API return room-level details such as room types, amenities, or cancellation policies?+
Not currently. The API covers hotel-level data: star ratings, guest ratings, review counts, coordinates, address, photo counts, and best available price per booking site. Room-type breakdowns, amenity lists, and cancellation terms are not included. You can fork this API on Parse and revise it to add an endpoint targeting that detail data.
How many hotels does a single search_hotels call return?+
The endpoint returns up to 45 hotels per search. There is no pagination parameter — the 45-hotel cap is a hard limit per call. If you need broader coverage for a destination, narrowing the date range or adjusting price filters may surface different result sets.
Can I retrieve hotel photos through this API?+
The search_hotels response includes one representative image URL per hotel, and get_hotel_info returns a photos_count integer indicating how many photos exist for that property. Full photo gallery URLs are not returned. You can fork this API on Parse and revise it to add an endpoint that fetches the complete photo list for a given hotel ID.
Page content last updated . Spec covers 3 endpoints from trivago.com.br.
Related APIs in TravelSee all →
hotels.com API
Search for hotels across millions of properties, view room availability and pricing, and get detailed information about accommodations at specific destinations. Get location suggestions and discover popular travel spots to help plan your next getaway.
tripadvisor.com API
Search for travel destinations and discover hotels with detailed information like ratings, reviews, and amenities. Get comprehensive place details to help plan your perfect trip and compare accommodation options.
travelocity.com API
Search for travel destinations and browse hotel listings on Travelocity. Compare options by location, dates, and availability to find and book accommodation.
hotelscan.ai API
Search and compare hotels with detailed guest reviews, room availability, and pricing information across flexible dates. Find similar properties, get autocomplete suggestions for locations, and access comprehensive hotel details all in one place.
agoda.com API
agoda.com API
orbitz.com API
Search for hotels and destinations on Orbitz, then view detailed property information including pricing and amenities. Get typeahead location suggestions as you type to quickly find your travel destination.
expedia.com API
Search for hotels and flights across Expedia while viewing detailed property information to compare prices and amenities for your travel plans. Get comprehensive travel options all from one integration without manually browsing the website.
hilton.com API
Search for Hilton hotels worldwide by destination with autocomplete suggestions for locations, or convert addresses into exact coordinates. Find your ideal Hilton accommodation and get location details all in one place.