# Shopee 评价 API (shopee.reviews)

- Canonical page: [https://everyinfra.com/shopee-api/reviews](https://everyinfra.com/shopee-api/reviews?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "shopee", "action": "reviews", "params": {...}}
- Price: $0.01307 per call ($13.07 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=shopee&action=reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Shopee 商品完整链接，路径需含 i.店铺ID.商品ID 或 /product/店铺ID/商品ID。 |
| country | not declared | no | not declared | 商品所属商城的地区代码，支持 tw/vn/sg/my/ph/th/id/br/mx；通常省略，由链接的域名识别。 |
| page_token | not declared | no | not declared | 翻页令牌。第 1 页不用传；响应里有 next_page_token 时原样作 page_token 传回拿下一页，其余参数保持不变。每页算一次调用。这页没读到时返回 503、不扣费，用同样的参数（含同一个 page_token）重试。 |
| rating | integer | no | not declared | 只要某个星级的评价：1、2、3、4 或 5。不传是全部星级，从 5 星翻到 1 星。不能和 with_media 同时传。 |
| with_media | not declared | no | not declared | 传 true 只要带图或视频的评价，一页可能不满 20 条。不能和 rating 同时传。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| review_id | 评价 ID。 |
| item_id | 商品 ID。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| video_urls | 评价带的视频链接。 |
| sku_id | 买家买的规格的 ID。 |
| variant | 买家买的规格（如颜色、型号）。 |
| author_name | 买家昵称；匿名评价是平台打了星号的写法。 |
| author_avatar_url | 买家头像；匿名评价没有。 |
| is_anonymous | 是否匿名评价。 |
| is_verified_purchase | 是否来自真实订单（Shopee 的评价都来自订单）。 |
| helpful_count | 觉得这条评价有用的人数。 |
| seller_reply | 卖家对这条评价的回复。 |
| seller_reply_at | 卖家回复的时间（ISO 8601，UTC）。 |
| product_quality_rating | 买家给商品质量打的分（1–5）。 |
| seller_service_rating | 买家给卖家服务打的分（1–5）。 |
| delivery_rating | 买家给物流打的分（1–5）。 |
| buyer_tags | 买家选的评价标签。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "shopee",
  "action": "reviews",
  "params": {
    "url": "https://shopee.sg/product/285901479/15134762530"
  }
}'
```

```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": "shopee",
        "action": "reviews",
        "params": {
            "url": "https://shopee.sg/product/285901479/15134762530",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "shopee",
  "action": "reviews",
  "results": [
    {
      "review_id": …,
      "item_id": …,
      "rating": …,
      "rating_scale": …,
      "text": …,
      "posted_at": …,
      "image_urls": …,
      "video_urls": …,
      "sku_id": …,
      "variant": …,
      "author_name": …,
      "author_avatar_url": …,
      "is_anonymous": …,
      "is_verified_purchase": …,
      "helpful_count": …,
      "seller_reply": …,
      "seller_reply_at": …,
      "product_quality_rating": …,
      "seller_service_rating": …,
      "delivery_rating": …,
      "buyer_tags": …,
      "country": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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