# 抖音 店铺商品 API (douyin.shop_products)

- Canonical page: [https://everyinfra.com/douyin-api/shop_products](https://everyinfra.com/douyin-api/shop_products?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "shop_products", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 10 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- 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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| shop_id | not declared | yes | not declared | 抖音商城店铺的数字 ID，取自 product_search 或 product_detail 返回行的 shop_id；不是店铺名。 |
| page | integer | no | not declared | 页码，从 1 开始，一页 10 件商品；总页数看返回行的 shop_page_count。带 page 直接取这一页、算一次调用；同时传了 page_token 以令牌为准。 |
| page_token | not declared | no | not declared | 翻页令牌。第 1 页不用传；响应里有 next_page_token 时，把它原样作为 page_token 传回就拿下一页，其余参数不变。一页 10 件商品、算一次调用；令牌 24 小时内有效；翻到最后一页时没有 next_page_token。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| next_page_token | 翻页令牌（search / product_search / shop_products / user_posts / comments / comment_replies / billboard_video_hot / billboard_low_fan_explosion / billboard_high_completion / billboard_account_search / music_search / billboard_rise_list / billboard_topic_hot）：作为下一次请求的 page_token 原样传回取下一页（其余参数不变，24 小时内有效）；同一页每行的值相同，响应顶层也有同一个 next_page_token。没有该字段即到底。评论翻页逐页覆盖全部顶层评论。 |
| product_id | 抖音商城商品稳定 ID。 |
| promotion_id | 抖音带货计划中的推广 ID。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| price_cny | 商品展示价格，人民币元。 |
| price_cny_minor | 商品展示价格，人民币分的整数值。 |
| monthly_sales | 商品近 30 天销量。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| shop_id | 抖音商城店铺 ID。 |
| shop_product_count | 这家店一共有多少件商品（shop_products）；每行相同。 |
| shop_page_count | 这家店的商品一共多少页（shop_products，一页 10 件）；每行相同。 |
| 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": "shop_products",
  "params": {
    "shop_id": "84535208"
  }
}'
```

```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": "shop_products",
        "params": {
            "shop_id": "84535208",
        },
    },
    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": "douyin",
  "action": "shop_products",
  "results": [
    {
      "next_page_token": …,
      "product_id": …,
      "promotion_id": …,
      "title": …,
      "url": …,
      "image_url": …,
      "price_cny": …,
      "price_cny_minor": …,
      "monthly_sales": …,
      "tags": …,
      "shop_id": …,
      "shop_product_count": …,
      "shop_page_count": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "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
