About this API
Each record holds title, rating, url, check in check out, nearby attractions, qichan scenic suite smart control zero pressure mattress and 17 more fields.
What you can filter
Send the address of one page and the run returns its record.
- Output fields
- 23
- Inputs
- 2
Sample hotel record
Saved sample, not a live run.
title- Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)
rating- 9.7
check_in_check_out- From 14:00 until 12:00
nearby_attractions- Drum Tower: 0.21 km away Shichahai Scenic Area: 0.03 km away Beijing's Bell and…
qichan_scenic_suite_smart_control_zero_pressure_mattress- 1 Queen bed 32m² | Floor: 2 Has window Free Wi-Fi Non-smoking Air conditioning …
property_policies- Check-in and Check-out Times Check-in: After 14:00 Check-out: Before 12:00 Fron…
property_description- Contact information Phone:+86-10-62883663-1000 About this property Local hotel …
you_might_be_wondering- What are the check-in and check-out times at Xinyuan Hotel 1875 (Beijing Gulou …
about_this_property- Nearest Airport Beijing Capital Intl. Airport Distance to Airport 25.69KM Neare…
All 23 fields
recommendations- Most Viewed Hotels Hotels near attractions Top destinations More accommodation …
category- Hotels in Beijing
locality- No. 21, Yandai Xie Street, Xicheng District, Beijing, China
region- Beijing
country- China
review_count- 240
price_range- From US$70
category_path- Hotels, Hotels in China, Hotels in Beijing
name- Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store)
media- { type, url }
rooms- —
hotel_features- —
Try it
Records
Saved sample, not a live run.
title |
rating |
url |
check_in_check_out |
nearby_attractions |
qichan_scenic_suite_smart_control_zero_pressure_mattress |
property_policies |
property_description |
you_might_be_wondering |
about_this_property |
recommendations |
category |
image |
locality |
region |
country |
review_count |
price_range |
category_path |
name |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) | 9.7 | trip.com/hotels/beijing-hotel-detail-1324… | From 14:00 until 12:00 | Drum Tower: 0.21 km away Shichahai Scenic Area: 0.03 km away Beijing's Bell and… | 1 Queen bed 32m² | Floor: 2 Has window Free Wi-Fi Non-smoking Air conditioning … | Check-in and Check-out Times Check-in: After 14:00 Check-out: Before 12:00 Fron… | Contact information Phone:+86-10-62883663-1000 About this property Local hotel … | What are the check-in and check-out times at Xinyuan Hotel 1875 (Beijing Gulou … | Nearest Airport Beijing Capital Intl. Airport Distance to Airport 25.69KM Neare… | Most Viewed Hotels Hotels near attractions Top destinations More accommodation … | Hotels in Beijing | ak-d.tripcdn.com/images/1mc0g12000pnflogl… | No. 21, Yandai Xie Street, Xicheng District, Beijing, China | Beijing | China | 240 | From US$70 | Hotels, Hotels in China, Hotels in Beijing | Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) |
Scroll sideways to see more columns.
Output fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
title |
— | Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) | string | Required |
rating |
Rating | 9.7 | string | Optional |
url |
Link | trip.com/hotels/beijing-hotel-detail-1324… | string | Required |
check_ |
— | From 14:00 until 12:00 | string | Optional |
nearby_ |
— | Drum Tower: 0.21 km away Shichahai Scenic Area: 0.03 km away Beijing's Bell and… | string | Optional |
qichan_ |
— | 1 Queen bed 32m² | Floor: 2 Has window Free Wi-Fi Non-smoking Air conditioning … | string | Optional |
property_ |
— | Check-in and Check-out Times Check-in: After 14:00 Check-out: Before 12:00 Fron… | string | Optional |
property_ |
— | Contact information Phone:+86-10-62883663-1000 About this property Local hotel … | string | Optional |
you_ |
— | What are the check-in and check-out times at Xinyuan Hotel 1875 (Beijing Gulou … | string | Optional |
about_ |
— | Nearest Airport Beijing Capital Intl. Airport Distance to Airport 25.69KM Neare… | string | Optional |
recommendations |
— | Most Viewed Hotels Hotels near attractions Top destinations More accommodation … | string | Optional |
category |
— | Hotels in Beijing | string | Optional |
image |
Image link | ak-d.tripcdn.com/images/1mc0g12000pnflogl… | string | Optional |
locality |
— | No. 21, Yandai Xie Street, Xicheng District, Beijing, China | string | Optional |
region |
— | Beijing | string | Optional |
country |
— | China | string | Optional |
review_ |
How many | 240 | string | Optional |
price_ |
— | From US$70 | string | Optional |
category_ |
— | Hotels, Hotels in China, Hotels in Beijing | array of string | Optional |
name |
— | Xinyuan Hotel 1875 (Beijing Gulou Nanluoguxiang Store) | string | Optional |
rooms |
— | — | string | Optional |
hotel_ |
— | — | string | Optional |
media |
— | { type, url } | array of object | Optional |
Inputs
-
urlURL · requiredPaste the URL of a trip.com page of the same kind as the sample: its path looks like /hotels/{slug}/{slug}. Any such page works, not only the one the API was built from.
-
urlsarray of stringPages 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.
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_6d5a9e83a7bfb22626b35b68/endpoints/generated_6d5a9e83a7bfb22626b35b68_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://www.trip.com/hotels/beijing-hotel-detail-132411993/xinyuan-hotel-1875/"
},
"version": 1,
"max_items": 25
}'
Save the Idempotency-Key before you send, and reuse it only to retry the same request. The key needs the run scope. See Run a catalog API.
version pins major v1, whose newest minor (1.0) answers. Leave it out and the call runs on the latest major.
Use it from an AI agent
Open in your coding agent
Add CleanedWeb to your agent as an MCP server, such as a custom connector in Claude or ChatGPT, then sign in with your CleanedWeb account. An API key with the read and run scopes works too.
https://api.cleanedweb.com/mcp?profile=catalog
Then ask, for example: Use CleanedWeb to get 25 records from the trip.com Hotel Details API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v1 1.0
- Category
- Travel
- Updated
A run reads the one page you name and returns its record. Your limits on records, time and budget still apply.
CleanedWeb is not affiliated with Trip.
Changelog
-
v1.0 (major) ·