# Douyin Related posts API (douyin.related_posts)

- Canonical page: [https://everyinfra.com/en/douyin-api/related_posts](https://everyinfra.com/en/douyin-api/related_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "related_posts", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=related_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | The Douyin video to find recommended videos for: a numeric video ID, a `https://www.douyin.com/video/<video_id>` link, a `v.douyin.com` short link or a whole share text that contains a short link. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

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

## 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": "related_posts",
  "params": {
    "url": "https://www.douyin.com/video/7633646113853104116"
  }
}'
```

```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": "related_posts",
        "params": {
            "url": "https://www.douyin.com/video/7633646113853104116",
        },
    },
    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": "related_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": …
    }
  ],
  "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
