{"name":"trip.com Company Details API","description":"The record of a Company Details page on trip.com, read from the page's URL.","api_id":"generated_151ec9cd2fb0ff91e1d82e40","slug":"trip-com-company-details-api","source":{"name":"Trip","domain":"us.trip.com","url":"https://us.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-29T07:47:59.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_151ec9cd2fb0ff91e1d82e40_search","name":"Get trip.com Company Details by URL","description":"Return the one record of a page of this kind, given the page's URL on the site.","definition_version":"a3203e7ebbf28a91d0c129cc77f9a9b9eb409fa074233d9daa939f73fee5233c","method":"POST","path":"/v1/catalog/public/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_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 or on another store's site: its path matches /restaurant/china/{slug}/detail/{slug}. It need not be the build page.","examples":["https://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/"]},"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://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/"]]}},"required":["url"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"overview":{"type":"string"},"popular_dishes":{"type":"string"},"features":{"type":"array","items":{"type":["null","string"]}},"reviews":{"type":"array","items":{"type":["null","string"]}},"poi_id":{"type":"string"},"restaurant_id":{"type":"string"},"isfood_billboard":{"type":["number","string"]},"price":{"type":["number","string"]},"poi_image_count":{"type":["number","string"]},"rating":{"type":["number","string"]},"review_count":{"type":["number","string"]},"features_string":{"type":"array","items":{"type":["null","string"]}},"distancefromyou":{"type":["number","string"]},"distancefromcenter":{"type":["number","string"]},"tags":{"type":"array","items":{"properties":{"tag_id":{"type":["null","string"]},"tag_name":{"type":["null","string"]},"tag_type":{"type":["null","number","string"]}},"type":["null","object"]}},"district_id":{"type":"string"},"distritname":{"type":"string"},"city_id":{"type":"string"},"city_ename":{"type":"string"},"distrit_englishname":{"type":"string"},"poi_address":{"type":"string"},"gglat":{"type":["number","string"]},"gglon":{"type":["number","string"]},"gdlat":{"type":["number","string"]},"gdlon":{"type":["number","string"]},"is_china":{"type":["number","string"]},"phones":{"type":"array","items":{"type":["null","string"]}},"foods":{"type":"array","items":{"properties":{"icon_url":{"type":["null","string"]}},"type":["null","object"]}},"poi_image":{"type":"array","items":{"properties":{"image_id":{"type":["null","string"]},"image_url":{"type":["null","string"]},"source":{"type":["null","string"]},"title":{"type":["null","string"]}},"type":["null","object"]}},"favorite_is_favorite":{"type":["boolean","string"]},"icon_count":{"type":["number","string"]},"icon_icon":{"type":"string"},"is_publish":{"type":["boolean","string"]},"second_name":{"type":"string"},"have_book":{"type":["boolean","string"]},"hong_kong_macao_taiwan_type":{"type":["number","string"]},"zone_name":{"type":"string"},"quality_flag":{"type":["number","string"]},"country_ename":{"type":"string"},"price_icon_string":{"type":"string"},"translated_local_address":{"type":"string"},"country_id":{"type":"string"},"high_light_reasons":{"type":"array","items":{"properties":{"icon_type":{"type":["null","number","string"]},"title":{"type":["null","string"]},"type":{"type":["null","number","string"]}},"type":["null","object"]}},"has_more_videos":{"type":["boolean","string"]},"total_image_count":{"type":["number","string"]},"category":{"type":"string"},"category_path":{"type":"array","items":{"type":["null","string"]}},"locality":{"type":"string"},"price_range":{"type":"string"},"cuisine":{"type":"string"},"good_to_know":{"type":"string"},"features_vibe":{"type":"string"},"amenities":{"type":"string"},"media_poi_image":{"type":"array","items":{"type":["null","string"]}},"review_images":{"type":"array","items":{"type":["null","string"]}},"image_list":{"type":"array","items":{"type":["null","string"]}},"media":{"type":"array","items":{"properties":{"type":{"type":["null","string"]},"url":{"type":["null","string"]}},"type":["null","object"]}},"judge_comment_score":{"type":["number","string"]},"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-29T07:47:59.825Z","live_verified":false,"request":{"input":{"url":"https://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/"}},"records_shown":1,"records_saved":1,"records":[{"amenities":"Parking Takeout available Paid roadside parking Table service","category":"Restaurants in Hong Kong","category_path":["Travel guides","Asia","China","Hong Kong","Restaurants in Hong Kong"],"city_ename":"Hong Kong","city_id":"38","country_ename":"China","country_id":"110000","cuisine":"Cantonese cuisine","distancefromcenter":1.6382680907983544,"distancefromyou":12496.782338288729,"district_id":"38","distrit_englishname":"Hong Kong","distritname":"Hong Kong","favorite_is_favorite":false,"features":["See all features"],"features_string":["Take out"],"features_vibe":"10 years in business Solo dining Trendy","gdlat":22.3018842,"gdlon":114.1755116,"gglat":22.304628,"gglon":114.1705439,"good_to_know":"Vegetarian Cash only","has_more_videos":false,"have_book":false,"hong_kong_macao_taiwan_type":1,"icon_count":1,"icon_icon":"US$","image_list":["https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg","https://ak-d.tripcdn.com/images/100o040000000c2c2E5EA.jpg","https://ak-d.tripcdn.com/images/100s040000000c2c03B51.jpg","https://ak-d.tripcdn.com/images/100t040000000c2c017BC.jpg","https://ak-d.tripcdn.com/images/100q040000000c2c363C7.jpg","https://ak-d.tripcdn.com/images/100r040000000c2c177A4.jpg"],"is_china":1,"is_publish":true,"isfood_billboard":1,"locality":"Hong Kong","media_poi_image":["https://ak-d.tripcdn.com/images/100h0x000000l91rnC357.jpg","https://ak-d.tripcdn.com/images/100m0x000000lgv0699AB.jpg","https://ak-d.tripcdn.com/images/10060x000000l83kaA92A.jpg","https://ak-d.tripcdn.com/images/10040x000000l6gjw7188.jpg","https://ak-d.tripcdn.com/images/100b0x000000l9v669710.jpg"],"name":"Australia Dairy Company","overview":"Dishes","poi_address":"47號 Parkes St, Jordan, Kowloon, Hong Kong","poi_id":"487135","poi_image_count":108,"popular_dishes":"AI translated","price":5,"price_icon_string":"$","price_range":"$","quality_flag":1,"rating":4.4,"restaurant_id":"452409","review_count":902,"review_images":["https://ak-d.tripcdn.com/images/1001040000000c2c53368.jpg?proc=source%2ftrip","https://ak-d.tripcdn.com/images/100o040000000c2c2E5EA.jpg?proc=source%2ftrip","https://ak-d.tripcdn.com/images/100s040000000c2c03B51.jpg?proc=source%2ftrip","https://ak-d.tripcdn.com/images/100t040000000c2c017BC.jpg?proc=source%2ftrip","https://ak-d.tripcdn.com/images/100q040000000c2c363C7.jpg?proc=source%2ftrip","https://ak-d.tripcdn.com/images/100r040000000c2c177A4.jpg?proc=source%2ftrip"],"reviews":["Write a review"],"second_name":"澳洲牛奶公司","title":"Australia Dairy Company","total_image_count":108,"translated_local_address":"香港佐敦白加士街47號","url":"https://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/","zone_name":"Yau Ma Tei"}]}],"request_example":{"body":{"input":{"url":"https://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/"},"version":1,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_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://us.trip.com/restaurant/china/hong-kong/detail/australia-dairy-company-487135/\"\n  },\n  \"version\": 1,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_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-company-details-api/","markdown":"https://cleanedweb.com/catalog/trip-com-company-details-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_151ec9cd2fb0ff91e1d82e40/endpoints/generated_151ec9cd2fb0ff91e1d82e40_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/trip-com-company-details-api/","markdown":"https://cleanedweb.com/catalog/trip-com-company-details-api/index.md","contract":"https://cleanedweb.com/catalog/trip-com-company-details-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
