Xiaohongshu Get Note Comments
## Purpose Retrieve the featured comments for one Xiaohongshu note, including the author's replies when present in those threads. ## Input Provide the note ID as the required string `request_body.note_id`. Example: ```json {"request_body":{"note_id":"6a20edfa0000000021020951"}} ``` ## Results The payload at `response.data.data` is an array of comment threads, or `null` when there is no result. Each thread includes: - `comment`: the top-level comment, with text (`content`), creation time (`createTime`), like count (`likeCount`), reply count (`subCommentCount`), and string identifiers. - `l1L2Comments`: replies under the comment, including the author's replies when present; `targetCommentId` identifies the parent comment. - `userMap`: user profiles. Match each comment's or reply's `userIdStr` to `userMap[userIdStr]` for the nickname (`userNickName`) and avatar (`imageUrl`). These are not stored directly on the comment objects. ## Limits and handling This is a fixed top-five featured selection, not the full comment list. Pagination is not supported; do not supply `pageIndex` or `pageSize`. A null payload indicates no result and is not a request to poll or retry. Use `idStr`, `noteIdStr`, and `userIdStr` instead of numeric ID variants to avoid integer precision loss.
Pricing
| Condition | Charge |
|---|---|
| Each call | 20.65 credits/call |
20.65 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | 请求体对象,通过 note_id 字段指定目标小红书笔记,用于获取该笔记的精选评论及其中已有的博主回复。 | — |
request_body.note_id | string | Yes | 笔记ID/Note ID | — |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_xiaohongshu_get_note_comments' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"note_id": "6aead533000000001b01f62e"
}
}
}'{
"code": 200,
"data": {
"code": 0,
"data": [],
"guid": null,
"msg": "成功",
"success": true
},
"docs": "https://api.tikhub.io/#/Xiaohongshu-PGY-API/get_note_comments_api_v1_xiaohongshu_pgy_get_note_comments_post",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"note_id": "6aead533000000001b01f62e"
}
}This example shows part of the response. Copied content is valid JSON.

