# TikTok 商品评价 API (tiktok.shop_product_reviews)

- Canonical page: https://everyinfra.com/tiktok-api/shop_product_reviews
- Endpoint: POST /api/v1/social with {"platform": "tiktok", "action": "shop_product_reviews", "params": {...}}
- Price: $0.000764 per call ($0.76 per 1,000 requests); failed 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=tiktok&action=shop_product_reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| product_id | not declared | yes | not declared | TikTok Shop 商品 ID，纯数字；或 shop.tiktok.com 的 /pdp/ 商品链接。 |
| country | not declared | no | not declared | 商品所在商城地区代码：US（默认）、SG、MY、PH、TH、VN、ID、JP、MX。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一次响应里的 next_page_token 原样传回，拿下一页；不传从第一页开始。令牌 24 小时有效，每页算一次调用。每页 20 条。 |
| rating | enum: 1 / 2 / 3 / 4 / 5 | no | not declared | 只看几星的评价：1 到 5；不传看全部。 |
| sort | enum: newest / recommended | no | not declared | 排序：newest（默认，最新的在前）或 recommended（平台推荐顺序）。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| 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 表示平台未公开。 |
| variant | 买家买的规格（shop_product_reviews），如颜色、香型。 |
| is_verified_purchase | 是否确认购买后写的评价（shop_product_reviews）。 |
| is_incentivized | 是否带激励的评价（shop_product_reviews），如晒图返券。 |
| image_urls | 图文（轮播）作品的每张图片地址（video_download）；只有图文作品有。 |
| author_name | 评价人名字（shop_product_reviews），平台已打码，如 n**h。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| product_id | platform-native meaning |
| next_page_token | platform-native meaning |
| 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": "tiktok",
  "action": "shop_product_reviews",
  "params": {
    "product_id": "1730991511457465439"
  }
}'
```

```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": "tiktok",
        "action": "shop_product_reviews",
        "params": {
            "product_id": "1730991511457465439",
        },
    },
    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": "tiktok",
  "action": "shop_product_reviews",
  "results": [
    {
      "id": …,
      "rating": …,
      "rating_scale": …,
      "text": …,
      "posted_at": …,
      "variant": …,
      "is_verified_purchase": …,
      "is_incentivized": …,
      "image_urls": …,
      "author_name": …,
      "country": …,
      "product_id": …,
      "next_page_token": …,
      "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=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
