# 抖音 作者的合集 API (douyin.user_mixes)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| user_id | not declared | yes | not declared | 要列合集的账号，抖音用户的 secUid（以 MS4w 开头），或用户主页链接 https://www.douyin.com/user/<secUid>；不收昵称、抖音号和短链。 |
| page_token | not declared | no | not declared | 翻页令牌。不传是第 1 页；之后把上一页响应里的 next_page_token 原样传回取下一页，其余参数不变。令牌 24 小时内有效；翻到底时没有 next_page_token。一页最多 20 个合集。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| mix_id | 抖音合集 ID（user_mixes、mix_detail），传给 mix_posts 的 mix_id 取合集里的作品。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| description | 简介或描述，通常比 text 短。 |
| url | 该记录在原平台上的可访问链接。 |
| cover_image_url | 封面图链接：search / user_posts / posts_batch / related_posts / mix_posts / music_posts / media_links 是作品封面，music_search / music_detail 是音乐封面，billboard_topic_hot 是话题配图，user_mixes 是合集封面，live_room 是直播间封面；带签名的会过期。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_name | 作者昵称（显示名）。 |
| episode_count | 一共几集：user_mixes、mix_detail 是合集的集数，series_feed、series_detail、user_series 是短剧的总集数。 |
| play_count | 仅热点宝视频榜单和合集上是真实播放数。在 billboard_video_hot、billboard_low_fan_explosion、billboard_high_completion 上是抖音平台自己统计的播放数，mix_posts 是这一集作品的播放数，user_mixes 是整个合集的播放数；其余能力上抖音不对外公开播放量，值多为 0，不代表真实播放，热度请看点赞、评论、分享数。 |
| created_at | 创建时间，格式同 posted_at。 |
| updated_at | 最近一次更新的时间（ISO 8601，UTC）：user_mixes、mix_detail 是合集的，series_feed、series_detail、user_series 是短剧的。 |
| mix_count | 这个作者一共有几个合集（user_mixes），每行相同；有的账号取到的合集比这个数少。 |
| 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": "user_mixes",
  "params": {
    "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS"
  }
}'
```

```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": "user_mixes",
        "params": {
            "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS",
        },
    },
    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": "user_mixes",
  "results": [
    {
      "mix_id": …,
      "name": …,
      "description": …,
      "url": …,
      "cover_image_url": …,
      "author_id": …,
      "author_name": …,
      "episode_count": …,
      "play_count": …,
      "created_at": …,
      "updated_at": …,
      "mix_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
