Get Tripadvisor place details
litescrape.tripadvisor.place.detailReturns one Tripadvisor place in `place_results`: identity, location, rating, images and, for restaurants, contact details, hours and rankings when Tripadvisor supplies them
- 价格
- $0.00015/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月29日实测可用
GEThttps://toolswitch.dev/v1/tools/litescrape.tripadvisor.place.detail?place_id=18941405预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
geo_id | 整数 | 可选 | Tripadvisor ID of the place's parent geography. | 30196 |
locale | 字符串 | 可选 | Lowercase language code with an optional uppercase country, such as en or en-US. | |
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. | |
currency | 字符串 | 可选 | Three-letter ISO currency code for price fields; case-insensitive. | |
place_id | 整数 | 必填 | Numeric Tripadvisor place ID, up to 16 digits. | 437641 |
tripadvisor_domain | 字符串 | 可选 | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. | www.tripadvisor.com |
- 查询参数
geo_id整数可选Tripadvisor ID of the place's parent geography.
示例:
30196locale字符串可选Lowercase language code with an optional uppercase country, such as en or en-US.
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.
currency字符串可选Three-letter ISO currency code for price fields; case-insensitive.
place_id整数必填Numeric Tripadvisor place ID, up to 16 digits.
示例:
437641tripadvisor_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.place.detail?place_id=18941405' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.tripadvisor.place.detail?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.place.detail?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 计费,已含服务费。