当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

子评论(楼中楼)列表

展开某条一级评论下的回复。`number` 指定目标条数,翻页自动完成。

GET
/api/xiaohongshu/fetch_sub_comments

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

note_id*string

笔记 ID

Length1 <= length
root_comment_id*string

要展开的一级评论 ID

Length1 <= length
xsec_token*string

反爬令牌,随笔记分享链接下发

Length1 <= length
number?integer

目标条数,默认一页

Range1 <= value <= 500

Response 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"}