trivago hotel search with prices
Hotels for a destination as trivago lists them: name, link, type, stars, rating and review count, coordinates, distance label, image, highlights, themes; with dates, the best deal (booking site, price per night and per stay, all-in prices, room, breakfast/free-cancellation attributes and deadline, booking link), the cheapest deal and other deals per hotel, and the number of sites with prices. Sort by relevance, price, distance or rating; filter by budget per night and any filter from /trivago/v1/filters (stars, rating, amenities, property type, chain). Without dates hotels come without prices. complete=true waits until every site has answered (slower). Pass next_offset back as offset; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the trivago API: 10 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
destination | string | Destination id from /trivago/v1/suggest, e.g. 59182 (Rio de Janeiro) or 200-59182; a point of interest as 500-<id>. Give destination or q. Example: 59182 |
q | string | Destination text instead of an id; the first suggestion is used. |
check_in | string | Check-in date, YYYY-MM-DD. Give check_in or days_ahead. |
days_ahead | integer | Check-in this many days from today, instead of check_in. Example: 30 |
check_out | string | Check-out date, YYYY-MM-DD. Default: nights after check-in. |
nights | integer | Nights when check_out is not given, 1-30 (default 1). Example: 2 |
adults | integer | Adults, 1-16 (default 2). |
children | string | Children ages, comma-separated, e.g. 5,9. |
rooms | integer | Rooms, 1-8 (default 1). |
sort | relevance | price | price_desc | distance | rating | price_relevance | distance_relevance | rating_relevance | Sort (default relevance). |
min_price | number | Lowest price per night. |
max_price | number | Highest price per night. |
filters | string | Filters from /trivago/v1/filters, comma-separated, e.g. 411-2 (breakfast included), 101-2 (hotels). |
complete | boolean | true: wait for every booking site. |
limit | integer | Hotels per page, 1-50 (default 25). |
offset | integer | Offset (default 0). |
market | br | us | uk | de | fr | es | it | pt | nl | at | ch | be | ie | mx | ar | cl | co | pe | ca | au | nz | in | jp | kr | sg | ae | za | se | dk | no | fi | pl | tr | gr | cz | hu | trivago market: sets the default language and currency (default br). |
language | string | Language override, e.g. en-US, pt-BR, de. |
currency | string | Currency override (ISO code), e.g. USD, EUR. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/trivago/v1/search?destination=59182&days_ahead=30&nights=2" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trivago/v1/search",
params={"destination": "59182", "days_ahead": "30", "nights": "2"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/trivago/v1/search");
url.searchParams.set("destination", "59182");
url.searchParams.set("days_ahead", "30");
url.searchParams.set("nights", "2");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"destination": {"id": 59182,"ns": 200,"name": null},"applied_filters": {"market": "br","language": "pt-BR","currency": "BRL","check_in": "2026-12-04","check_out": "2026-12-06","rooms": [{"adults": 2,"children": []}],"sort": "relevance","filters": [],"min_price": 0,"max_price": null,"complete": false},"prices_complete": false,"total": 731,"offset": 0,"limit": 25,"next_offset": 25,"count": 25,"hotels": [{"id": 104990,"name": "Copacabana Palace, A Belmond Hotel, Rio de Janeiro","url": "https://www.trivago.com.br/pt-BR/oar/copacabana-palace-a-belmond-hotel-rio-de-janeiro?search=100-104990","type": "Hotel","stars": 5,"rating": 9.6,"reviews": 48831,"latitude": -22.967309951782227,"longitude": -43.178951263427734,"locality": "Rio de Janeiro","location": "Rio de Janeiro, Brasil","distance": "0,1 km da praia","chain_id": null,"image": "https://imgcy.trivago.com/f_auto,q_auto/partner-images/ad/37/2e37c7f38a124bb2e0197811e35902587ed441354c8ba334077ac9da6a57","image_count": 103,"highlights": ["Piscina semiolímpica espetacular","Culinária pan-asiática com estrela Michelin","… 4 more"],"themes": ["bar","piscina","… 4 more"],"free_wifi": true,"built": 1923,"check_in_hour": 16,"check_out_hour": 12,"sponsored": false,"sites_with_prices": 3,"currency": "BRL","best_deal": {"id": "-6576014937193740998","site": "Hoteis.com","site_id": 3340,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/3340_BR","price_per_night": 7290,"price_per_stay": 14579,"all_in_price_per_night": 7290,"all_in_price_per_stay": 14579,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã incluído","Cancelamento gratuito","… 1 more"],"free_cancellation_until": "2026-12-02T14:59:00Z","labels": ["CHAMPION_DEAL","GLOBAL_OTA"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=BBnIsPg%2FqbVKIcu43LzYdighZGZ9ZuHtRVm9BtMVr2epfvhqh433akrty448SVs8jplp16HCYtvUez%2FUhSPc…"},"cheapest_deal": {"id": "5874863742109638214","site": "Decolar","site_id": 1852,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/1852_BR","price_per_night": 6707,"price_per_stay": 13415,"all_in_price_per_night": 6707,"all_in_price_per_stay": 13415,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã incluído","Cancelamento gratuito"],"free_cancellation_until": null,"labels": ["ALTERNATIVE_DEAL","GLOBAL_OTA","… 1 more"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=RIRAkv0IrGaKQHaruxHFWMfNBFxoS%2BfmLtv%2F%2FR5idYsQvyVqNLGBWVrQM7P38tI06FEFX4ns2Su09a6%2F…"},"other_deals": [{"id": "5874863742109638214","site": "Decolar","site_id": 1852,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/1852_BR","price_per_night": 6707,"price_per_stay": 13415,"all_in_price_per_night": 6707,"all_in_price_per_stay": 13415,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã incluído","Cancelamento gratuito"],"free_cancellation_until": null,"labels": ["ALTERNATIVE_DEAL","GLOBAL_OTA","… 1 more"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=RIRAkv0IrGaKQHaruxHFWMfNBFxoS%2BfmLtv%2F%2FR5idYsQvyVqNLGBWVrQM7P38tI06FEFX4ns2Su09a6%2F…"},{"id": "-7593146908593882855","site": "Agoda","site_id": 395,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/395","price_per_night": 6943,"price_per_stay": 13886,"all_in_price_per_night": 6943,"all_in_price_per_stay": 13886,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã incluído","Cancelamento gratuito"],"free_cancellation_until": null,"labels": ["ALTERNATIVE_DEAL"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=K3dqpyd6nnLP%2BDVBBM4JpO1a4PvxBWHBs4Ne4rDR80OnKLAvX%2F85KHdq1OaxQOgSzmOPWj5nkvLMvZNIslnM…"}],"forecast_price": null},{"id": 104722,"name": "Fairmont Rio de Janeiro Copacabana","url": "https://www.trivago.com.br/pt-BR/oar/hotel-fairmont-rio-de-janeiro-copacabana?search=100-104722","type": "Hotel","stars": 5,"rating": 9.2,"reviews": 10788,"latitude": -22.986040115356445,"longitude": -43.189510345458984,"locality": "Rio de Janeiro","location": "Rio de Janeiro, Brasil","distance": "0,1 km da praia","chain_id": 99,"image": "https://imgcy.trivago.com/f_auto,q_auto/partner-images/f2/99/dd227c0dc878a5faa05fbb63ae86c6238f51d99d4b3895ab2e743952f9ca","image_count": 103,"highlights": ["Piscina panorâmica icônica em Copacabana","Gastronomia de frutos do mar no Marine Restô","… 5 more"],"themes": ["piscina"],"free_wifi": true,"built": 1979,"check_in_hour": 15,"check_out_hour": 12,"sponsored": false,"sites_with_prices": 9,"currency": "BRL","best_deal": {"id": "-3552026938248381071","site": "Hoteis.com","site_id": 3340,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/3340_BR","price_per_night": 3732,"price_per_stay": 7464,"all_in_price_per_night": 3732,"all_in_price_per_stay": 7464,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã não incluído.","Cancelamento gratuito","… 1 more"],"free_cancellation_until": "2026-12-03T21:00:00Z","labels": ["CHAMPION_DEAL","GLOBAL_OTA"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=omdPiB3Qtfl4i56slokAfL%2BOTRjRlokofK8KNT4BitjuGur3pyQNkb%2F2BoGowKKC21j%2BE627J%2F3Fp6i%…"},"cheapest_deal": {"id": "4863097275082317962","site": "Quero Passagem","site_id": 3708,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/3708","price_per_night": 2697,"price_per_stay": 5393,"all_in_price_per_night": 2697,"all_in_price_per_stay": 5393,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã não incluído.","Cancelamento gratuito","… 1 more"],"free_cancellation_until": "2026-12-03T03:00:00Z","labels": ["ALTERNATIVE_DEAL","MINIMUM_DEAL"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=FsNGS%2FntxG%2BqUjfG10l%2BalIQC9ozA%2BVNczwbgLN%2F2nXEsrNgRd4Q%2F7JlU2QJ1vbI9Z9SPXSmimJe…"},"other_deals": [{"id": "4863097275082317962","site": "Quero Passagem","site_id": 3708,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/3708","price_per_night": 2697,"price_per_stay": 5393,"all_in_price_per_night": 2697,"all_in_price_per_stay": 5393,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã não incluído.","Cancelamento gratuito","… 1 more"],"free_cancellation_until": "2026-12-03T03:00:00Z","labels": ["ALTERNATIVE_DEAL","MINIMUM_DEAL"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=FsNGS%2FntxG%2BqUjfG10l%2BalIQC9ozA%2BVNczwbgLN%2F2nXEsrNgRd4Q%2F7JlU2QJ1vbI9Z9SPXSmimJe…"},{"id": "2020608106413725755","site": "Fairmont","site_id": 2854,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/2854","price_per_night": 3566,"price_per_stay": 7131,"all_in_price_per_night": 3566,"all_in_price_per_stay": 7131,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": null,"attributes": ["Café da manhã não incluído.","Cancelamento gratuito","… 1 more"],"free_cancellation_until": "2026-11-04T00:00:00Z","labels": ["ALTERNATIVE_DEAL","DIRECT_CONNECT","… 1 more"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=hK6ILDRwfaN0AEtwKOncj9TkvP8c6DHqijlbd7fzUVga68czSbLGA478i1T6RjSXFL%2BP1JovAkXidheEvWa0at…"}],"forecast_price": null},"… 23 more"],"price_range": {"min": 7,"max": 3100,"histogram": [{"frequency": 3,"from": 700,"to": 11009},{"frequency": 64,"from": 11010,"to": 21319},"… 28 more"]},"city_center": null,"cached": false,"credits_used": 1}