- MoreAPI接口说明
- 更新记录
- 抖音API
- 获取视频详情POST
- 获取视频详情 V3POST
- 获取视频详情V4POST
- 获取用户信息POST
- 获取用户信息 _V2POST
- 获取用户信息 _V3POST
- 获取用户信息 _V4POST
- 获取直播间信息与视频流直链POST
- 获取视频一级评论POST
- 获取视频子评论POST
- 综合搜索POST
- 获取开放直播间用户列表POST
- 搜索话题POST
- 获取话题视频POST
- 获取视频弹幕POST
- 搜索用户POST
- 搜索用户V2POST
- 搜索用户V3POST
- 搜索直播用户POST
- 搜索直播用户V2POST
- 获取视频短连接POST
- 生成视频抖音码POST
- 获取用户主页发布POST
- 获取直播间商品列表POST
- 搜索视频POST
- 搜索音乐POST
- 获取音乐详情POST
- 获取话题详情POST
- 获取音乐相关视频POST
- 搜索视频V2POST
- 获取用户最新作品V2POST
- 获取用户合集POST
- 获取合集视频列表POST
- 搜索用户指定作品POST
- 用户喜欢的作品POST
- 搜索长尾关键词POST
- 热点讨论POST
- 获取短剧详细信息POST
- 获取短剧视频列表POST
- 获取用户短剧集POST
- 用户橱窗销售信息POST
- 获取合集信息POST
- TikTok
- Lemon8
- 快手API
- 小红书API
- 微博API
- 哔哩哔哩API
- 头条 | 西瓜 API
- 榜单API
- youtube
- cookie池
- 创作者API
获取笔记子评论
正式环境
正式环境
POST
/api/xhs/note_sub_comment
📌
response_status
、response_body
、response_headers
,分别对应小红书返回的响应码
,响应体
,响应头
,其中response_body
内容字段与原有的保持一致。
请求参数
Header 参数
Cookie
string
可选
Body 参数application/json
note_id
string
可选
share_text
string
可选
root_comment_id
string
父评论ID
cursor
string
下一页锚点
num
string
返回条数
示例
{
"note_id": "65a7d9c1000000002b001e1f",
"share_text": "",
"root_comment_id": "65a85752000000000103377c",
"num": 5,
"cursor": "65a8614000000000010206e8"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/xhs/note_sub_comment' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"note_id":"65a7d9c1000000002b001e1f",
"share_text":"",
"root_comment_id":"65a85752000000000103377c",
"num":5,
"cursor":"65a8614000000000010206e8"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
可选
comments
array [object {1}]
子评论列表
cursor
string
下一页锚点
has_more
boolean
是否有下一页
示例
{
"code": 200,
"msg": "success",
"path": "/api/xhs/note_sub_comment",
"data": {
"response_status": 200,
"response_body": {
"code": 0,
"success": true,
"msg": "成功",
"data": {
"cursor": "65a86c560000000001013485",
"has_more": true,
"time": 1725887419630,
"user_id": "647478850000000012036771",
"comments": [
{
"target_comment": {
"id": "65a85ca4000000000102c571",
"user_info": {
"nickname": "浪里小白龙",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo312lgmi661k0041m58qbennvjf7f2kfo?imageView2/2/w/120/format/jpg",
"user_id": "562456eba40e1841100edff3"
}
},
"note_id": "65a7d9c1000000002b001e1f",
"status": 0,
"content": "都有2000万了,是你你会买二手车吗??",
"liked": false,
"like_count": "174",
"create_time": 1705534208000,
"id": "65a863000000000002011c59",
"at_users": [],
"user_info": {
"user_id": "607265cd0000000001009924",
"nickname": "陈醒",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo3170ns2tf3m005o3icn6g9694v0rm4d0?imageView2/2/w/120/format/jpg"
},
"show_tags": []
},
{
"id": "65a863dc0000000001010156",
"note_id": "65a7d9c1000000002b001e1f",
"status": 0,
"like_count": "7",
"show_tags": [],
"create_time": 1705534428000,
"content": "瘦死的骆驼比马大",
"at_users": [],
"liked": false,
"user_info": {
"user_id": "6058d09d000000000101c832",
"nickname": "卖核弹的小男孩",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo313ml83ivhc405o2oq2egbi1i4spclo8?imageView2/2/w/120/format/jpg"
},
"target_comment": {
"id": "65a85bcd0000000001033487",
"user_info": {
"user_id": "5b2ba12111be101aede298da",
"nickname": "Ricardo",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/6316175a394e2a532edf37c7.jpg?imageView2/2/w/120/format/jpg"
}
}
},
{
"status": 3,
"content": "有钱不买车买房买理财拿来干嘛?留着生锈吗?",
"at_users": [],
"user_info": {
"user_id": "5ae5c0c74eacab472752303e",
"nickname": "阡阡",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/5ae5c169d2c8a54479b2c324.jpg?imageView2/2/w/120/format/jpg"
},
"create_time": 1705535959000,
"id": "65a869d7000000000202510a",
"note_id": "65a7d9c1000000002b001e1f",
"liked": false,
"like_count": "92",
"show_tags": [],
"target_comment": {
"id": "65a85752000000000103377c",
"user_info": {
"user_id": "5ccb62c40000000012007f12",
"nickname": "君君",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31619dl690u005n6bcb24gvoiu8manig?imageView2/2/w/120/format/jpg"
}
}
},
{
"user_info": {
"user_id": "5e49d3d40000000001002a54",
"nickname": "小荷荷",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/5e49d3d40000000001002a54.jpg?imageView2/2/w/120/format/jpg"
},
"content": "不会,连二手车也不买",
"liked": false,
"like_count": "3",
"at_users": [],
"show_tags": [],
"create_time": 1705536331000,
"target_comment": {
"id": "65a863000000000002011c59",
"user_info": {
"user_id": "607265cd0000000001009924",
"nickname": "陈醒",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo3170ns2tf3m005o3icn6g9694v0rm4d0?imageView2/2/w/120/format/jpg"
}
},
"id": "65a86b4b000000000102441d",
"note_id": "65a7d9c1000000002b001e1f",
"status": 0
},
{
"id": "65a86c560000000001013485",
"like_count": "52",
"create_time": 1705536598000,
"target_comment": {
"id": "65a85752000000000103377c",
"user_info": {
"user_id": "5ccb62c40000000012007f12",
"nickname": "君君",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31619dl690u005n6bcb24gvoiu8manig?imageView2/2/w/120/format/jpg"
}
},
"liked": false,
"user_info": {
"user_id": "61af12d1000000001000dfcb",
"nickname": "灼灼爱夭夭",
"image": "https://sns-avatar-qc.xhscdn.com/avatar/63eb6d2342cfe3f6d5453a56.jpg?imageView2/2/w/120/format/jpg"
},
"show_tags": [],
"note_id": "65a7d9c1000000002b001e1f",
"status": 0,
"content": "这都是说个外人听的,大家心里都平衡,也省的有人惦记他家钱[doge][doge][doge]",
"at_users": []
}
]
}
},
"response_headers": {
"date": "Mon, 09 Sep 2024 13:10:19 GMT",
"content-type": "application/json; charset=utf-8",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"alt-svc": "h3=\":443\"; ma=3600,quic=\":443\"; v=\"46,43,39\"; ma=3600",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "https://www.xiaohongshu.com",
"cat-msg-id": "karen-gateway-snsdefault-0a4a49fa.38506-479413-189689",
"request-id": "3257a9edec4c4e0ea202101329fe0fe3",
"x-kong-sign": "0",
"xhs-request-time": "0.158",
"content-encoding": "gzip",
"xhs-real-ip": "114.106.131.55"
}
}
}
修改于 2024-09-25 17:15:56