{"name":"trip.com Hotel Details API","description":"The record of a Hotel Details page on trip.com, read from the page's URL.","api_id":"generated_6d5a9e83a7bfb22626b35b68","slug":"trip-com-hotel-details-api","source":{"name":"Trip","domain":"trip.com","url":"https://www.trip.com/"},"category":"travel","countries":[],"languages":[],"record_types":[],"tags":[],"limitations":[],"updated":"2026-11-30","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"1.0","versions":[{"major":1,"latest_minor":"1.0","status":"current","sunset_at":null}],"changelog":[{"version":"1.0","date":"2026-11-29T06:47:44.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_6d5a9e83a7bfb22626b35b68_search","name":"Get trip.com Hotel Details by URL","description":"Return the one record of a page of this kind, given the page's URL on the site.","definition_version":"434aa06328b1090f76d9a86b1c7c0d29c9b8f295e894fdcf7a997d247c17176b","method":"POST","path":"/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","minLength":1,"description":"A page of the same kind as the build page, on trip.com: its path matches /hotels/{slug}/{slug}. It need not be the build page.","examples":["https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/"]},"urls":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","format":"uri","minLength":1},"description":"Pages of that kind (1 to 50 in all, with url): one record each, in this order, once per page; a call may give urls and no url. A page that fails (off the pattern, unreadable, no product data) is told by its code in the run's metadata (item_pages) and does not fail the run while another page is read.","examples":[["https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/"]]}},"required":["url"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"rooms":{"type":"string"},"check_in_check_out":{"type":"string"},"nearby_attractions":{"type":"string"},"hotel_features":{"type":"string"},"qichan_scenic_suite_smart_control_zero_pressure_mattress":{"type":"string"},"property_policies":{"type":"string"},"property_description":{"type":"string"},"you_might_be_wondering":{"type":"string"},"about_this_property":{"type":"string"},"recommendations":{"type":"string"},"category":{"type":"string"},"category_path":{"type":"array","items":{"type":["null","string"]}},"image":{"type":"string"},"locality":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"},"rating":{"type":"string"},"review_count":{"type":"string"},"price_range":{"type":"string"},"media":{"type":"array","items":{"properties":{"type":{"type":["null","string"]},"url":{"type":["null","string"]}},"type":["null","object"]}},"name":{"type":"string"}},"additionalProperties":true,"required":["title","url"]},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-11-29T06:47:44.833Z","live_verified":false,"request":{"input":{"url":"https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/"}},"records_shown":1,"records_saved":1,"records":[{"about_this_property":"Nearest Airport Beijing Capital Intl. Airport Distance to Airport 25.69KM Nearest Train Station Beijingbei Railway Station Distance to Train Station 5.71KM Nearest Subway Station Shichahai Distance to Subway Station 0.2KM Average Price From USD124 Hotel Star Rating 3","category":"Hotels in Beijing","category_path":["Hotels","Hotels in China","Hotels in Beijing"],"check_in_check_out":"From 14:00 until 12:00","country":"China","hotel_features":"Pets policy: No pets allowed. Dining & Drinks: Snack bar, Lobby bar","image":"https://ak-d.tripcdn.com/images/1mc0g12000pnflogl1408_R_960_660_R5_D.jpg","locality":"No. 21, Yandai Xie Street, Xicheng District, Beijing, China","name":"Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)","nearby_attractions":"Drum Tower: 0.21 km away Shichahai Scenic Area: 0.03 km away Beijing's Bell and Drum Towers: 0.21 km away","price_range":"From $70","property_description":"Contact information Phone:+86-10-62883663-1000 About this property Local hotel name: 鑫园1875酒店(北京鼓楼南锣鼓巷店) Opened: 2025 Number of Rooms: 18  Xinyuan 1875 Hotel, located in the core area of Yandai Diagonal Street, a national 5A-level \"Shichahai\" scenic area, can be traced back to the \"Xinyuan Bathhouse\" in the late Qing Dynasty. It was one of the early baths in Beijing operated by Li Lianying's son, Li Fuqing. With the changes and ups and downs of Yandai Diagonal Street, it is a mark of history and a landmark of contemporary culture. The hotel is adjacent to Shichahai, the central axis, and the Bell and Drum Tower, enjoying the ancient city's landmark landscape and natural resources. With the design concept of \"Vientiane in one street,\" it cleverly combines century-old heritage with modern comfort experience to create a place where ancient and modern encounters. The hotel has a total of 18 scenic rooms, where you can enjoy the landmark scenery of the Drum Tower and immerse yourself in the fireworks of the ancient streets of Beijing. The rooms are equipped with intelligent facilities, zero-pressure mattresses, comfortable bedding, etc., allowing you to find the most comfortable harbor at the intersection of history and modernity. The hotel's first floor has a rest area, which is spacious, bright, flexible, and versatile, creating a unique cultural atmosphere for personalized small-scale events, salons, etc. At the same time, it is equipped with a self-service laundry room, open 24 hours a day, making it easy to solve the laundry troubles of traveling, allowing you to have a calm and worry-free journey every moment. At Xinyuan 1875 Hotel, we use historical memories, street fireworks, and cultural characteristics as carriers to create a comfortable and pleasant stay experience for you, allowing you to enjoy a leisurely journey.","property_policies":"Check-in and Check-out Times Check-in: After 14:00 Check-out: Before 12:00 Front desk hours: 24/7 The property will provide check-in details after booking Guests Accepted Guests from all countries/regions are welcome at this property Child policies Children of all ages are welcome at this property. Children between 0 and 17 years old can stay for free if no extra bed is needed. Cribs and Extra Beds For all room types, cribs and extra beds cannot be added. Breakfast Breakfast not provided Deposit Policy DepositNo deposit required by the property Pets Pets are not allowed Service animals Service animals are allowed Age Requirements The main guest checking in must be at least 18 years old Paying at the hotel Cash","qichan_scenic_suite_smart_control_zero_pressure_mattress":"1 Queen bed 32m² | Floor: 2 Has window Free Wi-Fi Non-smoking Air conditioning Private bathroom Refrigerator Daily housekeeping","rating":"9.7","recommendations":"Most Viewed Hotels Hotels near Top Attractions More Accommodation Types Popular Hotels","region":"Beijing","review_count":"240","rooms":"Qichan Scenic Suite (Smart Control - Zero Pressure Mattress) Scenic View Double Bed Room (Drum Tower View + Zero Pressure Mattress) Wanggu Scenic Double Bed Room (Smart Control - Zero Pressure Mattress)","title":"Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)","url":"https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/","you_might_be_wondering":"What landmarks are near Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)? Nearby attractions to Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) include Shichahai Scenic Area, just 100 ft from your search on foot away. Does Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) have a restaurant? No, Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) doesn’t have on-site dining options. Does Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) have a pool? No, Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) doesn’t have a pool. Does Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) serve breakfast? No, Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) doesn’t serve breakfast. Where is Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) located? The hotel is located at No. 21, Yandai Xie Street, Xicheng District, Beijing, China. Does Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) offer airport transfer services? No, Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) doesn’t provide airport transfers. Are pets allowed at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)? No, pets aren’t allowed at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store). How much does it cost to stay at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)? Room rates at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) vary based on dates, hotel policy, and other factors. Enter your travel dates to check current prices. What are the check-in and check-out times at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)? Check-in at Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) starts at 14:00, and check-out is at 12:00."}]}],"request_example":{"body":{"input":{"url":"https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"url\": \"https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/trip-com-hotel-details-api/","markdown":"https://cleanedweb.com/catalog/trip-com-hotel-details-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/trip-com-hotel-details-api/","markdown":"https://cleanedweb.com/catalog/trip-com-hotel-details-api/index.md","contract":"https://cleanedweb.com/catalog/trip-com-hotel-details-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
