# Trustpilot 主页或对象详情 API (trustpilot.profile)

- Canonical page: https://everyinfra.com/trustpilot-api/profile
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "trustpilot", "action": "profile", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=trustpilot&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| company | not declared | yes | not declared | 待查公司的官网域名，例如 example.com，或完整 Trustpilot /review/域名 链接；不是任意公司中文名。profile 从一条评论的关联信息整理公司评分与资料；评论筛选对公司资料不起作用。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| domain | 域名。Trustpilot 以域名为主键组织商家。 |
| url | 该记录在原平台上的可访问链接。 |
| trust_score | TrustScore，**1–5 分制**，是加权算分不是简单平均。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| categories | 商家分类。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "trustpilot",
  "action": "profile",
  "params": {
    "company": "example.com"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "trustpilot",
        "action": "profile",
        "params": {
            "company": "example.com",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "trustpilot",
  "action": "profile",
  "results": {
    "name": "Stealth",
    "domain": "www.example.com",
    "url": "https://www.trustpilot.com/review/www.example.com",
    "trust_score": 3.6,
    "rating": 3.5,
    "review_count": 24,
    "categories": [
      "Electronics & Technology"
    ],
    "platform": "trustpilot",
    "rating_scale": 5
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=trustpilot
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
