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
Maximum runtime 30 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

adults integer optional

Number of adult guests. At least 0.

amenities array<string> optional
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

Number of child guests. At least 0.

currency string optional

Currency for returned prices.

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

Maximum number of result pages to fetch. From 1 to 20. Default: `1`.

Example 1
page integer optional

One-based result page to fetch. From 1 to 50. Default: `1`.

Example 1
rooms integer optional

Number of rooms. At least 0.

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 example response is shown in the response panel.

Illustrative output fields

Values illustrate one response. Read the guidance above for missing values and limits; fields can vary with the requested operation and the data available.

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.