Skip to documentation
Browse documentation

Trip.com Hotel Search

Search Trip.com hotel listing pages and extract normalized hotel cards.

Capability ID tripcom.hotel.search
Cost 1 credit per request
Maximum runtime 30 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

adults integer optional

Adults supplied for this request.

amenities array<string> optional

Amenities supplied for this request.

check_in string optional

Check-in date in YYYY-MM-DD

check_out string optional

Check-out date in YYYY-MM-DD

children integer optional

Children supplied for this request.

currency string optional

Currency supplied for this request.

listing_url string required

Trip.com hotel listing URL

Example https://nz.trip.com/hotels/london-hotels-list-338/
locale string optional

Locale to use for the request.

max_pages integer optional

Max pages supplied for this request.

Example 1
page integer optional

One-based result page to fetch.

Example 1
rooms integer optional

Rooms supplied for this request.

Response

Successful output is returned in results[0].data. Raw platform output is intentionally open-ended and may evolve with the upstream source.

Illustrative sample The full redacted fixture is shown in the response panel.

Illustrative output fields

Derived from the sample above for orientation only. These observed fields are not a fixed response schema.

PathObserved typeExample
end_page integer 1
has_more boolean false
input_url string https://nz.trip.com/hotels/london-hotels-list-338/
listings array 3 items
listings array 3 items
pages_fetched integer 1
query string London
source_url string https://nz.trip.com/hotels/london-hotels-list-338/
start_page integer 1
total_found integer 29

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.