GET /v1/xiaohongshu/note/sub_comments
Note Sub Comments
stable · 13 credits per success
Paginated replies under one top-level comment. Leave cursor empty and pass index=1 on the first call, then echo cursor and index from the previous page.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| index | integer | query | no | 分页索引,首次请求传 1 | demo |
| cursor | string | query | no | 分页游标,首次请求留空 | demo |
| note_id | string | query | no | 笔记 ID;与 share_text 二选一,同时传入时以 note_id 为准 | 699916e6000000001d0253da |
| comment_id | string | query | yes | 父评论 ID | 699fb9930000000008030db6 |
| share_text | string | query | no | 笔记分享链接,支持 xiaohongshu.com 长链与 xhslink 短链 | http://xhslink.com/o/8GqargIxrko |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 13 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.