querystring必填
Search keyword or company name
https://api.sandbase.ai/v1/api/trustpilot/search-companiesSearch for companies by name or keyword. Returns basic company info including domain, trust score, star rating, and review count.
您的输出将显示在这里
完成输入,然后点击运行。
Returns Trustpilot companies that match a search keyword or company name. Each result includes the company domain, categories, trust score, star rating, review count, and a location object. The only required input is query.
curl -X POST "https://api.sandbase.ai/v1/api/trustpilot/search-companies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "airline"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword or company name |
limit | integer | No | Results per page (max 20) |
page | integer | No | Page number |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"companies": [
{
"categories": [
"Airline"
],
"domain": "www.lufthansa.com",
"id": "46d421dd000064000500ba73",
"location": {
"approximateArea": [
[
-180
]
],
"city": null,
"coordinates": {
"lat": 39.7837304,
"lon": -100.445882
},
"country": "United States",
"countryCode": "US",
"postcode": null,
"street": null
},
"name": "Lufthansa",
"review_count": 15266,
"stars": 1.5,
"trust_score": 1.3,
"verified": false,
"website_url": "https://www.lufthansa.com"
}
],
"total_hits": 2811,
"total_pages": 141
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.companies[].name | Company name as shown on Trustpilot. |
data.companies[].id | Trustpilot ID of the company. It is a 24-character hex string. |
data.companies[].domain / data.companies[].website_url | Company website as a bare domain and as a full URL. |
data.companies[].trust_score | Trustpilot TrustScore of the company, for example 1.3. |
data.companies[].stars | Star rating of the company, for example 1.5. |
data.companies[].review_count | Number of reviews the company has on Trustpilot. |
data.companies[].categories[] | Category labels attached to the company, such as Airline or Travel Agency. |
data.companies[].verified | Boolean flag that shows whether the company profile is verified. |
data.companies[].location.country / data.companies[].location.countryCode | Country name and country code in the location data. city, street, and postcode can be null. |
data.total_hits / data.total_pages | Total number of matching companies and the number of pages at the current page size. |
page and limit to move through results. limit has a maximum of 20.domain or id to the next call. Trustpilot Company Overview gives more detail on one company.$0.03 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/trustpilot/search-companies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "airline"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
querystring必填Search keyword or company name
pageintegerPage number
limitintegerResults per page (max 20)
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Trustpilot | $0.03 每次调用 | 异步 JSON |
Trustpilot | $0.01 每次调用 | 异步 JSON |
Trustpilot | $0.01 每次调用 | 异步 JSON |
Trustpilot | $0.03 每次调用 | 异步 JSON |
Trustpilot | $0.05 每次调用 | 异步 JSON |
Trustpilot | 每次调用从 $0.0008 起 | JSON |
指南:Best Review API in 2026: G2 and Trustpilot Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/trustpilot/search-companies 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.03,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:query (string)。 可选:page (integer) 和 limit (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。 本页的 README 包含一个示例响应。
不需要。Trustpilot Search Companies 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Trustpilot API 访问权限。