About this API
Trip.com is a travel site that also lists restaurants. One record is one restaurant page.
What you get
Each record has the name, cuisine, price, rating, review count, address, city and country, coordinates, popular dishes, features, opening details and link.
What you can filter
Send one page address in the url input, or several in the urls input. Each address gives one record. There are no other filters.
What it is good for
- Build a restaurant guide for a destination
- Compare ratings and prices
- Place restaurants on a map
- Output fields
- 56
- Inputs
- 2
Sample restaurant record
Saved sample, not a live run.
title- Australia Dairy Company
popular_dishes- AI translated
overview- Dishes
_page.isfood_billboard- 1
_page.favorite_is_favorite- false
_page.is_publish- true
images.poi_count- 108
images.poi_urls- https://ak-d.tripcdn.com/images/100h0x000000l91rnC357.jpg, https://ak-d.tripcdn…
images.review_urls- https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg?proc=source%2ftrip, h…
All 56 fields
images.list- https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg, https://ak-d.tripcdn…
location.distance_from_you- 12496.782338288729
location.distance_from_center- 1.6382680907983544
location.district_name- Hong Kong
location.address- 47號 Parkes St, Jordan, Kowloon, Hong Kong
location.zone_name- Yau Ma Tei
location.country_name- China
location.translated_local_address- 香港佐敦白加士街47號
alternate_name- 澳洲牛奶公司
cuisine- Cantonese cuisine
poi_id- 487135
restaurant_id- 452409
_page.have_book- false
_page.quality_flag- 1
_page.has_more_videos- false
images.total_count- 108
location.district_id- 38
location.city_id- 38
location.city_name- Hong Kong
location.district_english_name- Hong Kong
location.is_china- 1
location.hong_kong_macao_taiwan_type- 1
location.country_id- 110000
location.locality- Hong Kong
name- Australia Dairy Company
images.poi- { image_id, image_url, source, title }
images.media- { type, url }
tags- { tag_id, tag_name, tag_type }
foods- { icon_url }
highlights- { icon_type, title, type }
features.features- —
rating.review_count- —
category.name- —
features.items- —
features.good_to_know- —
features.vibe- —
features.amenities- —
reviews.items- —
price.amount- —
price.icon_count- —
price.icon- —
price.icon_string- —
price.range- —
rating.score- —
rating.judge_comment_score- —
category.path- —
Try it
Records
Saved sample, not a live run.
title |
popular_dishes |
url |
overview |
_page.isfood_billboard |
_page.favorite_is_favorite |
_page.is_publish |
images.poi_count |
images.poi_urls |
images.review_urls |
images.list |
location.distance_from_you |
location.distance_from_center |
location.district_name |
location.address |
location.zone_name |
location.country_name |
location.translated_local_address |
alternate_name |
cuisine |
poi_id |
restaurant_id |
_page.have_book |
_page.quality_flag |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Australia Dairy Company | AI translated | us.trip.com/restaurant/china/hong-kong/de… | Dishes | 1 | false | true | 108 | https://ak-d.tripcdn.com/images/100h0x000000l91rnC357.jpg, https://ak-d.tripcdn… | https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg?proc=source%2ftrip, h… | https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg, https://ak-d.tripcdn… | 12496.782338288729 | 1.6382680907983544 | Hong Kong | 47號 Parkes St, Jordan, Kowloon, Hong Kong | Yau Ma Tei | China | 香港佐敦白加士街47號 | 澳洲牛奶公司 | Cantonese cuisine | 487135 | 452409 | false | 1 |
Scroll sideways to see more columns.
Output fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
title |
— | Australia Dairy Company | string | Required |
popular_ |
— | AI translated | string | Optional |
url |
Link | us.trip.com/restaurant/china/hong-kong/de… | string | Required |
overview |
— | Dishes | string | Optional |
_ |
— | 1 | number | string | Optional |
_ |
— | false | boolean | string | Optional |
_ |
— | true | boolean | string | Optional |
images.poi_ |
How many | 108 | number | string | Optional |
images.poi_ |
Link | https://ak-d.tripcdn.com/images/100h0x000000l91rnC357.jpg, https://ak-d.tripcdn… | array of string | Optional |
images.review_ |
Link | https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg?proc=source%2ftrip, h… | array of string | Optional |
images.list |
— | https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg, https://ak-d.tripcdn… | array of string | Optional |
location.distance_ |
— | 12496.782338288729 | number | string | Optional |
location.distance_ |
— | 1.6382680907983544 | number | string | Optional |
location.district_ |
— | Hong Kong | string | Optional |
location.address |
— | 47號 Parkes St, Jordan, Kowloon, Hong Kong | string | Optional |
location.zone_ |
— | Yau Ma Tei | string | Optional |
location.country_ |
— | China | string | Optional |
location.translated_ |
— | 香港佐敦白加士街47號 | string | Optional |
alternate_ |
— | 澳洲牛奶公司 | string | Optional |
cuisine |
— | Cantonese cuisine | string | Optional |
36 more fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
poi_ |
Identifier | 487135 | string | Optional |
restaurant_ |
Identifier | 452409 | string | Optional |
_ |
— | false | boolean | string | Optional |
_ |
— | 1 | number | string | Optional |
_ |
— | false | boolean | string | Optional |
images.total_ |
How many | 108 | number | string | Optional |
location.district_ |
Identifier | 38 | string | Optional |
location.city_ |
Identifier | 38 | string | Optional |
location.city_ |
— | Hong Kong | string | Optional |
location.district_ |
— | Hong Kong | string | Optional |
location.is_ |
— | 1 | number | string | Optional |
location.hong_ |
— | 1 | number | string | Optional |
location.country_ |
Identifier | 110000 | string | Optional |
location.locality |
— | Hong Kong | string | Optional |
name |
— | Australia Dairy Company | string | Optional |
features.features |
— | — | array of string | Optional |
rating.review_ |
How many | — | number | string | Optional |
category.name |
— | — | string | Optional |
features.items |
— | — | array of string | Optional |
features.good_ |
— | — | string | Optional |
features.vibe |
— | — | string | Optional |
features.amenities |
— | — | string | Optional |
reviews.items |
— | — | array of string | Optional |
price.amount |
— | — | number | string | Optional |
price.icon_ |
How many | — | number | string | Optional |
price.icon |
— | — | string | Optional |
price.icon_ |
— | — | string | Optional |
price.range |
— | — | string | Optional |
images.poi |
— | { image_id, image_url, source, title } | array of object | Optional |
images.media |
— | { type, url } | array of object | Optional |
rating.score |
— | — | number | string | Optional |
rating.judge_ |
— | — | number | string | Optional |
tags |
— | { tag_id, tag_name, tag_type } | array of object | Optional |
foods |
— | { icon_url } | array of object | Optional |
highlights |
— | { icon_type, title, type } | array of object | Optional |
category.path |
— | — | array of string | Optional |
Inputs
-
urlURL · requiredPaste the URL of a trip.com or on another store's site page of the same kind as the sample: its path looks like /restaurant/china/{slug}/detail/{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_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/"
},
"version": 2,
"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 v2, whose newest minor (2.0) answers. Leave it out and the call runs on the latest major.
v1 is deprecated. It answers until Jan 30, 2027. After that, calls pinned to v1 run on v2. Move to v2, the current version.
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 Restaurant Details API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v2 2.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.com.
Changelog
-
v2.0 (major) ·
record_layout_changedRecords are now grouped: related fields sit under shared keys, so 56 field(s) have new paths (each listed below). Callers pinned to the previous major keep the previous shape until its sunset.field_movedFieldfeaturesis nowfeatures.features.field_movedFieldreviewsis nowreviews.items.field_movedFieldisfood_billboardis now_page.isfood_billboard.field_movedFieldpriceis nowprice.amount.field_movedFieldpoi_image_countis nowimages.poi_count.field_movedFieldratingis nowrating.score.field_movedFieldreview_countis nowrating.review_count.field_movedFieldfeatures_stringis nowfeatures.items.field_movedFielddistancefromyouis nowlocation.distance_from_you.field_movedFielddistancefromcenteris nowlocation.distance_from_center.field_movedFielddistrict_idis nowlocation.district_id.field_movedFielddistritnameis nowlocation.district_name.field_movedFieldcity_idis nowlocation.city_id.field_movedFieldcity_enameis nowlocation.city_name.field_movedFielddistrit_englishnameis nowlocation.district_english_name.field_movedFieldpoi_addressis nowlocation.address.field_movedFieldgglatis nowlocation.coordinates.gglat.field_movedFieldgglonis nowlocation.coordinates.gglon.field_movedFieldgdlatis nowlocation.coordinates.gdlat.field_movedFieldgdlonis nowlocation.coordinates.gdlon.field_movedFieldis_chinais nowlocation.is_china.field_movedFieldphonesis nowcontact.phones.field_movedFieldpoi_imageis nowimages.poi.field_movedFieldfavorite_is_favoriteis now_page.favorite_is_favorite.field_movedFieldicon_countis nowprice.icon_count.field_movedFieldicon_iconis nowprice.icon.field_movedFieldis_publishis now_page.is_publish.field_movedFieldsecond_nameis nowalternate_name.field_movedFieldhave_bookis now_page.have_book.field_movedFieldhong_kong_macao_taiwan_typeis nowlocation.hong_kong_macao_taiwan_type.field_movedFieldzone_nameis nowlocation.zone_name.field_movedFieldquality_flagis now_page.quality_flag.field_movedFieldcountry_enameis nowlocation.country_name.field_movedFieldprice_icon_stringis nowprice.icon_string.field_movedFieldtranslated_local_addressis nowlocation.translated_local_address.field_movedFieldcountry_idis nowlocation.country_id.field_movedFieldhigh_light_reasonsis nowhighlights.field_movedFieldhas_more_videosis now_page.has_more_videos.field_movedFieldtotal_image_countis nowimages.total_count.field_movedFieldshow_address_cardis now_page.show_address_card.field_movedFieldcategoryis nowcategory.name.field_movedFieldcategory_pathis nowcategory.path.field_movedFieldphoneis nowcontact.phone.field_movedFieldstreet_addressis nowlocation.street_address.field_movedFieldlocalityis nowlocation.locality.field_movedFieldlatitudeis nowlocation.coordinates.latitude.field_movedFieldlongitudeis nowlocation.coordinates.longitude.field_movedFieldprice_rangeis nowprice.range.field_movedFieldgood_to_knowis nowfeatures.good_to_know.field_movedFieldfeatures_vibeis nowfeatures.vibe.field_movedFieldamenitiesis nowfeatures.amenities.field_movedFieldmedia_poi_imageis nowimages.poi_urls.field_movedFieldreview_imagesis nowimages.review_urls.field_movedFieldimage_listis nowimages.list.field_movedFieldmediais nowimages.media.field_movedFieldjudge_comment_scoreis nowrating.judge_comment_score.
-
v1.0 (major) ·