Trip.com APIunofficial
Public destination hotel lists from Trip.com landing pages, without dates or live availability.
- trip.com
all live 1 operation, checked by the installs that call them.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull trip
api-anything call trip listHotels destination=shanghai-hotels-list-2Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
listHotels(destination) -> name, url, stars, rating, reviewsList the hotels in a public destination landing page, without dates or live availability. |
GET | no | no | Live0 confirmations |
Notes
listHotels(destination) reads the hotel list on a public destination landing page. Use the complete final route segment from a Trip.com hotel-list URL, for example shanghai-hotels-list-2, singapore-hotels-list-73, or london-hotels-list-338. The city name alone is insufficient. No account is required for the checked pages.
The list contains the page's JSON-LD hotel entries, nine in each checked destination. It is not every hotel in the city. Guest ratings use a ten-point scale; stars are hotel classifications. Ratings and review counts can change. This operation does not select travel dates, search availability, quote prices, apply filters or page through results. Hotel URLs identify public detail pages; no detail operation is included.
About these operations
Each operation is a request learned from Trip.com's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.