# Douyin Collection posts API (douyin.mix_posts)

- Canonical page: [https://everyinfra.com/en/douyin-api/mix_posts](https://everyinfra.com/en/douyin-api/mix_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "mix_posts", "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 15 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=mix_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| mix_id | not declared | yes | not declared | Numeric Douyin collection ID, taken from the `mix_id` of a `user_mixes` row; a `https://www.douyin.com/collection/<ID>` link is accepted too. |
| page_token | not declared | no | not declared | Page token for `mix_posts`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `mix_id` unchanged. Tokens last 24 hours; the last page has no `next_page_token`. A page holds up to 15 videos, in episode order. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| media_type | Media type: video, or image for image posts. |
| video_url | Video playback URL (signed, expires; download promptly if you need to keep it). Null for image posts or when the source omits it. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| collect_count | Saves or favorites. null means not disclosed, not 0. |
| author_name | Author's display name. |
| author_id | Author's unique ID on the platform. |
| author_douyin_id | The author's Douyin ID. |
| author_bio | The author's profile bio (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows). |
| author_avatar_url | Author avatar image URL: the creator on search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows, the host on live_room, the commenter on comments rows. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_following_count | How many accounts the author follows (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows). |
| author_like_count | Total likes the author's profile has received (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts / transcript). |
| author_video_count | Total number of posts on the author's profile (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows). |
| author_is_verified | Whether the author is verified (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows; on live_room, whether the host is; on comments rows, whether the commenter is). |
| cover_image_url | Cover image URL: the cover of a video or image post on search, user_posts, posts_batch, related_posts, mix_posts, music_posts and media_links rows; the music cover on music_search and music_detail; the topic image on billboard_topic_hot; the collection cover on user_mixes; the room cover on live_room. Signed links expire. |
| video_width | Video frame width in pixels. |
| video_height | Video frame height in pixels. |
| video_bitrates | platform-native meaning |
| has_watermark | platform-native meaning |
| duration_sec | Video length in seconds. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| music | Background track: id, title, author, is_original (original sound or not), duration_sec, cover_url and play_url (audio link, may expire). Absent when there is no music information. |
| location | Location description passed through as is; the format varies by platform. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| is_deleted | True when the video has been deleted; present only when Douyin reports it on the row. |
| is_private | True when the video is visible only to its author (private); present only when Douyin reports it on the row. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| play_count | Real only on Hot Spot Treasure and mixes. On the boards billboard_video_hot, billboard_low_fan_explosion and billboard_high_completion it is Douyin's own play figure. On mix_posts it is the plays of that episode, and on user_mixes the plays of the whole collection. Elsewhere Douyin does not publish play counts, so the value is usually 0 and does not reflect real plays; judge reach by likes, comments and shares. |
| episode | Position of the video in the collection (`mix_posts`), counting from 1. |
| mix_episode_count | How many episodes the collection has in all (`mix_posts`); the same on every row. |

## 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": "mix_posts",
  "params": {
    "mix_id": "7631984690945067058"
  }
}'
```

```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": "mix_posts",
        "params": {
            "mix_id": "7631984690945067058",
        },
    },
    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": "mix_posts",
  "results": [
    {
      "id": …,
      "url": …,
      "text": …,
      "media_type": …,
      "video_url": …,
      "like_count": …,
      "comment_count": …,
      "share_count": …,
      "collect_count": …,
      "author_name": …,
      "author_id": …,
      "author_douyin_id": …,
      "author_bio": …,
      "author_avatar_url": …,
      "author_follower_count": …,
      "author_following_count": …,
      "author_like_count": …,
      "author_video_count": …,
      "author_is_verified": …,
      "cover_image_url": …,
      "video_width": …,
      "video_height": …,
      "video_bitrates": …,
      "has_watermark": …,
      "duration_sec": …,
      "duration_seconds": …,
      "hashtags": …,
      "posted_at": …,
      "title": …,
      "music": …,
      "location": …,
      "image_urls": …,
      "is_deleted": …,
      "is_private": …,
      "platform": …,
      "play_count": …,
      "episode": …,
      "mix_episode_count": …
    }
  ],
  "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
