Trustpilot API
Trustpilot 评价 API
按品牌名获取任意公司的 Trustpilot 评价:星级、评价正文、日期和评价者信息,以干净的 JSON 返回。
POST/v1/run/trustpilot.reviews
可用率
99.54%
30d · 871 次调用
请求数
880
30d · 按周,近 12 周
响应时间
8.5s
中位数 · 30d
服务商网络
按流量排序的服务商
服务商
每次请求封顶 US$0.1651 条结果US$0.03366100 条结果US$0.099200 条结果US$0.165(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。
调用方式
发出你的第一个请求
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}'| 字段 | 类型 | 示例值 |
|---|---|---|
| 请求体 | ||
| company | string | "stripe.com"要获取评价的品牌名或 Trustpilot 评价页 URL(例如 nike 或 https://www.trustpilot.com/review/nike.com)。 |
| countries | array | 只返回来自这些 ISO 3166-1 alpha-2 国家的评价者的评价(例如 ["US", "GB"])。省略此字段可获取所有国家,并保持最低价格;按国家筛选会路由到最贵的数据源。 |
| languages | array | 只返回这些 ISO 639-1 语言的评价(例如 ["en", "de"])。省略此字段可获取所有语言,并保持最低价格;按语言筛选会路由到最贵的数据源。 |
| limit | integer | 3最多返回的结果数量(1-200,默认 200)。Trustpilot 每家公司最多提供 200 条评价。 |
| requireFields | array | Optional; 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. |
| sortBy | enum | 评价排序:auto、relevancy 或 recent(例如 recent)。 |
| stars | string | 只返回某一个星级的评价,范围 1 到 5(例如 5)。 |
| startDate | string | 只返回此日期当天或之后的评价(含当天),格式为 YYYY-MM-DD(例如 2026-01-01)。省略此字段可保持最低价格;设置日期下限会路由到最贵的数据源。 |
| verifiedOnly | boolean | 设为 true 只返回已验证的评价(例如 true)。省略此字段或传 false 可保持最低价格;true 会路由到更贵的数据源。 |
| 响应 | ||
| data | object | Result payload, or null when nothing was found. |
| data.items | object[] | 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[].author | string | Display name of the reviewer. |
| data.items[].authorCountry | string | Two-letter country code of the reviewer. |
| data.items[].avatarUrl可设为必填 | string | URL of the reviewer's avatar image, or null when the reviewer has no photo. |
| data.items[].createdUtc | number | UTC 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[].language | string | Language code of the review text, e.g. en. |
| data.items[].ownerResponseText | string | The company's public reply to the review. Absent when the company has not replied. |
| data.items[].ownerResponseUtc | number | UTC 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[].rating | number | Star rating (1-5). |
| data.items[].reviewerReviewsCount | integer | Number of reviews the reviewer has written on Trustpilot. |
| data.items[].text | string | Review body text. Populated whenever the provider has data for the entity. |
| data.items[].title | string | Review title or headline. Populated whenever the provider has data for the entity. |
| data.items[].url | string | Canonical review URL. Populated whenever the provider has data for the entity. |
| data.items[].verified | boolean | Whether the reviewer is verified. |
| found | boolean | Whether 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. |
| 价格 | ||
| 每次请求价格 | USD | US$0.0008 |
| 价格(/千次请求) | USD | US$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 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。