# Douyin Product search API (douyin.product_search)

- Canonical page: https://everyinfra.com/en/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 | A Douyin product search phrase. Results form an independent product pool and do not establish that any specified creator promoted or sold those items. |
| limit | integer (1–5) | no | 5 | The most rows to return in this call, an integer from 1 to 5. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| product_id | Stable Douyin Mall product ID. |
| promotion_id | platform-native meaning |
| title | Title. null when the platform has no titles (for example text-only posts). |
| url | Link to the record on the platform. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| white_image_url | platform-native meaning |
| price_cny | Displayed product price in yuan. |
| price_cny_minor | platform-native meaning |
| price_label | platform-native meaning |
| monthly_sales | platform-native meaning |
| good_review_ratio | platform-native meaning |
| sales_trend | platform-native meaning |
| category_path | platform-native meaning |
| category_ids | Product category ID path, in the same order as category_path (product_search). |
| category_depth | platform-native meaning |
| shop_id | Douyin Mall shop ID. |
| shop_name | Douyin Mall shop name. |
| shop_logo_url | platform-native meaning |
| shop_score | platform-native meaning |
| commission_rate_percent | platform-native meaning |
| commission_cny | platform-native meaning |
| cooperating_creator_count | platform-native meaning |
| tags | Array of tags. An empty array, not null, when there are none. |
| source_keyword | The search term this row matched. |
| search_rank | platform-native meaning |
| recommend_reason | The recommendation reason shown on the product search result (product_search); absent when there is none. |
| platform | Source platform identifier, the same as platform in the request (for example 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
