# 淘宝 评价 API (taobao.reviews)

- Canonical page: https://everyinfra.com/taobao-api/reviews
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "taobao", "action": "reviews", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: every 20 rows you ask for count as one call; blocks that come back with no rows are not charged
- Returns: list, default 20, max 100 per call
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; each page is billed by its row count, one call per 20 rows, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

淘宝评价接口按商品读取买家评价，每条带评价正文、评分、发布时间、购买的规格、买家昵称、评价图片，以及卖家对这条评价的回复。它回答「买家对这件商品满意吗、问题集中在哪」，适合做口碑分析、差评归因，以及提炼竞品的卖点和痛点。

`url` 和商品详情用的是同一种商品标识：数字 ID、商品链接或含唯一商品链接的分享文本。`sku` 能把评价对应到具体规格，适合比较不同颜色、尺码的反馈；`seller_reply` 能看出商家怎么处理差评。比较评分前先看同一行的 `rating_scale`。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | product_detail / reviews / questions 接收商品数字 ID、淘宝/天猫商品 URL，或含唯一商品 URL 的分享文本；e.tb.cn / m.tb.cn 短链仅在可安全解析为商品页时接受。纯淘口令、过期链接和非商品页会拒绝。 |
| page | integer | no | not declared | 评价的页码，1–50，新的在前，一页通常 20 条（末页更少）。带 page 就直接取这一页、整页给，limit 不起作用；不带 page 和以前一样从第 1 页开始，用 next_page_token 往下翻。每页算一次调用；翻过末页返回空结果、不扣费。淘宝每个商品最多给前 1,000 条评价（第 50 页），51 起扣费前拒。pagination.has_more 为 true 就还有下一页：接着传 page 加 1，或把 next_page_token 作为 page_token 传回；page 和 page_token 同传时以 page_token 为准。翻页期间有新评价进来，相邻两页可能有一两条重复，合并时按评价 id 去重。 |
| page_token | not declared | no | not declared | 翻页令牌。第 1 页不用传；响应里有 next_page_token 时，把它原样作为 page_token 传回就拿下一页，其余参数保持不变（limit 可以改）。也可以不用令牌，直接传 page 要第几页（见 page）；两者同传时以 page_token 为准。令牌 24 小时内有效，只能用于同一个商品、同一个账户；换了商品会被拒（422，不扣费）。响应里没有 next_page_token（pagination.has_more 为 false）就是到底了。每页给 limit 条（默认 20，最多 100），下一页从上一页最后一条之后接着给。评价新的在前；翻页期间有新评价进来，相邻两页可能有一两条重复，合并时按评价 id 去重。每页单独计费，按这一页的条数算：每 20 条算一次调用（20 条一次，21–40 条两次，100 条五次）；返回不足时没用到的几次退回，一条都没返回的空页不扣费。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| sku | 规格。 |
| buy_count | 购买人数。 |
| useful_count | 评价被标有用次数。 |
| author_name | 作者昵称（显示名）。 |
| author_avatar_url | 评价人头像链接（reviews）。 |
| images | 图片链接列表：product_detail、search 是商品图（search 不含主图 image_url），reviews 是买家晒图（没晒图时没有这个字段）。 |
| review_append | 买家追评正文（有多条时按时间顺序换行拼接；没有追评时字段不出现）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| next_page_token | 翻页令牌：作为下一次请求的 page_token 原样传回取下一页（其余参数不变，24 小时内有效，只能用于同一个商品）；同一页每行的值相同，响应顶层也有同一个 next_page_token。没有该字段即到底。 |
| seller_reply | 卖家对该评价的回复。 |

## 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": "taobao",
  "action": "reviews",
  "params": {
    "url": "https://item.taobao.com/item.htm?id=744983869996"
  }
}'
```

```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": "taobao",
        "action": "reviews",
        "params": {
            "url": "https://item.taobao.com/item.htm?id=744983869996",
        },
    },
    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": "taobao",
  "action": "reviews",
  "results": [
    {
      "text": "質量過關，用着挺放心的，之前那個用了幾年時間，用不了，綠聯質量太好了",
      "rating": 5,
      "posted_at": "2026.08.27 21:28",
      "platform": "taobao",
      "rating_scale": 5
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 1,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 评价能按规格区分吗？

能。每条评价的 `sku` 是买家购买的规格，按它分组就能比较不同颜色、尺码或套餐的口碑；`useful_count` 是评价被标为有用的次数，可以帮你挑出更有参考价值的评价。

### 怎么看商家对差评的处理？

看 `seller_reply`，它是卖家对这条评价的回复。把低分评价和卖家回复放在一起读，能看出常见问题是什么、商家通常怎么处理。

### 能翻页、直接跳到第几页吗？怎么算钱？

能，两种翻法。按页码：传 `page`（1–50）直接取那一页，一页通常 20 条，每页算一次调用，`limit` 不起作用。按令牌：把响应里的 `next_page_token` 原样作为 `page_token` 传回，每页给 `limit` 条（默认 20，最多 100），每 20 条算一次调用，返回不足时没用到的几次退回。两种都是响应里有 `next_page_token` 就还有下一页，空页不扣费，同传时以 `page_token` 为准。淘宝每个商品最多给前 1,000 条评价。

## Also

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