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

No additional description is provided for this parameter.

amenities array<string> optional

No additional description is provided for this parameter.

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

No additional description is provided for this parameter.

currency string optional

No additional description is provided for this parameter.

listing_url string required

Trip.com hotel listing URL

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

No additional description is provided for this parameter.

max_pages integer optional

No additional description is provided for this parameter.

Example 1
page integer optional

No additional description is provided for this parameter.

Example 1
rooms integer optional

No additional description is provided for this parameter.

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.