主题
按任务 ID 获取 Trustpilot 商家评论结果
本接口用于获取指定任务的 Trustpilot 商家评论结果。接口会根据任务设置时的参数返回对应商家实体的评论、评分、用户资料及商家回复等信息。结果不受用户偏好、搜索历史或个性化因素影响。
请求方法与路径:
http
GET https://api.seermartech.cn/v3/business_data/trustpilot/reviews/task_get/$id,$id 为任务 ID。任务结果自任务创建之日起 30 天可查询。
计费说明
- 创建任务时计费,获取任务结果不额外收费。
- 任务结果可在创建后的 30 天重复查询。
- 实扣费以响应头
X-SeerMarTech-Charge-CNY为准。
请求参数
接口使用路径参数,不需要请求体。
| 参数 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式。任务创建成功后,可在 30 天使用该 ID 获取结果。 |
响应结构
接口返回 JSON 数据,顶层 tasks 数组。
顶层字段
| 字段 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本。 |
status_code | integer | 通用响应状态码。完整错误码请参考错误码文档。建议客户端针对异常和错误状态进行处理。 |
status_message | string | 通用响应说明。 |
time | string | 接口执行耗时,例如 0.1143 sec.。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
tasks_count | integer | tasks 数组中的任务数量。 |
tasks_error | integer | tasks 数组中返回错误的任务数量。 |
tasks | array | 任务结果数组。 |
tasks 数组
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式。 |
status_code | integer | 任务状态码,通常位于 10000–60000 范围。 |
status_message | string | 任务状态说明。 |
time | string | 任务执行耗时。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
result_count | integer | result 数组中的数量。 |
path | array | 请求 URL 路径。 |
data | object | 创建任务时提交的参数。 |
result | array | 任务结果数组。 |
data 字段
data含创建任务时提交的原始参数,例如:
| 字段 | 类型 | 说明 |
|---|---|---|
api | string | API 类型,例如 business_data。 |
function | string | 功能名称,例如 reviews。 |
se | string | 数据来源类型,例如 trustpilot。 |
domain | string | 商家域名。 |
language_name | string | 查询语言名称。 |
language_code | string | 查询语言代码。 |
location_name | string | 查询地区名称。 |
device | string | 设备类型,例如 desktop。 |
os | string | 操作系统,例如 windows。 |
pingback_url | string | 异步回调地址,如任务创建时设置了该参数。 |
tag | string | 用户自定义任务标签。 |
result 结果字段
| 字段 | 类型 | 说明 |
|---|---|---|
domain | string | 商家实体的域名。 |
type | string | 查询类型。 |
se_domain | string | 查询所使用的搜索引擎域名。 |
check_url | string | 可直接访问的搜索结果 URL,可用于核验返回结果的准确性。建议使用无痕模式访问。 |
datetime | string | 获取结果的时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00。 |
title | string | Trustpilot 评论模块的标题,通常为商家名称。 |
location | string | Trustpilot 展示的商家地址或位置。 |
reviews_count | integer | 商家评论总数。 |
rating | object | 商家总体评分。 |
items_count | integer | items 数组中的评论数量。使用创建任务时的 depth 参数可获取更多评论。 |
items | array | 找到的评论列表。 |
result.rating 字段
| 字段 | 类型 | 说明 |
|---|---|---|
rating_type | string | 评分类型,可为 Max5、Percents 或 CustomMax。 |
value | float | 基于评论计算的平均评分。 |
votes_count | integer | 评分或投票数量。 |
rating_max | integer | 当前评分类型的最大值。 |
items 评论字段
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 评论类型,当前可能为 trustpilot_review_search。 |
rank_group | integer | 在相同 type 评论中的组排名。不同类型之间不计该排名。 |
rank_absolute | integer | 评论在结果中的绝对排名。 |
position | string | 评论在搜索结果中的位置,当前可能为 right 或 left。 |
url | string | 评论页 URL。 |
rating | object | 评论提交的评分。 |
verified | boolean | 是否带有“已验证”标记。 |
language | string | 评论语言代码,例如 en。 |
timestamp | string | 评论发布时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00。 |
title | string | 评论标题。 |
review_text | string | 评论正文,可能为 null。 |
review_images | array | 评论图片 URL 数组。由于 Trustpilot 不支持在评论中添加图片,该字段通常为 null。 |
user_profile | object | 评论的用户资料。 |
responses | array | 商家对该评论的回复列表,可能为 null。 |
items.rating 字段
| 字段 | 类型 | 说明 |
|---|---|---|
rating_type | string | 评分类型,当前为 Max5。 |
value | float | 评分值。 |
votes_count | integer | 该评分获得的反馈或投票数量。 |
rating_max | integer | 评分最大值;Max5 类型的最大值为 5。 |
user_profile 字段
| 字段 | 类型 | 说明 |
|---|---|---|
name | string | 评论名称。 |
url | string | 评论资料页 URL。 |
image_url | string | 评论头像 URL,可能为 null。 |
location | string | 评论所在地区或国家代码。 |
reviews_count | integer | 评论发布的评论总数。 |
responses 字段
| 字段 | 类型 | 说明 |
|---|---|---|
title | string | 商家回复标题。 |
text | string | 商家回复正文。 |
timestamp | string | 商家回复发布时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00。 |
请求示例
curl
bash
id="04011058-0696-0199-0000-2196151a15cb"
curl --location --request GET \
"https://api.seermartech.cn/v3/business_data/trustpilot/reviews/task_get/${id}" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json"Python
python
import requests
task_id = "04011058-0696-0199-0000-2196151a15cb"
url = (
"https://api.seermartech.cn/v3/business_data/"
f"trustpilot/reviews/task_get/{task_id}"
)
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
response.raise_for_status()
data = response.json()
print(data)TypeScript
typescript
import axios from "axios";
const taskId = "02231934-2604-0066-2000-570459f04879";
axios
.get(
`https://api.seermartech.cn/v3/business_data/trustpilot/reviews/task_get/${taskId}`,
{
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
},
}
)
.then((response) => {
// 处理任务结果
console.log(response.data);
})
.catch((error) => {
console.error("请求失败:", error.response?.data || error.message);
});响应示例
json
{
"version": "0.1.20210917",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.1143 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "04011058-0696-0199-0000-2196151a15cb",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0950 sec.",
"cost": 0,
"result_count": 1,
"path": [
"v3",
"business_data",
"trustpilot",
"reviews",
"task_get",
"04011058-0696-0199-0000-2196151a15cb"
],
"data": {
"api": "business_data",
"function": "reviews",
"se": "trustpilot",
"domain": "example.com",
"language_name": "English",
"language_code": "en",
"location_name": "United States",
"device": "desktop",
"os": "windows"
},
"result": [
{
"domain": "example.com",
"type": "trustpilot_review_search",
"se_domain": "trustpilot.com",
"check_url": "https://www.trustpilot.com/",
"datetime": "2021-08-27 02:43:02 +00:00",
"title": "Example Business",
"location": "United States",
"reviews_count": 125,
"rating": {
"rating_type": "Max5",
"value": 4.2,
"votes_count": 125,
"rating_max": 5
},
"items_count": 1,
"items": [
{
"type": "trustpilot_review_search",
"rank_group": 1,
"rank_absolute": 1,
"position": "left",
"url": "https://www.trustpilot.com/reviews/example-review-id",
"rating": {
"rating_type": "Max5",
"value": 5,
"votes_count": null,
"rating_max": 5
},
"verified": true,
"language": "en",
"timestamp": "2021-08-27 02:43:02 +00:00",
"title": "Great service",
"review_text": "The service was excellent.",
"review_images": null,
"user_profile": {
"name": "Example User",
"url": "https://www.trustpilot.com/users/example-user-id",
"image_url": null,
"location": "US",
"reviews_count": 1
},
"responses": [
{
"title": "Thank you",
"text": "Thank you for your feedback.",
"timestamp": "2021-08-28 10:00:00 +00:00"
}
]
}
]
}
]
}
]
}沙盒环境
可使用以下沙盒地址测试接口。沙盒会返回 Trustpilot Reviews 接口支持的字段,但字段为模拟数据,不会产生费用:
text
https://sandbox.seermartech.cn/v3/business_data/trustpilot/reviews/task_get/00000000-0000-0000-0000-000000000000实用场景
- 汇总竞争对手的 Trustpilot 评分与评论数量,评估品牌口碑和市场信任度,为竞品分析提供量化依据。
- 抓取评论标题、正文及评分,识别客户高频反馈主题,支持产品优化和营销选题。
- 筛选已验证评论并分析用户地区,判断不同市场的真实用户反馈,制定区域化 SEO 与投放策略。
- 统计评论发布时间和排名变化,监测品牌声誉趋势,及时发现负面评价集中出现的风险。
- 提取商家对评论的回复,评估竞争对手的客户服务响应方式,为品牌和口碑运营提供参考。