# 抖音 评论回复 API (douyin.comment_replies)

- Canonical page: [https://everyinfra.com/douyin-api/comment_replies](https://everyinfra.com/douyin-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "comment_replies", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: every 20 rows you ask for count as one call; blocks that come back with no rows are not charged
- Returns: list, default 20, max 100 per call
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; each page is billed by its row count, one call per 20 rows, 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=comment_replies

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 评论所在的抖音视频链接（https://www.douyin.com/video/<视频ID>）或纯数字视频 ID，和取这条评论时 comments 用的是同一个视频。 |
| comment_id | not declared | yes | not declared | 要取回复的那条顶层评论的 ID（纯数字），取自 comments 返回的 id；reply_count 大于 0 的评论才有回复。 |
| page_token | not declared | no | not declared | 翻页令牌。第一页传空字符串 page_token=""，之后把上一页响应里的 next_page_token 原样传回，其余参数不变；每页最多 20 条回复，按条数分档计费（每 20 条算一次，一条都没返回不扣费）。令牌 24 小时内有效，只能在同一账户、同一组参数下使用；翻到底时响应里没有 next_page_token。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## 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。没有该字段即到底。评论翻页逐页覆盖全部顶层评论。 |
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| author_name | 作者昵称（显示名）。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_uid | 作者（评论里是评论者）的数字用户 ID；author_id 是 secUid，两者是同一个人的两种 ID。 |
| author_avatar_url | 作者头像链接：search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts 行上是博主的，live_room 上是主播的，comments 行上是评论者的。 |
| ip_location | IP 属地（平台强制展示，非用户填写）。 |
| liked_by_author | 评论是否被作者点赞。作者亲自点赞的评论互动价值高。 |
| is_reply | 是否为回复。 |
| reply_to_id | 被回复评论 ID：comments 的回复行上是它挂在哪条顶层评论下；comment_replies 每行都是请求的那条顶层评论。 |
| reply_to_reply_id | 这条回复回复的是楼里另一条回复时，那条回复的 ID（comment_replies）；直接回复顶层评论时没有这个键。 |
| reply_to_author_name | 被回复的那条回复的作者昵称，和 reply_to_reply_id 同时出现（comment_replies）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| video_id | 视频 ID：comments 是评论所属的视频，post_history 是查的那条视频。 |
| images | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| mentioned_users | 评论里 @ 到的人：user_id（secUid）、uid（数字 ID）、nickname；没有 @ 时没有这个键。 |
| 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": "comment_replies",
  "params": {
    "url": "https://www.douyin.com/video/7551364376725409062",
    "comment_id": "7648918588065661753"
  }
}'
```

```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": "comment_replies",
        "params": {
            "url": "https://www.douyin.com/video/7551364376725409062",
            "comment_id": "7648918588065661753",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "comment_replies",
  "results": [
    {
      "id": "•••",
      "text": "黑丸子吃坏人",
      "like_count": 0,
      "author_name": "•••",
      "author_id": "•••",
      "author_uid": "•••",
      "author_avatar_url": "https://p3.douyinpic.com/•••",
      "ip_location": "•••",
      "liked_by_author": false,
      "is_reply": true,
      "reply_to_id": "7648918588065661753",
      "posted_at": "2026-10-22T04:06:32+00:00",
      "video_id": "7551364376725409062",
      "platform": "douyin"
    },
    {
      "id": "•••",
      "text": "我吃了黑丸子一个疗程没效果",
      "like_count": 1,
      "author_name": "•••",
      "author_id": "•••",
      "author_uid": "•••",
      "author_avatar_url": "https://p3.douyinpic.com/•••",
      "ip_location": "•••",
      "liked_by_author": false,
      "is_reply": true,
      "reply_to_id": "7648918588065661753",
      "posted_at": "2026-10-15T12:56:17+00:00",
      "video_id": "7551364376725409062",
      "platform": "douyin"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 20,
  "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
