trivago hotel prices by booking site
Every price trivago finds for one hotel and stay, from each booking site: site and logo, price per night and per stay, all-in prices, strike-through prices, room, attributes (breakfast, free cancellation, pay later…), free-cancellation deadline, labels and booking link; cheapest first.
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 |
|---|---|---|
idrequired | string | Hotel id from /trivago/v1/search or /trivago/v1/suggest, e.g. 104990, or a trivago hotel link. Example: 104990 |
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). |
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/hotel/prices?id=104990&days_ahead=30&nights=2" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trivago/v1/hotel/prices",
params={"id": "104990", "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/hotel/prices");
url.searchParams.set("id", "104990");
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)
{"id": 104990,"check_in": "2026-12-04","check_out": "2026-12-06","rooms": [{"adults": 2,"children": []}],"market": "br","currency": "BRL","prices_complete": true,"count": 18,"sites": 3,"lowest_price_per_night": 6707,"price_range": null,"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": "Suíte, 1 quarto (Avenue)","attributes": ["Café da manhã incluído","Cancelamento gratuito"],"free_cancellation_until": null,"labels": ["GLOBAL_OTA","ALTERNATIVE_DEAL","… 1 more"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=o2SpCxFo%2BQPUQDkQhXVXexfjVz1D%2B5R3qQ9%2BsFMcrxXXhvZB99O773MWbFyHqucMdJFwIAKRXaK48iSOXm…"},{"id": "4358605530628193683","site": "Ourtrip","site_id": 3620,"site_logo": "https://imgcy.trivago.com/f_auto,q_auto/partnerlogos-s3/3620","price_per_night": 6952,"price_per_stay": 13905,"all_in_price_per_night": 6952,"all_in_price_per_stay": 13905,"strikethrough_price_per_night": null,"strikethrough_price_per_stay": null,"room": "One Bedroom Avenue Suite","attributes": ["Café da manhã incluído","Cancelamento gratuito","… 1 more"],"free_cancellation_until": null,"labels": ["ALTERNATIVE_DEAL"],"booking_url": "https://www.trivago.com.br/forward/pt-BR?forwarderA=o2SpCxFo%2BQPUQDkQhXVXexfjVz1D%2B5R3qQ9%2BsFMcrxXXhvZB99O773MWbFyHqucMdJFwIAKRXaK48iSOXm…"},"… 16 more"],"cached": false,"credits_used": 1}