# 抖音 商品搜索 API (douyin.product_search)

- Canonical page: https://everyinfra.com/douyin-api/product_search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "product_search", "params": {...}}
- Price: $0.01333 per call ($13.33 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 5, max 5 per call
- 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=douyin&action=product_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 抖音商城商品关键词；返回的是商品搜索结果，不能解释成某位达人历史带货商品。 |
| limit | integer (1–5) | no | 5 | 这次调用最多返回的条数，整数，1–5；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| product_id | 抖音商城商品稳定 ID。 |
| promotion_id | 抖音带货计划中的推广 ID。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| white_image_url | 商品白底图 URL。 |
| price_cny | 商品展示价格，人民币元。 |
| price_cny_minor | 商品展示价格，人民币分的整数值。 |
| price_label | 商品价格标签，例如到手价。 |
| monthly_sales | 商品近 30 天销量。 |
| good_review_ratio | 商品好评率百分比。 |
| sales_trend | 商品近 30 天每日销量序列。 |
| category_path | 商品从一级到叶子类目的名称路径。 |
| category_ids | 商品类目 ID 路径，与 category_path 同序（product_search）。 |
| category_depth | 商品类目路径深度。 |
| shop_id | 抖音商城店铺 ID。 |
| shop_name | 抖音商城店铺名称。 |
| shop_logo_url | 店铺 Logo URL，可能带有效期。 |
| shop_score | 店铺公开体验分（如有）。 |
| commission_rate_percent | 公开带货佣金比例。 |
| commission_cny | 按当前展示价计算的佣金金额，人民币。 |
| cooperating_creator_count | 商品带货计划显示的合作达人数；不能反推某位指定达人卖过该商品。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| source_keyword | 本行命中的搜索关键词。 |
| search_rank | 在这次关键词搜索结果里的名次（从 1 开始）：product_search 行是商品，search 行是作品，hashtag_search 行是话题。 |
| recommend_reason | 商品搜索结果上的推荐理由原文（product_search）；没有时没有这个键。 |
| 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": "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": "product_search",
        "params": {
            "keyword": "美食",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "product_search",
  "results": [
    {
      "product_id": "3831023923881967796",
      "promotion_id": "3848090182540722407",
      "title": "新晒云南紫皮独头蒜红皮干蒜新鲜大蒜头农家日晒蒜香浓调味蔬菜",
      "url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3831023923881967796&origin_type=2631",
      "image_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_884e7a0120de46a9b2ac8e21fab47fd3_sx_133438_www800-800",
      "price_cny": 6.5,
      "price_cny_minor": 650,
      "price_label": "到手价",
      "monthly_sales": 4923,
      "good_review_ratio": 85.41076487252124,
      "sales_trend": [
        {
          "date": "20260925",
          "units": 66
        },
        {
          "date": "20260926",
          "units": 81
        },
        {
          "date": "20260927",
          "units": 117
        }
      ],
      "category_path": [
        "水果蔬菜",
        "蔬菜/豆制品",
        "蒜"
      ],
      "category_ids": [
        "1000001991",
        "1000001994",
        "1000009708"
      ],
      "category_depth": 3,
      "shop_id": 22962988,
      "shop_name": "云南高原特色美食",
      "shop_logo_url": "https://p3-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/70a8e9cd1a9547e8a8bed715d69eddfc~tplv-6vegkygxbk-s:750.image?lk3s=c9156bde&x-expires=1824403460&x-signature=wtJgFMyZAeSjYrd6OM%2Fm69cUIdU%3D",
      "shop_score": 78,
      "commission_rate_percent": 5,
      "commission_cny": 0.33,
      "cooperating_creator_count": 102,
      "tags": [
        "消费券",
        "现货"
      ],
      "source_keyword": "美食",
      "search_rank": 1,
      "platform": "douyin"
    },
    {
      "product_id": "3791042363200241770",
      "promotion_id": "3791047461418696801",
      "title": "《抢六罐》新货辣椒桂皮香叶白芷辣椒花椒家庭常用辣椒",
      "url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3791042363200241770&origin_type=2631",
      "image_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/png_m_0d2d9da52dd42997f1a21e04b363d33c_sx_2099503_www1080-1080",
      "price_cny": 9.9,
      "price_cny_minor": 990,
      "price_label": "到手价",
      "monthly_sales": 101785,
      "good_review_ratio": 88.52033748898124,
      "sales_trend": [
        {
          "date": "20260925",
          "units": 2734
        },
        {
          "date": "20260926",
          "units": 2955
        },
        {
          "date": "20260927",
          "units": 2865
        }
      ],
      "category_path": [
        "水果蔬菜",
        "蔬菜/豆制品",
        "辣椒"
      ],
      "category_ids": [
        "1000001991",
        "1000001994",
        "1000009718"
      ],
      "category_depth": 3,
      "shop_id": 235766548,
      "shop_name": "千梦优品供应链",
      "shop_logo_url": "https://p6-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/5966b135e7fa4889aa95760454e408d4~tplv-6vegkygxbk-s:750.image?lk3s=c9156bde&x-expires=1824402090&x-signature=5pF%2BEMnDOYLOiqvL92G7bfe8Ti0%3D",
      "shop_score": 92,
      "commission_rate_percent": 30,
      "commission_cny": 2.97,
      "cooperating_creator_count": 4174,
      "tags": [
        "高结算率",
        "消费券",
        "现货"
      ],
      "source_keyword": "美食",
      "search_rank": 2,
      "recommend_reason": "辣椒视频带货热推榜·第1名",
      "platform": "douyin"
    }
  ],
  "count": 5,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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