外观
🔗 /api/xiaohongshu/comment-replies-v1
根据评论 ID 获取该评论下的二级回复。
token
comment_id
page
环境地址:示例中的 https://<your_endpoint> 为占位符,请替换为客服为你分配的专属接入地址(详见快速开始)。
https://<your_endpoint>
curl -X POST 'https://<your_endpoint>/api/xiaohongshu/comment-replies-v1?token=YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{"comment_id":"1234567890","page":1}'
import requests resp = requests.post( "https://<your_endpoint>/api/xiaohongshu/comment-replies-v1", params={"token": "YOUR_TOKEN"}, json={ "comment_id": "1234567890", "page": 1 }, timeout=60, ) print(resp.json())
const resp = await fetch('https://<your_endpoint>/api/xiaohongshu/comment-replies-v1?token=YOUR_TOKEN', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({"comment_id":"1234567890","page":1}), }) console.log(await resp.json())
{ "code": 0, "message": "ok", "data": { "comment_id": "c1", "total": 23, "list": [ { "reply_id": "r1", "content": "同问", "like_count": 2 } ] } }
{ "code": 303, "message": "采集失败,请稍后重试", "data": null }
小红书获取评论回复
🔗 /api/xiaohongshu/comment-replies-v1🔒 需开通根据评论 ID 获取该评论下的二级回复。
请求参数
tokencomment_idpage代码示例
响应结果示例