trivago hotel room types
Room types of a hotel: name, maximum guests and children, size in m², bed configuration, views, air conditioning, Wi-Fi, facilities by group (bathroom, media, food and drink…) and photos.
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 |
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). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/trivago/v1/hotel/rooms?id=104990" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trivago/v1/hotel/rooms",
params={"id": "104990"},
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/rooms");
url.searchParams.set("id", "104990");
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,"count": 15,"rooms": [{"index": 6,"name": "Suite, 1 Bedroom, Ocean View","max_guests": 3,"max_children": 2,"size_m2": 44,"beds": ["1 King Bed"],"views": [],"air_conditioning": false,"free_wifi": false,"facilities": {"bathroom": ["Bathrobes","Free toiletries","… 4 more"],"bedroom": ["Rollaway/extra beds (surcharge)","Free cribs/infant beds","… 6 more"],"entertainment": ["Cable channels","0-inch LCD TV"],"food_and_drink": ["Espresso maker","Free bottled water","… 1 more"],"more": ["Bed count minimum 1","Extra bed count 1","… 13 more"],"smoking": ["Non-Smoking"]},"images": ["https://imgcy.trivago.com/f_auto,q_auto/partner-images/ed/1a/f3c006e6d90b07ddb2434afc713d0fb6f59d231ffc63cb7c21eca635be19","https://imgcy.trivago.com/f_auto,q_auto/partner-images/a9/06/08df2146d1c306c2a7b755995c09e90a6b9edd39346a90d917f1e7ca5845","… 7 more"]},{"index": 10,"name": "Suite, 1 Bedroom, Pool View","max_guests": 3,"max_children": 2,"size_m2": 63,"beds": ["1 King Bed"],"views": [],"air_conditioning": false,"free_wifi": false,"facilities": {"bathroom": ["Bathrobes","Free toiletries","… 4 more"],"bedroom": ["Rollaway/extra beds (surcharge)","Free cribs/infant beds","… 6 more"],"entertainment": ["Cable channels","0-inch LCD TV"],"food_and_drink": ["Espresso maker","Free bottled water","… 1 more"],"more": ["Extra bed count 1","Free wired internet","… 14 more"],"smoking": ["Non-Smoking"]},"images": ["https://imgcy.trivago.com/f_auto,q_auto/partner-images/a0/b0/8a31085481b50ff0bfcf9b0e2ce1431800212d583bbea952c643aa8cfa06","https://imgcy.trivago.com/f_auto,q_auto/partner-images/8a/fe/bb66d2494a01d5bbd4b3d4c8b79a86c3c68a43769fb2dba5817dad9aa758","… 7 more"]},"… 13 more"],"cached": false,"credits_used": 1}