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

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

# Note comments / 笔记评论

Fetch a note's top-level comments. For replies under one comment use xhs_comment_sub_comments_v1.

取一篇笔记的一级评论。要取某条评论下的回复用 xhs_comment_sub_comments_v1。

Task / 任务: `xhs_note_comments_v1`
Platform / 平台: Xiaohongshu / 小红书
Billing / 计费: 10 Credits per successful task / 每个成功任务 10 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`。

## Inputs / 输入

- `note_id` — Note ID / 笔记 ID; kind=text; required=True; default=''; bounds=min_length=1, max_length=128
- `cursor` — Comment cursor / 评论游标; kind=cursor; required=False; default=''; bounds=max_length=512
- `sort` — Comment sort / 评论排序; kind=select; required=False; default='default'; allowed=default, latest_v2, like_count

## Minimal call / 最小调用

`estimate_collection`

```json
{
  "task_query": "获取指定小红书笔记的评论",
  "task_code": "xhs_note_comments_v1",
  "input": {
    "note_id": "<笔记详情返回的 note_id>"
  }
}
```


## 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.has_more` — type=boolean; Whether another comment page is available. / 是否还有下一页评论。
- `data.next_cursor` — type=string; Cursor for the next page when has_more is true. / has_more 为 true 时用于请求下一页的游标。
- `data.item_count` — type=integer; Number of comments in this response, when supplied. / 本次返回的评论数（如响应提供）。
- `data.items` — type=array<object>; Comment items for this page, when supplied. / 本页评论条目（如响应提供）。

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 控制。
