Trip.com Hotel Detail API
Get one hotel from its Trip.com link: name, description, address, rating, review count and amenities.
{ "title": "Royal National Hotel", "rating": 8.2, "reviews": 3139, "location": "London", "address": "38-51 Bedford Way, Camden, London, Greater London WC1H 0DG, United Kingdom", "collected_at": "2026-09-20T20:54:11Z", "hotel_id": "2985758", "image_url": "https://ak-d.tripcdn.com/images/1mc4512000dl5w9gpC200_R_960_660_R5_D.jpg", "rating_text": "Very good", "source_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/", "url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/", "amenities": [ "Public parking", "Luggage Storage" ], "facilities": [ "Public parking", "Luggage Storage" ]}
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 |
|---|---|---|---|---|
| hotel_url | string | yes | The hotel's Trip.com link, such as one from hotel search. | https://nz.trip.com/hotels/london-hotel-detail-… |
| adults | integer | no | Number of adults. | |
| amenities | array<string> | no | Amenities you are looking for. | |
| check_in | string | no | Check-in date, YYYY-MM-DD. | |
| check_out | string | no | Check-out date, YYYY-MM-DD. | |
| children | integer | no | Number of children. | |
| currency | string | no | Currency code, such as GBP. | |
| locale | string | no | Language, such as en. | |
| rooms | integer | no | Number of rooms. |
| Field | Type | What it is | Example |
|---|---|---|---|
| title | string | The hotel's name. | Royal National Hotel |
| rating | number | The hotel's guest rating out of 10. | 8.2 |
| reviews | integer | How many reviews the hotel has. | 3139 |
| location | string | The city the hotel is in. | London |
| address | string | The hotel's address. | 38-51 Bedford Way, Camden, London, Greater London WC1H 0DG, Uni… |
| amenities | array | Amenities the hotel lists. | Public parking, Luggage Storage, Bar |
| collected_at | string | When this result was collected. | 2026-09-20T20:54:11Z |
| facilities | array | Facilities the hotel lists. | Public parking, Luggage Storage, Bar |
| hotel_id | string | Trip.com's ID for the hotel. | 2985758 |
| image_url | string | The hotel's main photo. | https://ak-d.tripcdn.com/images/1mc4512000dl5w9gpC200_R_960_660… |
| rating_text | string | The rating in words, such as Very good. | Very good |
| source_url | string | The Trip.com page this was read from. | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-na… |
| url | string | The page on Trip.com. | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-na… |
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.get", "input": { "hotel_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tripcom.hotel.get", "input": { "hotel_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/" }}''')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.get", "input": { "hotel_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "title": "Royal National Hotel", "rating": 8.2, "reviews": 3139, "location": "London", "address": "38-51 Bedford Way, Camden, London, Greater London WC1H 0DG, United Kingdom", "collected_at": "2026-09-20T20:54:11Z", "hotel_id": "2985758", "image_url": "https://ak-d.tripcdn.com/images/1mc4512000dl5w9gpC200_R_960_660_R5_D.jpg", "rating_text": "Very good", "source_url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/", "url": "https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/", "amenities": [ "Public parking", "Luggage Storage" ], "facilities": [ "Public parking", "Luggage Storage" ]}
More Trip.com endpoints
The same API key runs every one of them.
The same data from other platforms
Trip.com Hotel Detail API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Hotel Detail 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 hotel_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.get, checks its price and runs it with the same credits as the REST API.