trivago.com.br APItrivago.com.br ↗
Search hotels on Trivago by destination, dates, and price range. Get autocomplete suggestions, hotel details, star ratings, and multi-site pricing via 3 endpoints.
curl -X GET 'https://api.parse.bot/scraper/c0845b42-e172-40e0-b541-1ddd9b39e91d/autocomplete?query=London' \ -H 'X-API-Key: $PARSE_API_KEY'
Autocomplete/suggest destinations as the user types a location name. Returns up to 5 suggestions including cities, regions, airports, and landmarks.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword for location (e.g. 'New York', 'London', 'Paris') |
{
"type": "object",
"fields": {
"data": "array of suggestion objects each containing name, nsid, type, and label",
"status": "string indicating success"
},
"sample": {
"data": [
{
"name": "London",
"nsid": {
"id": 17399,
"ns": 200
},
"type": "City",
"label": "England, United Kingdom"
},
{
"name": "London",
"nsid": {
"id": 37630,
"ns": 200
},
"type": "City",
"label": "Ontario, Canada"
}
],
"status": "success"
}
}About the trivago.com.br API
The Trivago API exposes 3 endpoints to search hotels, resolve location names, and retrieve individual hotel details from Trivago.com.br. The search_hotels endpoint returns up to 35 hotels per query with per-night pricing in your chosen currency, while get_hotel_info surfaces star ratings, guest scores, review counts, coordinates, and address for a specific property identified by its Trivago hotel ID.
Endpoints and What They Return
The autocomplete endpoint accepts a text query parameter and returns up to 5 location suggestions — cities, regions, airports, or landmarks — each with a name, nsid, type, and label. The nsid value identifies the destination and feeds directly into downstream hotel searches.
The search_hotels endpoint takes a required location string plus optional parameters: arrival and departure dates (YYYY-MM-DD), adults count, currency code (e.g. USD, BRL, EUR), and min_price/max_price filters per night. When dates are omitted, the endpoint defaults to a window starting 14 days from today and checking out 18 days from today. Results arrive as a data object containing a hotels array, a total_count integer, and a params object echoing the resolved search parameters. Up to 35 hotels are returned per call.
Hotel Detail Fields
The get_hotel_info endpoint accepts a hotel ID in ns/id format (e.g. 100/49218), which you obtain from search_hotels results. It returns a data object with name, star_rating, rating (guest score), reviews_count, address, coordinates (latitude/longitude), and photos_count. This is useful when you need structured property metadata beyond what the search listing provides.
Coverage Notes
All three endpoints reflect Trivago's inventory for the Brazilian domain (trivago.com.br), though the currency parameter lets you request pricing in currencies other than BRL. Price data in search_hotels aggregates rates from multiple booking sites as surfaced on Trivago's results pages.
- Build a hotel price comparison tool using
search_hotelswithmin_price/max_pricefilters across multiple currencies. - Power a destination autocomplete input field using the
autocompleteendpoint as users type location names. - Display hotel detail cards in a travel app using
star_rating,rating,reviews_count, andaddressfromget_hotel_info. - Track nightly rate changes over time by polling
search_hotelsfor the same destination and date range daily. - Filter budget accommodation options by combining
max_pricewithadultscount insearch_hotels. - Geocode hotel properties by extracting
coordinatesfromget_hotel_infoto plot them on a map. - Pre-populate search UIs with resolved destination IDs by chaining
autocompleteoutput intosearch_hotels.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 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.
Does Trivago have an official public developer API?+
What does `search_hotels` return when no dates are provided?+
arrival and departure are omitted, the endpoint defaults to a check-in 14 days from today and check-out 18 days from today (a 4-night window). The params object in the response echoes the actual dates used so you can confirm what was resolved.How many hotels does `search_hotels` return, and can I paginate through more results?+
Does the API return individual booking-site prices or a single aggregated price per hotel?+
search_hotels response surfaces pricing as shown on Trivago's results — typically the lowest available rate from across the booking sites Trivago aggregates. Breakdown by individual booking partner is not exposed in the current response shape. You can fork the API on Parse and revise it to expose per-partner pricing if that detail is available in the source data.Are hotel reviews or review text available through this API?+
get_hotel_info endpoint provides a numeric rating score and a reviews_count integer, but not review content. You can fork the API on Parse and revise it to add a reviews endpoint if you need full review text.