# TikTok 商城热销榜 API (tiktok.shop_hot_products)

- Canonical page: https://everyinfra.com/tiktok-api/shop_hot_products
- Endpoint: POST /api/v1/social with {"platform": "tiktok", "action": "shop_hot_products", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 100 per call (larger values are capped)
- Mode: sync; add "mode": "async" for slow tasks

TikTok Shop 热销榜按站点给出当前的热销商品，每件带 `rank` 名次、名称、价格和原价、币种、销量 `sold_count`、评分、评价数、店铺和图片。它回答「这个市场现在什么最好卖」，适合做选品起点、核对竞品是否上榜，或者跨站点比较同一类商品的价位。

`country` 默认马来西亚站，可选印度尼西亚、日本、墨西哥、菲律宾、新加坡、泰国和越南，美国、英国、巴西站没有热销榜。榜单不分类目，要看某个类目，或者看美国站的商品，用类目商品那一页，那边每页约 15 条、按类目翻页读。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| country | not declared | no | not declared | 商城地区代码：ID、JP、MX、MY（默认）、PH、SG、TH、VN。美国、英国、巴西站没有热销榜，传了会在扣费前被拒。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限照收，按上限返回。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 名次，从 1 起（music_chart / shop_hot_products）。 |
| 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）。 |

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

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

## FAQ

### 为什么传美国站会失败？

美国、英国、巴西站没有热销榜，这三个站点传进 `country` 会在扣费前被拒。要看美国站的商品，改用商城类目商品，按类目 ID 逐类读取。

### 热销榜最多能取多少条？

`limit` 默认 20，上限 100，传更大的数也按 100 条返回。这一项没有 `page_token`，前 100 名就是单次能读到的全部；想换一批商品，换站点，或者改用类目商品。榜单没有类目参数，读不到某个类目内部的排名。

### 榜单里的商品怎么追到店铺？

每行带 `shop_id` 和 `shop_name`，`shop_id` 可以直接填进店铺商品能力的 shop_id 参数。读价格时，`price` 不含货币符号，币种看 `currency`，它为 null 就不要假定币种；`rating` 要对着同一行的 `rating_scale` 看。

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