Skip to content

按任务 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 为准。

请求参数

接口使用路径参数,不需要请求体。

参数类型说明
idstring任务唯一标识,UUID 格式。任务创建成功后,可在 30 天使用该 ID 获取结果。

响应结构

接口返回 JSON 数据,顶层 tasks 数组。

顶层字段

字段类型说明
versionstring当前 API 版本。
status_codeinteger通用响应状态码。完整错误码请参考错误码文档。建议客户端针对异常和错误状态进行处理。
status_messagestring通用响应说明。
timestring接口执行耗时,例如 0.1143 sec.
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
tasks_countintegertasks 数组中的任务数量。
tasks_errorintegertasks 数组中返回错误的任务数量。
tasksarray任务结果数组。

tasks 数组

字段类型说明
idstring任务唯一标识,UUID 格式。
status_codeinteger任务状态码,通常位于 10000–60000 范围。
status_messagestring任务状态说明。
timestring任务执行耗时。
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
result_countintegerresult 数组中的数量。
patharray请求 URL 路径。
dataobject创建任务时提交的参数。
resultarray任务结果数组。

data 字段

data含创建任务时提交的原始参数,例如:

字段类型说明
apistringAPI 类型,例如 business_data
functionstring功能名称,例如 reviews
sestring数据来源类型,例如 trustpilot
domainstring商家域名。
language_namestring查询语言名称。
language_codestring查询语言代码。
location_namestring查询地区名称。
devicestring设备类型,例如 desktop
osstring操作系统,例如 windows
pingback_urlstring异步回调地址,如任务创建时设置了该参数。
tagstring用户自定义任务标签。

result 结果字段

字段类型说明
domainstring商家实体的域名。
typestring查询类型。
se_domainstring查询所使用的搜索引擎域名。
check_urlstring可直接访问的搜索结果 URL,可用于核验返回结果的准确性。建议使用无痕模式访问。
datetimestring获取结果的时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00
titlestringTrustpilot 评论模块的标题,通常为商家名称。
locationstringTrustpilot 展示的商家地址或位置。
reviews_countinteger商家评论总数。
ratingobject商家总体评分。
items_countintegeritems 数组中的评论数量。使用创建任务时的 depth 参数可获取更多评论。
itemsarray找到的评论列表。

result.rating 字段

字段类型说明
rating_typestring评分类型,可为 Max5PercentsCustomMax
valuefloat基于评论计算的平均评分。
votes_countinteger评分或投票数量。
rating_maxinteger当前评分类型的最大值。

items 评论字段

字段类型说明
typestring评论类型,当前可能为 trustpilot_review_search
rank_groupinteger在相同 type 评论中的组排名。不同类型之间不计该排名。
rank_absoluteinteger评论在结果中的绝对排名。
positionstring评论在搜索结果中的位置,当前可能为 rightleft
urlstring评论页 URL。
ratingobject评论提交的评分。
verifiedboolean是否带有“已验证”标记。
languagestring评论语言代码,例如 en
timestampstring评论发布时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00
titlestring评论标题。
review_textstring评论正文,可能为 null
review_imagesarray评论图片 URL 数组。由于 Trustpilot 不支持在评论中添加图片,该字段通常为 null
user_profileobject评论的用户资料。
responsesarray商家对该评论的回复列表,可能为 null

items.rating 字段

字段类型说明
rating_typestring评分类型,当前为 Max5
valuefloat评分值。
votes_countinteger该评分获得的反馈或投票数量。
rating_maxinteger评分最大值;Max5 类型的最大值为 5

user_profile 字段

字段类型说明
namestring评论名称。
urlstring评论资料页 URL。
image_urlstring评论头像 URL,可能为 null
locationstring评论所在地区或国家代码。
reviews_countinteger评论发布的评论总数。

responses 字段

字段类型说明
titlestring商家回复标题。
textstring商家回复正文。
timestampstring商家回复发布时间,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 与投放策略。
  • 统计评论发布时间和排名变化,监测品牌声誉趋势,及时发现负面评价集中出现的风险。
  • 提取商家对评论的回复,评估竞争对手的客户服务响应方式,为品牌和口碑运营提供参考。

统一入口:官网 · LLM API · 控制台