tripcom_hotels_search
Search Trip.com hotels for a city using the city slug and ID to obtain normalized hotel summaries with ratings, prices, and images.
Instructions
Search Trip.com hotels by city. Returns Trip.com's own top-hotels page for a city: normalized hotel summaries (name, location, star rating, guest rating, review count, image, display price) for the hotels Trip.com features on that city's hotel-list page. Trip.com does not expose a credential-free free-text city search, so callers supply the exact city_slug and city_id pair from a known Trip.com hotel-list URL of the form https://www.trip.com/hotels/{city_slug}-hotels-list-{city_id}/. Credential-free public data sourced from Trip.com's own server-rendered hotel-list page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city_id | Yes | Trip.com numeric city id, the trailing number of a /hotels/{city_slug}-hotels-list-{city_id}/ URL | |
| city_slug | Yes | Trip.com city slug, the text segment of a /hotels/{city_slug}-hotels-list-{city_id}/ URL |