trivago hotel images

GET https://api.api.sh/trivago/v1/hotel/images
1 credit / call travel & events try it in the playground →

Photos of a hotel with their source site and tags. 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

nametypedescription
idrequired string Hotel id from /trivago/v1/search or /trivago/v1/suggest, e.g. 104990, or a trivago hotel link. Example: 104990
limit integer Images per page, 1-100 (default 30).
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).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/trivago/v1/hotel/images?id=104990" \
  -H "x-api-key: $APISH_KEY"

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,"offset": 0,"limit": 30,"total": 103,"next_offset": 30,"count": 30,"images": [{"id": "gg--1979283225","url": "https://imgcy.trivago.com/f_auto,q_auto/partner-images/ad/37/2e37c7f38a124bb2e0197811e35902587ed441354c8ba334077ac9da6a57","source": ["Expedia"],"tags": []},{"id": "gg-165516147","url": "https://imgcy.trivago.com/f_auto,q_auto/partner-images/c4/95/1da87d9896fd134c82c9f5a6a108c388cf77f84dff8f1ea8a8699310cc85","source": ["ICE Portal"],"tags": []},"… 28 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.