Trustpilot Company Search
Trustpilot Company Search 用于获取 Trustpilot 企业搜索结果。
- 按关键词抓取企业列表
- 支持按页码继续读取搜索结果
- 返回企业名称、评分、评论数和分类信息
- 适合做品牌检索和定制化企业库整理
使用 XCrawl 获取 Trustpilot 企业搜索结果
使用方式
curl -s -X POST 'https://run.xcrawl.com/v1/data' \
-H 'Authorization: Bearer $XCRAWL_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"engine": "trustpilot_search",
"location": "US",
"keyword_list": ["google"],
"start_page": 1,
"pages": 1
}'请求参数说明:
engine固定为trustpilot_searchlocation用于指定搜索地区keyword_list用于传入一个或多个品牌关键词start_page用于指定起始页码pages用于指定抓取页数
响应示例
{
"result": [
{
"url": "https://www.trustpilot.com/search?page=1&query=google",
"current_page": 1,
"total_pages": 37,
"companys": [
{
"name": "Google",
"review_url": "https://www.trustpilot.com/review/maps.google.com",
"stars": 4,
"total_reviews": 5
}
]
}
]
}参数说明
必填参数
| 参数 | 类型 | 说明 |
|---|---|---|
location | string | 指定搜索地区。 |
keyword_list | array | 传入一个或多个品牌关键词。 |
start_page | number | 起始页码。 |
pages | number | 抓取页数。 |
参数补充说明
location默认值为USstart_page默认值为1pages默认值为1
响应字段
响应数据位于 result[]。
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 当前搜索页地址。 |
current_page | number | 当前页码。 |
total_pages | number | 总页数。 |
companys | array | 企业结果列表。 |
企业字段
companys[] 中每个元素包含以下字段:
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 企业 ID。 |
name | string | 企业名称。 |
website_url | string | 企业官网地址。 |
review_url | string | Trustpilot 评论页地址。 |
stars | number | 星级。 |
total_reviews | number | 评论总数。 |
country | string | 国家或地区。 |
categories | array | 企业分类列表。 |
