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