Trustpilot API

Trustpilot 评价 API

按品牌名获取任意公司的 Trustpilot 评价:星级、评价正文、日期和评价者信息,以干净的 JSON 返回。

POST/v1/run/trustpilot.reviews
可用率
99.54%
30d · 871 次调用
请求数
880
30d · 按周,近 12 周
响应时间
8.5s
中位数 · 30d

调用方式

发出你的第一个请求

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/trustpilot.reviews",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "company": ""
    },
)
print(res.json())
打开于
获取免费密钥
示例响应
{
  "data": {
    "items": [
      {
        "author": "Alex Rivera",
        "authorCountry": "Alex Rivera",
        "avatarUrl": "https://example.com/image.jpg",
        "createdUtc": 12.5,
        "language": "en",
        "ownerResponseText": "Alex Rivera",
        "ownerResponseUtc": 12.5,
        "rating": 4.6,
        "reviewerReviewsCount": 12500,
        "text": "A short example description of this item.",
        "title": "Example title",
        "url": "https://example.com/page",
        "verified": true
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
响应类型定义
interface TrustpilotReviewsResponse {
  data: {
    items: {
      author?: string;
      authorCountry?: string;
      avatarUrl?: string | null;
      createdUtc?: number;
      language?: string;
      ownerResponseText?: string;
      ownerResponseUtc?: number;
      rating: number;
      reviewerReviewsCount?: number;
      text: string;
      title?: string;
      url?: string;
      verified?: boolean;
    }[];
  } | null;
  found: boolean;
  reason?: "not_found";
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

请求、响应与价格

最近验证于 2026-09-29 · 可用率和延迟按 30d 统计
POST /v1/run/trustpilot.reviews
curl -X POST https://api.getanyapi.com/v1/run/trustpilot.reviews \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company":"stripe.com","limit":3}'
字段类型示例值
请求体
companystring"stripe.com"要获取评价的品牌名或 Trustpilot 评价页 URL(例如 nike 或 https://www.trustpilot.com/review/nike.com)。
countriesarray只返回来自这些 ISO 3166-1 alpha-2 国家的评价者的评价(例如 ["US", "GB"])。省略此字段可获取所有国家,并保持最低价格;按国家筛选会路由到最贵的数据源。
languagesarray只返回这些 ISO 639-1 语言的评价(例如 ["en", "de"])。省略此字段可获取所有语言,并保持最低价格;按语言筛选会路由到最贵的数据源。
limitinteger3最多返回的结果数量(1-200,默认 200)。Trustpilot 每家公司最多提供 200 条评价。
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `avatarUrl`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a review whose reviewer has no photo.
sortByenum评价排序:auto、relevancy 或 recent(例如 recent)。
starsstring只返回某一个星级的评价,范围 1 到 5(例如 5)。
startDatestring只返回此日期当天或之后的评价(含当天),格式为 YYYY-MM-DD(例如 2026-01-01)。省略此字段可保持最低价格;设置日期下限会路由到最贵的数据源。
verifiedOnlyboolean设为 true 只返回已验证的评价(例如 true)。省略此字段或传 false 可保持最低价格;true 会路由到更贵的数据源。
响应
dataobjectResult payload, or null when nothing was found.
data.itemsobject[]Review records: star rating, review title and text, date, reviewer name and country, and company reply when present. Populated whenever the provider has data for the entity.
data.items[].authorstringDisplay name of the reviewer.
data.items[].authorCountrystringTwo-letter country code of the reviewer.
data.items[].avatarUrl可设为必填stringURL of the reviewer's avatar image, or null when the reviewer has no photo.
data.items[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.items[].languagestringLanguage code of the review text, e.g. en.
data.items[].ownerResponseTextstringThe company's public reply to the review. Absent when the company has not replied.
data.items[].ownerResponseUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the company replied; absent when it has not.
data.items[].ratingnumberStar rating (1-5).
data.items[].reviewerReviewsCountintegerNumber of reviews the reviewer has written on Trustpilot.
data.items[].textstringReview body text. Populated whenever the provider has data for the entity.
data.items[].titlestringReview title or headline. Populated whenever the provider has data for the entity.
data.items[].urlstringCanonical review URL. Populated whenever the provider has data for the entity.
data.items[].verifiedbooleanWhether the reviewer is verified.
foundbooleanWhether any reviews were found for the company.
reason"not_found"Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
价格
每次请求价格USDUS$0.0008
价格(/千次请求)USDUS$0.80

常见问题

关于 Trustpilot 评价 API

AnyAPI 的 Trustpilot 评价 API 只需一次 POST 请求 /v1/run/trustpilot.reviews,就以统一格式的 JSON 返回 Trustpilot 数据。按品牌名获取任意公司的 Trustpilot 评价:星级、评价正文、日期和评价者信息,以干净的 JSON 返回。AnyAPI 会在 4 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.80 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Trustpilot 评价 API 调用中有 99.5% 成功,响应时间中位数为 8.5 秒,共测量 871 次调用。

费用:每千次请求 US$0.80 起,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

按品牌名获取任意公司的 Trustpilot 评价:星级、评价正文、日期和评价者信息,以干净的 JSON 返回。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 Trustpilot 评价 API 调用中有 99.5% 成功,响应时间中位数为 8.5 秒,共测量 871 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。