Read Tripadvisor reviews
litescrape.tripadvisor.business.reviewsReturns public reviews for one Tripadvisor place in `reviews`, in Tripadvisor's order; rows Tripadvisor promotes carry `featured: true` and can appear ahead of newer reviews
- 价格
- $0.00015/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月29日实测可用
GEThttps://toolswitch.dev/v1/tools/litescrape.tripadvisor.business.reviews?num=5&place_id=18941405预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
num | 整数 | 可选 | Number of reviews, 1 through 50. | 5 |
start | 整数 | 可选 | Review offset from 0 through 10,000. | |
locale | 字符串 | 可选 | Lowercase language code with an optional uppercase country, such as en or en-US. | |
sort_by | 字符串 | 可选 | Review order: recent (newest first) or relevance. | |
timeout | 数字 | 可选 | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
place_id | 整数 | 必填 | Numeric Tripadvisor place ID, up to 16 digits. | 437641 |
translate | 布尔 | 可选 | Request Tripadvisor's machine translation of reviews. | |
tripadvisor_domain | 字符串 | 可选 | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. | www.tripadvisor.com |
- 查询参数
num整数可选Number of reviews, 1 through 50.
示例:
5start整数可选Review offset from 0 through 10,000.
locale字符串可选Lowercase language code with an optional uppercase country, such as en or en-US.
sort_by字符串可选Review order: recent (newest first) or relevance.
timeout数字可选Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
place_id整数必填Numeric Tripadvisor place ID, up to 16 digits.
示例:
437641translate布尔可选Request Tripadvisor's machine translation of reviews.
tripadvisor_domain字符串可选Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
示例:
www.tripadvisor.com
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.tripadvisor.business.reviews?num=5&place_id=18941405' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.tripadvisor.business.reviews?num=5&place_id=18941405",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.tripadvisor.business.reviews?num=5&place_id=18941405", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.00015/success 计费,已含服务费。