# Reddit 评论回复 API (reddit.comment_replies)

- Canonical page: [https://everyinfra.com/reddit-api/comment_replies](https://everyinfra.com/reddit-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "reddit", "action": "comment_replies", "params": {...}}
- Price: $0.000792 per call ($0.79 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=reddit&action=comment_replies

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 一条 Reddit 评论的链接（comments、comments_lookup 返回的每条评论的 url，形如 …/comments/帖子ID/comment/评论ID/），只给评论 ID 不行。一次返回 Reddit 展开的一批回复（约 10 条，含回复的回复，按 reply_to_id 和 depth 还原层级）；某条回复的 has_more_replies 是 true 时，拿它的 url 再调一次。按次计费；评论没有回复时返回空结果、不收费。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| community | 所属 subreddit 名称（不含 r/ 前缀）。 |
| url | 该记录在原平台上的可访问链接。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| reply_to_id | 这条回复回的是哪条评论的 ID（comment_replies）；直接回你查的那条评论时，就是那条评论的 ID。 |
| depth | 帖子下的第几层（comment_replies）：0 是直接回帖子的评论，1 是回它的，依次往下。 |
| has_more_replies | 这条回复下面还有没展开的回复（comment_replies）；是 true 时拿这一行的 url 再调一次 comment_replies。 |

## 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": "reddit",
  "action": "comment_replies",
  "params": {
    "url": "https://www.reddit.com/r/pics/comments/1xwxo1e/comment/19sogasefdc5g/"
  }
}'
```

```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": "reddit",
        "action": "comment_replies",
        "params": {
            "url": "https://www.reddit.com/r/pics/comments/1xwxo1e/comment/19sogasefdc5g/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "reddit",
  "action": "comment_replies",
  "results": [
    {
      "id": "19soioec1l0ar",
      "text": "He stretch",
      "author_username": "E•••t",
      "like_count": 21,
      "community": "pics",
      "url": "https://www.reddit.com/r/pics/comments/1xwxo1e/comment/19soioec1l0ar/",
      "posted_at": "2026-11-15T16:14:37.802000+00:00",
      "platform": "reddit",
      "reply_to_id": "19sogasefdc5g",
      "depth": 1,
      "has_more_replies": true
    },
    {
      "id": "19sol335umo5e",
      "text": "stremtch",
      "author_username": "S•••h",
      "like_count": 5,
      "community": "pics",
      "url": "https://www.reddit.com/r/pics/comments/1xwxo1e/comment/19sol335umo5e/",
      "posted_at": "2026-11-15T17:08:37.130000+00:00",
      "platform": "reddit",
      "reply_to_id": "19soioec1l0ar",
      "depth": 2,
      "has_more_replies": false
    }
  ],
  "count": 4,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=reddit
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
