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.
{ "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/" } ]}
| # | Title | Rating | Reviews | Page | Position | Rating text | Id | Url |
|---|---|---|---|---|---|---|---|---|
| 1 | Holiday Inn Express LONDON - LIMEHOUSE by IHG | 8.6 | 730 | 1 | 1 | 2196184 | https://nz.trip.com/hotels/london-hotel-detail-2196184/holiday-… | |
| 2 | Strand Palace | 9.2 | 560 | 1 | 2 | 731904 | https://nz.trip.com/hotels/london-hotel-detail-731904/strand-pa… | |
| 3 | Riu Plaza London The Westminster | 9 | 338 | 1 | 3 | 1572524 | https://nz.trip.com/hotels/london-hotel-detail-1572524/riu-plaz… | |
| 4 | Royal National Hotel | 8.2 | 3190 | 1 | 4 | 2985758 | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-na… | |
| 5 | Holiday Inn LONDON - KENSINGTON HIGH ST. by IHG | 8.3 | 514 | 1 | 5 | 730803 | https://nz.trip.com/hotels/london-hotel-detail-730803/holiday-i… | |
| 6 | Travelodge London Central City Road | 8.1 | 59 | 1 | 6 | excellent | 18143221 | https://nz.trip.com/hotels/london-hotel-detail-18143221/travelo… |
| 7 | The Imperial | 9 | 63 | 1 | 7 | excellent | 3061459 | https://nz.trip.com/hotels/london-hotel-detail-3061459/the-impe… |
| 8 | Travelodge London Wembley | 8.7 | 55 | 1 | 8 | great | 17500546 | https://nz.trip.com/hotels/london-hotel-detail-17500546/travelo… |
| 9 | Riu Plaza London Victoria | 9.1 | 172 | 1 | 9 | great | 101185681 | https://nz.trip.com/hotels/london-hotel-detail-101185681/hotel-… |
| 10 | Britannia International Hotel Canary Wharf | 1 | 10 | 730568 | https://nz.trip.com/hotels/london-hotel-detail-730568/britannia… | |||
| 11 | Clink261 Hostel | 1 | 11 | 2198266 | https://nz.trip.com/hotels/london-hotel-detail-2198266/clink261… | |||
| 12 | Dreamtel London Kensington | 1 | 12 | 731925 | https://nz.trip.com/hotels/london-hotel-detail-731925/dreamtel-… | |||
| 13 | Millennium Hotel London Knightsbridge | 1 | 13 | great | 730011 | https://nz.trip.com/hotels/london-hotel-detail-730011/millenniu… | ||
| 14 | Royal Eagle Hotel | 1 | 14 | great | 731420 | https://nz.trip.com/hotels/london-hotel-detail-731420/london-ro… | ||
| 15 | Stayzo Crofton Park - Central London Studio | 1 | 15 | good | 70374002 | https://nz.trip.com/hotels/london-hotel-detail-70374002/crofton… |
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| 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. |
| Field | Type | What it is | Example |
|---|---|---|---|
| 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/" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tripcom.hotel.search", "input": { "listing_url": "https://nz.trip.com/hotels/london-hotels-list-338/" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "tripcom.hotel.search", "input": { "listing_url": "https://nz.trip.com/hotels/london-hotels-list-338/" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "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/" } ]}
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.
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.