# TikTok 商城类目商品 API (tiktok.shop_category_products)

- Canonical page: https://everyinfra.com/tiktok-api/shop_category_products
- Endpoint: POST /api/v1/social with {"platform": "tiktok", "action": "shop_category_products", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of up to 15 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

TikTok Shop 类目商品按 `category_id` 列出商城某个类目下的商品，带价格、已售件数、评分、评价数和所属店铺。它回答「这个类目里正在卖什么、头部商品是什么价位」，适合选品时快速扫一遍赛道、观察新品进场，或者给一个类目画价格带分布。一级、二级、三级类目都能查，越细的类目结果越聚焦。它不给名次，要看单个站点的热销排名，用热销榜那一页；热销榜没有美国站，美国站的商品用这一页读。

`country` 选商城站点，不传按美国站；每页条数不固定，用 `page_token` 继续往下读。每页最多 15 条，令牌 24 小时内有效，每页算一次调用，`limit` 会被接收但不起作用。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category_id | not declared | yes | not declared | TikTok Shop 类目 ID，纯数字，如 601450（美妆个护）；一级、二级、三级类目都可以。 |
| 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 小时有效，每页算一次调用。每页约 15 个商品。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| sold_count | 销量。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算 —— 直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| shop_name | 小店名称（TikTok Shop 用）。 |
| shop_id | 店铺 ID（shop_products），可以直接传给 shop_products 的 shop_id。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| next_page_token | platform-native meaning |

## 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_category_products",
  "params": {
    "category_id": "601450"
  }
}'
```

```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_category_products",
        "params": {
            "category_id": "601450",
        },
    },
    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_category_products",
  "results": [
    {
      "id": …,
      "url": …,
      "name": …,
      "price": …,
      "original_price": …,
      "currency": …,
      "sold_count": …,
      "rating": …,
      "rating_scale": …,
      "review_count": …,
      "shop_name": …,
      "shop_id": …,
      "image_url": …,
      "platform": …,
      "next_page_token": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 类目 ID 去哪里找？

类目 ID 是 TikTok Shop 商城类目页链接里的那串数字，例如美妆个护是 601450。建议先从一级类目开始查，看过结果里的商品构成后，再换成更细的二级、三级类目，把范围收窄到真正要研究的细分品类。`category_id` 只认纯数字的类目 ID，不认类目名称。站点用 `country` 选，可选 US、SG、MY、PH、TH、VN、ID、JP、MX。

### 怎么从类目商品追到背后的店铺？

每件商品都带 `shop_id` 和 `shop_name`。挑出感兴趣的商品后，把 `shop_id` 交给 TikTok Shop 的店铺商品能力，就能看到这家店的完整货架，判断它是专做这个类目的垂直店，还是什么都卖的杂货店。同一页里的商品按 `shop_id` 归类，就能看出这个类目被几家店分走；同一家店的商品放在一起，对比 `sold_count` 和 `review_count`，能看出销量是集中在一两件商品上，还是铺在整个货架上。

### `rating` 是几分制？

`rating_scale` 写明了评分的满分，TikTok Shop 一般是五分制；`review_count` 是评价数。评价很少的商品评分波动大，筛选高分商品时，建议同时设一个最低评价数的门槛，免得被几条好评撑起来的高分误导。价格看 `price`，它不含货币符号，币种看 `currency`，为 null 时不要假定币种；`original_price` 是原价，可以和 `price` 放在一起看。`sold_count` 是销量，按它自己排序，就能挑出这一页的头部商品。

## 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
