HTTP 端点参考小红书
子评论(楼中楼)列表
展开某条一级评论下的回复。`number` 指定目标条数,翻页自动完成。
Authorization
bearerAuth AuthorizationBearer <token>
仅在 startServer 传了 token 时生效
In: header
Query Parameters
note_id*string
笔记 ID
Length
1 <= lengthroot_comment_id*string
要展开的一级评论 ID
Length
1 <= lengthxsec_token*string
反爬令牌,随笔记分享链接下发
Length
1 <= lengthnumber?integer
目标条数,默认一页
Range
1 <= value <= 500Response Body
application/json
application/json
curl -X GET "https://example.com/api/xiaohongshu/fetch_sub_comments?note_id=string&root_comment_id=string&xsec_token=string"{ "success": true, "data": { "code": 0, "data": { "comments": [ { "at_users": [ null ], "content": "string", "create_time": 0, "id": "string", "invalid": true, "ip_location": "string", "like_count": "string", "liked": true, "note_id": "string", "pictures": [ null ], "show_tags": [ null ], "status": 0, "target_comment": { "id": "string", "user_info": { "ai_agent": true, "image": "string", "nickname": "string", "user_id": "string", "xsec_token": "string" } }, "user_info": { "ai_agent": true, "image": "string", "nickname": "string", "user_id": "string", "xsec_token": "string" } } ], "cursor": "string", "has_more": true, "time": 0, "user_id": "string", "xsec_token": "string" }, "msg": "string", "success": true }, "error": { "kind": "validation", "code": "string", "message": "string", "retryable": true, "platform": { "code": "string", "message": "string" }, "http": { "status": 0, "statusText": "string" }, "issues": [ { "path": "string", "message": "string", "received": null } ] }, "message": "string", "meta": { "requestId": "string", "clientId": "string", "platform": "douyin", "endpoint": "string", "durationMs": 0, "attempts": 0, "trace": [ { "url": "string", "method": "string", "status": 0, "durationMs": 0, "reason": "initial", "retryOf": "string" } ] }, "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}