number 指定目标条数,翻页由端点自动完成。游客身份下平台对本接口限流较紧:超限回 HTTP 461(伪装成成功的空壳),退避需分钟级、秒级无效;而且不传 number 会触发翻页、多烧一次请求 —— 传具体小值可把请求数降到 1。curl --location 'http://localhost:4567/api/xiaohongshu/fetch_note_comments?note_id=undefined&xsec_token=undefined&number=undefined'success 判别{
"success": true,
"data": {
"code": 0,
"data": {
"comments": [
{
"at_users": [
{
"ai_agent": true,
"nickname": "string",
"user_id": "string",
"xsec_token": "string"
}
],
"audio_info": {
"asr_text": "string",
"audio_id": "string",
"duration": 0,
"play_info": {
"url": "string"
},
"tag_text": "string"
},
"content": "string",
"create_time": 0,
"id": "string",
"invalid": true,
"ip_location": "string",
"like_count": "string",
"liked": true,
"note_id": "string",
"pictures": [
{
"height": 0,
"info_list": [
{
"image_scene": "string",
"url": "string"
}
],
"url_default": "string",
"url_pre": "string",
"width": 0
}
],
"show_tags": [
"string"
],
"status": 0,
"sub_comment_count": "string",
"sub_comment_cursor": "string",
"sub_comment_has_more": true,
"sub_comments": [
{
"at_users": [
{
"ai_agent": true,
"nickname": "string",
"user_id": "string",
"xsec_token": "string"
}
],
"content": "string",
"create_time": 0,
"id": "string",
"invalid": true,
"ip_location": "string",
"like_count": "string",
"liked": true,
"note_id": "string",
"pictures": [
{
"height": 0,
"info_list": [
{
"image_scene": "string",
"url": "string"
}
],
"url_default": "string",
"url_pre": "string",
"width": 0
}
],
"show_tags": [
"string"
],
"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"
}
}
],
"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"
}