# 抖音 直播商品搜索 API (douyin.live_product_search)

- Canonical page: https://everyinfra.com/douyin-api/live_product_search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "live_product_search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 3, max 3 per call
- Mode: sync; add "mode": "async" for slow tasks

抖音直播商品搜索按 `keyword` 在抖音商城里找商品，只返回采集时带 live 标记和直播间 ID 的那些，默认和单次上限都是 3 条。每行带 `product_id`、`sku_id`、`title`、`image_url`、以人民币元计的 `price_cny`、`shop_id`，以及挂载它的直播间 `live_room_id`。它回答「这个品类的商品当前有哪些挂在直播间里」，适合品类选品。

`live_room_id` 只表示采集时那一刻挂载该商品的直播间；`is_live_product` 表示这行是当前直播商品搜索明确返回的，不是历史直播归因，所以不能用它回答「某位达人以前带过什么货」。`source_keyword` 记录这一行命中的搜索词。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 抖音商城商品关键词；只返回采集时带 live 标记和直播间 ID 的商品，不代表指定达人的历史带货记录。 |
| limit | integer (1–3) | no | 3 | 这次调用最多返回的条数，整数，1–3；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| product_id | 抖音商城商品稳定 ID。 |
| sku_id | 抖音商城 SKU ID；与商品 product_id 不是同一标识。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| price_cny | 商品展示价格，人民币元。 |
| shop_id | 抖音商城店铺 ID。 |
| live_room_id | 采集时挂载该商品的直播间 ID；只表示当前直播搜索命中。 |
| is_live_product | 是否由当前直播商品搜索明确返回；不是历史直播归因。 |
| source_keyword | 本行命中的搜索关键词。 |
| 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": "douyin",
  "action": "live_product_search",
  "params": {
    "keyword": "美食"
  }
}'
```

```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": "douyin",
        "action": "live_product_search",
        "params": {
            "keyword": "美食",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 3. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "live_product_search",
  "results": [
    {
      "product_id": "3758214740665565640",
      "sku_id": "3614004672311810",
      "title": "法丽兹巧克力夹心曲奇抹茶饼干盒装办公室下午茶零食休闲食品小吃",
      "image_url": "https://p3-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_327d8faf8492a4d6722ddbd815f29bdb_sx_412657_www800-800~tplv-5mmsx3fupr-resize:480:480.jpeg?biz_tag=ecom_search&s=PackSource_EcomSearch&sc=ecom_hybrid",
      "price_cny": 0.01,
      "shop_id": "38484121",
      "live_room_id": "7705130303337106202",
      "is_live_product": true,
      "source_keyword": "美食",
      "platform": "douyin"
    },
    {
      "product_id": "3681066470168723459",
      "sku_id": "3402912365175042",
      "title": "飞旺臭干子辣条正宗湖南长沙臭干子网红校园童年零食麻辣休闲小吃",
      "image_url": "https://p26-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_80a5aca284dcf0e715408640274c1278_sx_627143_www800-800~tplv-5mmsx3fupr-resize:480:480.jpeg?biz_tag=ecom_search&s=PackSource_EcomSearch&sc=ecom_hybrid",
      "price_cny": 0.01,
      "shop_id": "17049985",
      "live_room_id": "7705303723047701257",
      "is_live_product": true,
      "source_keyword": "美食",
      "platform": "douyin"
    }
  ],
  "count": 3,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 一次能拿到几条商品，想多看怎么办？

默认和上限都是 3 条。要看更多商品，就拿几个不同的商品词分别搜一次，汇总时靠 `source_keyword` 认出每一行是哪个词带出来的，再按 `product_id` 去掉重复的商品。

### `is_live_product` 为真能说明某个达人带过这个商品吗？

不能。它只表示这一行是当前直播商品搜索明确返回的，不是历史直播归因；`keyword` 是商品关键词，也不是按达人查询。

### `product_id` 和 `sku_id` 用哪个做标识？

按商品汇总用 `product_id`，它是抖音商城商品的稳定 ID；`sku_id` 是 SKU 的 ID，与 `product_id` 不是同一个标识，要精确到规格时才用。店铺用 `shop_id` 区分。

## Also

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