Trip.com Travel Hotel Detail API
Get one hotel from its Trip.com link: name, description, address, rating, review count and amenities.
- 1 credit per call
- Failed calls are free
- Updated
- tripcom.hotel.get
{ "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
The input
object of the request, with every field the endpoint accepts.
| 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. |
Fields it returns
What each record in the response holds, with the values from the sample above.
| 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, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
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));
https://data.upscrape.com/mcp
With Upscrape, get the Trip.com Travel hotel detail for https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-national-hotel-london/. Tell me what it costs before you run it, then show the results as a table.
More from the Trip.com Travel API
- Trip.com Travel Hotel Search API1 credit
- Trip.com Travel Attractions Search API1 credit
- Trip.com Travel Attraction Detail API1 credit
- Trip.com Travel Flight Search API1 credit
- Trip.com Travel Public Hotel Reviews API1 credit
- Trip.com Travel Train Search API1 credit
- Trip.com Travel Car Rental Search API1 credit
Trip.com Travel Hotel Detail API FAQ
The short answers. The docs have the long ones.
How much does the Trip.com Travel 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.
Your first Trip.com Travel call is free.
Up to 100 free credits to start, no card needed.