Trip.com Travel Hotel Search API
Send a Trip.com city hotel page, such as London hotels, and get every hotel on it with its rating, review count, position and link.
Sendlisting_url
Returnstitleratingreviewspositionidurl
Get Trip.com travel data as clean JSON: the hotels on a city's hotel page with ratings and review counts, hotel details, the attractions in a destination and one-way flight offers. Send a page link or a route and get structured data back.
| # | Hotel | Rating | Reviews | Position | Hotel ID | Link | Page |
|---|---|---|---|---|---|---|---|
| 1 | Holiday Inn Express LONDON - LIMEHOUSE by IHG | 8.6 | 730 | 1 | 2196184 | https://nz.trip.com/hotels/london-hotel-detail-2196184/holiday-… | 1 |
| 2 | Strand Palace | 9.2 | 560 | 2 | 731904 | https://nz.trip.com/hotels/london-hotel-detail-731904/strand-pa… | 1 |
| 3 | Riu Plaza London The Westminster | 9 | 338 | 3 | 1572524 | https://nz.trip.com/hotels/london-hotel-detail-1572524/riu-plaz… | 1 |
| 4 | Royal National Hotel | 8.2 | 3190 | 4 | 2985758 | https://nz.trip.com/hotels/london-hotel-detail-2985758/royal-na… | 1 |
| 5 | Holiday Inn LONDON - KENSINGTON HIGH ST. by IHG | 8.3 | 514 | 5 | 730803 | https://nz.trip.com/hotels/london-hotel-detail-730803/holiday-i… | 1 |
| 6 | Travelodge London Central City Road | 8.1 | 59 | 6 | 18143221 | https://nz.trip.com/hotels/london-hotel-detail-18143221/travelo… | 1 |
| 7 | The Imperial | 9 | 63 | 7 | 3061459 | https://nz.trip.com/hotels/london-hotel-detail-3061459/the-impe… | 1 |
| 8 | Travelodge London Wembley | 8.7 | 55 | 8 | 17500546 | https://nz.trip.com/hotels/london-hotel-detail-17500546/travelo… | 1 |
| 9 | Riu Plaza London Victoria | 9.1 | 172 | 9 | 101185681 | https://nz.trip.com/hotels/london-hotel-detail-101185681/hotel-… | 1 |
| 10 | Britannia International Hotel Canary Wharf | 10 | 730568 | https://nz.trip.com/hotels/london-hotel-detail-730568/britannia… | 1 |
| # | Attraction | Attraction ID | Link |
|---|---|---|---|
| 1 | London Eye | 81747 | https://www.trip.com/travel-guide/attraction/london/london-eye-… |
| 2 | The British Museum | 78696 | https://www.trip.com/travel-guide/attraction/london/the-british… |
| 3 | Windsor Castle | 78709 | https://www.trip.com/travel-guide/attraction/windsor/windsor-ca… |
| 4 | Phantom of The Opera | 136007702 | https://www.trip.com/travel-guide/attraction/london/phantom-of-… |
| 5 | Buckingham Palace | 78694 | https://www.trip.com/travel-guide/attraction/london/buckingham-… |
| 6 | Westminster Abbey | 78693 | https://www.trip.com/travel-guide/attraction/london/westminster… |
| 7 | Tower of London | 78698 | https://www.trip.com/travel-guide/attraction/london/tower-of-lo… |
| 8 | St. Paul's Cathedral | 78697 | https://www.trip.com/travel-guide/attraction/london/st-paul-s-c… |
| 9 | Warner Bros. Studio Tour London | 10523615 | https://www.trip.com/travel-guide/attraction/watford/warner-bro… |
| 10 | Tower Bridge | 78699 | https://www.trip.com/travel-guide/attraction/london/tower-bridg… |
What each one takes and what it returns. Open one for a real response, every input and every field.
Send a Trip.com city hotel page, such as London hotels, and get every hotel on it with its rating, review count, position and link.
Sendlisting_url
Returnstitleratingreviewspositionidurl
Get one hotel from its Trip.com link: name, description, address, rating, review count and amenities.
Sendhotel_url
Returnstitleratingreviewslocationaddressamenities
List the attractions Trip.com shows for a destination, such as the London Eye in London, with their IDs and links.
Sendquery
Returnstitleattraction_idtagsurl
Get one attraction from its Trip.com link: title, category, description and location.
Sendattraction_url
Returnstitleratingreviewslocationattraction_idcategory
Search one-way Trip.com flights for a route and date, with passengers and cabin class, in the currency you choose.
Sendoriginanddestinationanddeparture_date
Returnsairline_codesarrival_timecabincurrencydeparture_timedestination
Read the public reviews on a Trip.com hotel page, page by page.
Sendhotel_url
Returnsratingoriginal_languageoriginal_textrating_scalereview_idsource_date
Find trains between two cities on Trip.com with stations, times, duration, operator and train number.
Sendoriginanddestination
Returnsarrival_station_iddeparture_station_idend_pagequeryquery_datereturned
See which cars and rental companies Trip.com lists at a pickup place, such as London Heathrow, with their from prices.
Sendquery
Returnscarscurrencyend_pagepickup_namesource_urlstart_page
See which hotels a city's Trip.com page shows, in what order, and how guests rate them.
Hotel searchHotel detailPublic hotel reviewsBuild guides and listings from the attractions Trip.com shows for each city.
Attractions searchAttraction detailCheck one-way flight offers and trains on the routes you watch.
Flight searchTrain searchSee which cars and rental companies serve an airport or city, and what they start from.
Car rental searchOne request shape for every Trip.com Travel endpoint: the endpoint ID and its input. 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/" } ]}
https://data.upscrape.com/mcp
Use Upscrape to get the hotels on Trip.com's London hotel page (https://nz.trip.com/hotels/london-hotels-list-338/) and give me a table of hotel, rating and review count, best rated first.
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.
With Upscrape, list the attractions Trip.com shows for London, with a link to each one.
The short answers. The docs have the long ones.
Trip.com offers partner programmes for affiliates and suppliers. Upscrape reads public Trip.com pages instead, so you can get hotel lists, attractions and flight offers with one API key.
Hotel search returns the hotels on a city page with ratings and review counts, without date-based room prices. Flight search does return fares for the date you choose.
Send links from Trip.com's regional sites, such as nz.trip.com or www.trip.com, as Trip.com shows them.
No. You send a page link or a route and get JSON back. Nothing runs on your account.
Hotel search, hotel detail, attractions search, attraction detail, flight search, public hotel reviews, train search and car rental search. Each is its own endpoint with a published input schema, and the response is JSON.
Every Trip.com Travel endpoint costs 1 credit per successful call. You buy credits once, with no subscription, and paid credits never expire. New accounts get free credits to try it.
Yes. Connect any MCP client to the Upscrape MCP server with OAuth or an API key. The agent finds the Trip.com Travel endpoint, checks its price and runs it with the same credits as the REST API.
Upscrape reads public pages only and needs no login. How you use the data is yours to decide under the laws that apply to you; we sign a data processing agreement for your legal review.
Up to 100 free credits to start, no card needed.