WellbyteWellbyte

GET /v1/xiaohongshu/note/comments

笔记一级评论

stable · 13 credits / 次(成功才计)

分页返回笔记的一级评论,支持按最新 / 最热排序。翻页时把上一页响应里的 cursor、index、pageArea 原样回传。默认 latest_v2(按时间倒序),default 排序在翻页时会丢评论或重复,不建议使用。

注册即送 500 credits,用自己的 Key 试调。 免费注册

请求

curl -s 'https://api.wellbyte.net/v1/xiaohongshu/note/comments?index=NaN&cursor=demo&note_id=697c0eee000000000a03c308&pageArea=demo&share_text=http%3A%2F%2Fxhslink.com%2Fo%2F8GqargIxrko&sort_strategy=demo' \
  -H "Authorization: Bearer dg_live_…"

响应

示例采集于 2026-08-25

data{
code:0
data{
cursor:"{"cursor":"69aaee1e00000000190009a8","index":2,"pageArea":"ALL"}"
user_id:"5efc6e660000000001006da1"
comments[ 3 items ]
has_more:true
page_context:""
comment_count:193
comment_count_l1:154
all_sort_strategies[ 3 items ]
current_sort_strategy:"latest_v2"
}
meta{
endpoint:"xiaohongshu.note.comments"
cache_hit:false
elapsed_ms:0
request_id:"req_sample"
credits_charged:0
}
message:"ok"
}

请求历史

打开完整日志

还没有调用记录。先跑通一次,再换成你的数据。

    请求参数

    参数类型位置必填说明示例
    indexintegerquery评论索引,首次请求传 0,翻页传上一页返回值demo
    cursorstringquery分页游标,首次请求留空,翻页传上一页返回值demo
    note_idstringquery笔记 ID;与 share_text 二选一,同时传入时以 note_id 为准697c0eee000000000a03c308
    pageAreastringquery折叠状态:UNFOLDED 展开(默认)、FOLDED 折叠demo
    share_textstringquery笔记分享链接,支持 xiaohongshu.com 长链与 xhslink 短链http://xhslink.com/o/8GqargIxrko
    sort_strategystringquery排序:latest_v2 最新、like_count 最热、default 默认demo

    响应字段

    字段字典待补 —— 右侧可执行区可直接看到真实结构。

    错误码

    codeHTTP含义是否计费
    40001400参数缺失或格式错误
    40102401API Key 无效或已吊销
    40201402余额不足,请充值
    40402404目标资源不存在
    42201422质量门槛未通过
    42901429超出速率限制
    50401504上游超时
    50201502上游返回异常

    计费

    成功扣 13 credits;任何失败(含上游 200 但未过质量门槛)扣 0。

    搜索

    搜索端点与文档