querystringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
querystringbắt buộcSearch keyword or company name
pageintegerPage number
limitintegerResults per page (max 20)
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Trustpilot Search CompaniesAPI này Trustpilot | $0.03 mỗi lần gọi | JSON bất đồng bộ |
Trustpilot | $0.01 mỗi lần gọi | JSON bất đồng bộ |
Trustpilot | $0.01 mỗi lần gọi | JSON bất đồng bộ |
Trustpilot | $0.03 mỗi lần gọi | JSON bất đồng bộ |
Trustpilot | $0.05 mỗi lần gọi | JSON bất đồng bộ |
Trustpilot | Từ $0.0008 mỗi lần gọi | JSON |
Hướng dẫn:Best Review API in 2026: G2 and Trustpilot Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/trustpilot/search-companies với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.03 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: query (string). Tùy chọn: page (integer) và limit (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Kết quả JSON. Endpoint này chạy bất đồng bộ, nên phản hồi sẽ cho bạn biết cách lấy kết quả hoàn tất. README trên trang này có ví dụ phản hồi.
Không. Trustpilot Search Companies chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Trustpilot.