---
document_id: agent.collection.task.reddit_post_comments_v1
schema_version: 2
parent_document_id: agent.querying
section: querying
---

<!-- Generated by scripts.build_agent_guide; do not edit. -->

# Post comments / 帖子评论

Fetch the top-level comments of one Reddit post, paged by cursor.

取一条 Reddit 帖子的顶层评论，按游标续页。

Task / 任务: `reddit_post_comments_v1`
Platform / 平台: Reddit / Reddit
Billing / 计费: 2 Credits per successful task / 每个成功任务 2 Credits
Estimate / 估价: call `estimate_collection`; start directly when `approval_required=false`, otherwise obtain approval for `upper_bound_credits`.
估价：调用 `estimate_collection`；`approval_required=false` 时直接启动，否则请用户确认 `upper_bound_credits`。

## Limitations / 限制

- 回复数是该评论树的 childCount，不是上游节点自带的字段。
- 已删除评论（上游 node 为 null）会被跳过。
- next_cursor 是本页的列表续页。每条评论若还有更多回复，会在该条目的 **replies_cursor** 上给出自己的游标。
- 取某条评论的 replies_cursor 调 reddit_comment_replies_v1 即可展开那条评论的回复。

## Inputs / 输入

- `post_id` — Post ID / 帖子 ID; kind=text; required=True; default=''; bounds=min_length=0, max_length=64
- `sort_type` — Comment sort / 评论排序; kind=select; required=False; default='CONFIDENCE'; allowed=CONFIDENCE, NEW, TOP, CONTROVERSIAL, OLD, RANDOM
- `cursor` — Cursor / 翻页游标; kind=cursor; required=False; default=''; bounds=max_length=4096

## Minimal call / 最小调用

`estimate_collection`

```json
{
  "task_query": "获取指定 Reddit 帖子的顶层评论",
  "task_code": "reddit_post_comments_v1",
  "input": {
    "post_id": "t3_1vvfvxa"
  }
}
```


## Result and pagination / 结果与分页

- mode=cursor
- input: `cursor`; continuation: `data.has_more` → `data.next_cursor`

Only the fields listed below are part of the stable result contract. /
只有下方列出的字段属于稳定结果契约。

## Result fields / 结果字段

- `meta.request_id` — type=string; Asklear request identifier for tracing. / 用于追踪的 Asklear 请求 ID。
- `meta.api_name` — type=string; Executed collection operation name. / 实际执行的采集操作名称。
- `meta.latency_ms` — type=integer; Collection execution latency in milliseconds. / 采集执行耗时（毫秒）。
- `meta.credits_charged` — type=integer; Asklear user-side Credits settled for this task after completion. / 任务完成后 Asklear 用户侧实际结算的 Credits。
- `data.items` — type=array<object>; Projected public items for this task. / 本任务投影后的公开条目。
- `data.item_count` — type=integer; Number of returned items. / 本次返回的条目数。
- `data.items[].comment_id` — type=scalar|null; Comment identifier, when available. / 评论 ID（如有）。
- `data.items[].text` — type=scalar|null; Text content, when available. / 正文内容（如有）。
- `data.items[].published_at` — type=integer|null; Publication time, when available. / 发布时间（如有）。
- `data.items[].edited_at` — type=integer|null; Last edit time, when available. / 最后编辑时间（如有）。
- `data.items[].score` — type=scalar|null; Score, when available. / 评分（如有）。
- `data.items[].permalink` — type=scalar|null; Permanent URL, when available. / 永久链接（如有）。
- `data.items[].reply_count` — type=scalar|null; Reply count, when available. / 回复数（如有）。
- `data.items[].is_removed` — type=scalar|null; Is removed, when available. / 是否已删除（如有）。
- `data.items[].is_stickied` — type=scalar|null; Is stickied, when available. / 是否置顶（如有）。
- `data.items[].is_locked` — type=scalar|null; Is locked, when available. / 是否锁定（如有）。
- `data.items[].author_id` — type=scalar|null; Author identifier, when available. / 作者 ID（如有）。
- `data.items[].author_name` — type=scalar|null; Author display name, when available. / 作者名称（如有）。
- `data.has_more` — type=boolean; Whether a continuation is available. / 是否还有下一页。
- `data.next_cursor` — type=string|null; Cursor for the next page, or null. / 下一页游标；无下一页时为 null。

Use `list_collection_tasks` as the runtime authority, then `describe_collection_task` for one task's full input contract, examples and limits. Collection access is entitlement-gated. /
以 `list_collection_tasks` 返回为运行时准据，再用 `describe_collection_task` 取单个任务的完整入参契约、示例与限制；采集能力受 entitlement 控制。
