↑ ↓ to move ↵ to open

Trip.com Hotel Search API

Send a Trip.com city hotel page and get its hotels with rating, review count and link. Add check-in and check-out dates to get each hotel's nightly price, whole-stay total with taxes and cheapest room name.

Hotel search
{  "has_more": false,  "query": "London",  "total_found": 31,  "listings": [    {      "title": "Holiday Inn Express LONDON - LIMEHOUSE by IHG",      "rating": 8.6,      "reviews": 730,      "id": "2196184",      "page": 1,      "position": 1,      "url": "https://nz.trip.com/hotels/london-hotel-detail-2196184/holiday-inn-express-london-limehouse-by-ihg/"    },    {      "title": "Strand Palace",      "rating": 9.2,      "reviews": 560,      "id": "731904",      "page": 1,      "position": 2,      "url": "https://nz.trip.com/hotels/london-hotel-detail-731904/strand-palace-hotel-london/"    }  ]}
Try it live, free

What you send, what comes back

The input object it accepts, and every field of a record, with the values from the response above.

Input11 fields
FieldTypeRequiredWhat it doesExample
listing_url string yes A Trip.com city hotel page, such as https://nz.trip.com/hotels/london-hotels-list-338/. https://nz.trip.com/hotels/london-hotels-list-3…
adults integer no Optional number of adults.
amenities array<string> no Leave out: the list is not filtered by amenities.
check_in string no Leave out: hotel search returns the hotels on the page without date-based prices.
check_out string no Leave out, like check_in.
children integer no Optional number of children.
currency string no Currency code, such as GBP.
locale string no Language, such as en.
max_pages integer no Leave at 1.
page integer no Page 1 of the hotel page; that is the page available today.
rooms integer no Optional number of rooms.
Fields it returns11 fields
FieldTypeWhat it isExample
listings[].title string The hotel's name. Holiday Inn Express LONDON - LIMEHOUSE by IHG
listings[].rating number The hotel's guest rating out of 10. 8.6
listings[].reviews integer How many reviews the hotel has. 730
listings[].position integer The hotel's position in the results. 1
listings[].id string Trip.com's ID for the hotel; pass it to the hotel endpoint. 2196184
listings[].url string The hotel's page on Trip.com. https://nz.trip.com/hotels/london-hotel-detail-2196184/holiday-…
listings[].page integer The results page the hotel was on. 1
has_more boolean Whether more hotels follow. false
listings array The hotels found. 31 records
query string The place you searched. London
total_found integer How many hotels were found. 31

Call it from your code

Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "tripcom.hotel.search",  "input": {    "listing_url": "https://nz.trip.com/hotels/london-hotels-list-338/"  }}'
Response
{  "has_more": false,  "query": "London",  "total_found": 31,  "listings": [    {      "title": "Holiday Inn Express LONDON - LIMEHOUSE by IHG",      "rating": 8.6,      "reviews": 730,      "id": "2196184",      "page": 1,      "position": 1,      "url": "https://nz.trip.com/hotels/london-hotel-detail-2196184/holiday-inn-express-london-limehouse-by-ihg/"    },    {      "title": "Strand Palace",      "rating": 9.2,      "reviews": 560,      "id": "731904",      "page": 1,      "position": 2,      "url": "https://nz.trip.com/hotels/london-hotel-detail-731904/strand-palace-hotel-london/"    }  ]}

Use it from your AI agent instead

More Trip.com endpoints

The same API key runs every one of them.

The same data from other platforms

Trip.com Hotel Search API FAQ

The short answers. The docs have the long ones.

Still have a question? Talk to the people who build the endpoints.
How much does the Trip.com Hotel Search API cost?

1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.

What do I send?

Send listing_url. The input fields below list every option with its type and limits.

Do I need a Trip.com Travel login?

No. It reads public Trip.com Travel data; nothing runs on your account.

Can my AI agent call it?

Yes, over MCP: the agent finds tripcom.hotel.search, checks its price and runs it with the same credits as the REST API.