简体中文
Appearance
获取小红书笔记的评论,支持分页。 响应包含评论内容、发布时间、评论者信息(如可用)以及其他评论元数据。
典型应用场景:
token
string
noteId
lastCursor
sort
normal
latest
💡 环境说明
默认示例使用 https://api.justoneapi.com (prod-global)。中国大陆地区建议替换为 http://47.117.133.51:30015 (prod-cn) 以获得更好的访问体验。详见 环境选择。
https://api.justoneapi.com
prod-global
http://47.117.133.51:30015
prod-cn
# 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 curl -X GET "https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE"
我想使用 Just One API 提供的“笔记评论 (V2)”接口。 接口地址: https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2 HTTP 方法: GET 身份验证: 在 URL 后添加查询参数“?token=您的API密钥”。 OpenAPI 定义: https://docs.justoneapi.com/openapi/xiaohongshu-apis/note-comments-v2-zh.json 请求参数说明: - token (query): 此 API 服务的访问令牌。 (必填) - noteId (query): 小红书笔记唯一标识符。 (必填) - lastCursor (query): 上一页的分页游标(使用上一次响应返回的游标值)。 - sort (query): 结果集的排序方式。 可用值: - `normal`:默认排序 - `latest`:最新优先 返回格式: JSON 响应处理与错误码: 1. 需通过返回体中的 "code" 字段判断业务结果(code 为 0 表示成功)。 2. 超时建议:建议将请求超时时间设置为至少 60 秒。 3. 业务码说明: - 0: 成功 - 100: Token 无效或已失效 - 301: 采集失败,请重试 - 302: 超出速率限制 - 303: 超出每日配额 - 400: 参数错误 - 500: 内部服务器错误 - 600: 权限不足 - 601: 余额不足 请帮我用我擅长的编程语言写一个脚本来调用这个接口,并处理返回结果。
# 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 import requests url = "https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE" response = requests.get(url) print(response.json())
// 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 const response = await fetch("https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE", { method: "GET" }); const data = await response.json(); console.log(data);
// 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class Main { public static void main(String[] args) throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE")) .method("GET", HttpRequest.BodyPublishers.noBody()) .build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } }
// 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 package main import ( "fmt" "io" "net/http" ) func main() { client := &http.Client{} url := "https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE" req, _ := http.NewRequest("GET", url, nil) resp, _ := client.Do(req) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body)) }
// 提示: 中国大陆地区建议将 https://api.justoneapi.com 替换为 http://47.117.133.51:30015 <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.justoneapi.com/api/xiaohongshu/get-note-comment/v2?token=YOUR_API_KEY¬eId=VALUE"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); $response = curl_exec($ch); curl_close($ch); echo $response;
{ "code": 0, "data": { "user_id": "5afed48511be10174fbc9482", "comment_count": 27, "comments": [ { "liked": false, "time": 1770719245, "show_type": "common", "track_id": "interaction-service.local", "collected": false, "like_count": 0, "note_id": "698af6400000000015031456", "status": 0, "sub_comment_count": 4, "show_tags_v2": [], "id": "698b080d00000000080302ab", "score": 0, "sub_comments": [ { "id": "698b0c0e000000000800f001", "liked": false, "user": { "current_user": "false", "userid": "ad4da8b2a3866db3b3954a9db2b0f", "nickname": "This Was Cool", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo30q9q3sq3740g4a5efsa8b542tqme93g?imageView2/2/w/120/format/jpg", "red_id": "kissbot", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false }, "show_tags": [], "ip_location": "荷兰", "show_type": "common", "downvoted": false, "note_id": "698af6400000000015031456", "like_count": 4, "score": -12, "translation_strategy": 10, "collected": false, "share_strategy": 0, "status": 0, "time": 1770720270, "target_comment": { "id": "698b080d00000000080302ab", "status": 0, "user": { "current_user": "false", "userid": "a6906499f826c7391917c391fdbac", "nickname": "Revolution9", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31p425k2g3c005o881vdgbiaq3vud1g8?imageView2/2/w/120/format/jpg", "red_id": "SATANPARIS", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false } }, "friend_liked_msg": "", "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "content": "全部免费开放,但需要在品牌官方🌍小程序预约,目前暂未开始", "at_users": [], "hidden": false, "comment_type": 0, "show_tags_v2": [ { "type": "is_author", "text": "作者", "style_id": "red", "pos": "post_name" } ] } ], "show_tags": [], "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "translation_strategy": 10, "downvoted": false, "at_users": [], "hidden": false, "user": { "ai_agent": false, "current_user": "false", "userid": "a6906499f826c7391917c391fdbac", "nickname": "Revolution9", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31p425k2g3c005o881vdgbiaq3vud1g8?imageView2/2/w/120/format/jpg", "red_id": "SATANPARIS", "level": { "image": "" }, "additional_tags": {} }, "ip_location": "广东", "comment_type": 0, "friend_liked_msg": "", "sub_comment_cursor": "{\"cursor\":\"698b0c0e000000000800f001\",\"index\":1}", "share_strategy": 0, "content": "门票在哪购买" }, { "show_type": "common", "friend_liked_msg": "", "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "true" }, "id": "698d2d7600000000190021d9", "status": 0, "sub_comments": [ { "time": 1770860228, "user": { "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo30q9q3sq3740g4a5efsa8b542tqme93g?imageView2/2/w/120/format/jpg", "red_id": "kissbot", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "ad4da8b2a3866db3b3954a9db2b0f", "nickname": "This Was Cool" }, "comment_type": 0, "target_comment": { "id": "698d2d7600000000190021d9", "status": 0, "user": { "ai_agent": false, "current_user": "false", "userid": "a8cf394cdd8cf5b0495612646432b", "nickname": "Its Not Fashion", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31isso75714005n3vir25ia6cpqhq9a0?imageView2/2/w/120/format/jpg", "red_id": "892628877", "level": { "image": "" }, "additional_tags": {} } }, "note_id": "698af6400000000015031456", "at_users": [], "like_count": 0, "status": 0, "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "translation_strategy": 10, "ip_location": "上海", "show_tags_v2": [ { "type": "is_author", "text": "作者", "style_id": "red", "pos": "post_name" } ], "downvoted": false, "collected": false, "friend_liked_msg": "", "id": "698d2ec40000000009023c88", "liked": false, "show_tags": [], "show_type": "common", "content": "想去来着,忘记了", "hidden": false, "score": -4, "share_strategy": 0 } ], "ip_location": "四川", "track_id": "interaction-service.local", "show_tags": [], "downvoted": false, "like_count": 4, "hidden": false, "sub_comment_count": 1, "translation_strategy": 10, "share_strategy": 0, "note_id": "698af6400000000015031456", "liked": false, "score": 0, "collected": false, "at_users": [], "hash_tags": [ { "name": "天目里", "link": "xhsdiscover://search/result?keyword=%E5%A4%A9%E7%9B%AE%E9%87%8C&target_search=notes&mode=note_text_highlight&word_request_id=68f1bc5a9f3a7b9d5f38965669aeddd4&source=comment_highlight&api_extra=%7B%22source_note_id%22%3A%22698af6400000000015031456%22%7D&add_to_history=true", "type": "搜索高亮", "disable_jump": false } ], "sub_comment_cursor": "{\"cursor\":\"698d2ec40000000009023c88\",\"index\":1}", "show_tags_v2": [], "user": { "ai_agent": false, "current_user": "false", "userid": "a8cf394cdd8cf5b0495612646432b", "nickname": "Its Not Fashion", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31isso75714005n3vir25ia6cpqhq9a0?imageView2/2/w/120/format/jpg", "red_id": "892628877", "level": { "image": "" }, "additional_tags": {} }, "comment_type": 0, "content": "之前有去杭州看那个马吉拉的大展吗?在 #天目里[搜索高亮]# ,很精彩", "time": 1770859894 }, { "share_strategy": 0, "hidden": false, "score": 0, "sub_comments": [], "user": { "current_user": "false", "userid": "a7a6948c569e1ed2c2fd3abe54367", "nickname": "吴璟儿", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31sg5hmcn5s005p8mbmhp5s0iq53u1dg?imageView2/2/w/120/format/jpg", "red_id": "VvuWJr22", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false }, "ip_location": "广东", "track_id": "interaction-service.local", "downvoted": false, "collected": false, "note_id": "698af6400000000015031456", "content": "地点在哪里啊,想提前订酒店", "liked": false, "status": 0, "sub_comment_count": 0, "comment_type": 0, "translation_strategy": 10, "at_users": [], "show_tags": [], "show_type": "common", "biz_label": { "rich_text": "unknown", "product_review": false, "group_invite": "false" }, "id": "69ae25e9000000000f01d47d", "like_count": 0, "time": 1773020649, "friend_liked_msg": "", "show_tags_v2": [] }, { "show_tags_v2": [], "biz_label": { "rich_text": "unknown", "product_review": false, "group_invite": "false" }, "like_count": 1, "score": 0, "status": 0, "track_id": "interaction-service.local", "friend_liked_msg": "", "content": "That's so Margiela.", "at_users": [], "sub_comment_count": 0, "user": { "userid": "a01f491fa596ad8c84954d547f0fa", "nickname": "j", "images": "https://sns-avatar-qc.xhscdn.com/avatar/672f874bf2b537c1fbabeab3.jpg?imageView2/2/w/120/format/jpg", "red_id": "908059843", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false" }, "show_tags": [], "show_type": "common", "id": "698c2057000000000900738a", "liked": false, "hidden": false, "sub_comments": [], "time": 1770790999, "comment_type": 0, "downvoted": false, "share_strategy": 0, "note_id": "698af6400000000015031456", "ip_location": "上海", "translation_strategy": 9, "collected": false }, { "show_type": "common", "like_count": 0, "liked": false, "hidden": false, "score": 0, "status": 0, "time": 1771139225, "ip_location": "江苏", "friend_liked_msg": "", "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "translation_strategy": 10, "downvoted": false, "id": "69917098000000000800edd5", "at_users": [], "sub_comment_count": 0, "user": { "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31csgrejvgs105ne7jrig8gprrjojnjo?imageView2/2/w/120/format/jpg", "red_id": "X0317D", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "a0b60375c1a1f2aa19b16ae3e6d82", "nickname": "淡淡的小世界" }, "content": "wow期待", "track_id": "interaction-service.local", "collected": false, "note_id": "698af6400000000015031456", "sub_comments": [], "show_tags": [], "comment_type": 0, "show_tags_v2": [], "share_strategy": 0 }, { "at_users": [], "hidden": false, "user": { "red_id": "42977087767", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "aebe281b82399e50362c066a0f6a1", "nickname": "0vasilina", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31ci7nvuogm005ps3jc5i3ho0m4juoc8?imageView2/2/w/120/format/jpg" }, "ip_location": "上海", "track_id": "interaction-service.local", "show_tags_v2": [], "note_id": "698af6400000000015031456", "content": "我做梦都想登上 Maison Margiela 的秀场", "downvoted": false, "sub_comments": [], "show_tags": [], "comment_type": 0, "translation_strategy": 10, "share_strategy": 0, "like_count": 0, "liked": false, "time": 1770824437, "show_type": "common", "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "collected": false, "status": 0, "sub_comment_count": 0, "friend_liked_msg": "", "id": "698ca2f5000000001500d3bd", "score": 0 }, { "at_users": [], "score": 0, "user": { "nickname": "卑鄙的艾格尼丝", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31lm4tbv0ku005n56n8248hplckffheg?imageView2/2/w/120/format/jpg", "red_id": "978859579", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "aa128007f24d1adbd0682785a9f8c" }, "friend_liked_msg": "", "sub_comments": [], "time": 1770789156, "ip_location": "上海", "note_id": "698af6400000000015031456", "liked": false, "hidden": false, "status": 0, "sub_comment_count": 0, "comment_type": 0, "downvoted": false, "share_strategy": 0, "translation_strategy": 10, "id": "698c19230000000004003ec6", "like_count": 0, "show_tags": [], "show_type": "common", "track_id": "interaction-service.local", "content": "OMG 时尚档案的解密文件👀", "show_tags_v2": [], "biz_label": { "rich_text": "unknown", "product_review": false, "group_invite": "false" }, "collected": false }, { "track_id": "interaction-service.local", "downvoted": false, "id": "698c1946000000000503137f", "at_users": [], "liked": false, "sub_comment_count": 0, "time": 1770789191, "ip_location": "上海", "show_tags_v2": [], "translation_strategy": 10, "like_count": 1, "score": 0, "status": 0, "share_strategy": 0, "friend_liked_msg": "", "biz_label": { "group_invite": "false", "rich_text": "unknown", "product_review": false }, "collected": false, "sub_comments": [], "show_tags": [], "show_type": "common", "user": { "red_id": "978859579", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "aa128007f24d1adbd0682785a9f8c", "nickname": "卑鄙的艾格尼丝", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31lm4tbv0ku005n56n8248hplckffheg?imageView2/2/w/120/format/jpg" }, "comment_type": 0, "note_id": "698af6400000000015031456", "content": "别人发邀请函,Margiela发‘档案编号’", "hidden": false }, { "status": 0, "show_tags": [], "show_type": "common", "id": "698b0b48000000000f00f414", "note_id": "698af6400000000015031456", "like_count": 0, "hidden": false, "score": 0, "downvoted": false, "friend_liked_msg": "", "collected": false, "at_users": [], "liked": false, "sub_comments": [], "user": { "red_id": "26476480485", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "a1a217da5ca0d6f4f575d5b3edbdf", "nickname": "tsop", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31r1jjqfp0a105qau3thuaneaiuap1d8?imageView2/2/w/120/format/jpg" }, "comment_type": 0, "content": "啊[皱眉R]只有Tabi", "sub_comment_count": 0, "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "translation_strategy": 10, "time": 1770720073, "ip_location": "四川", "track_id": "interaction-service.local", "show_tags_v2": [], "share_strategy": 0 }, { "translation_strategy": 10, "collected": false, "id": "698b1f6e0000000014030f35", "sub_comments": [], "show_tags": [], "ip_location": "上海", "comment_type": 0, "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "share_strategy": 0, "content": "他那个链接我倒现在都不知道是啥只能下载了看了[笑哭R]", "liked": false, "sub_comment_count": 0, "time": 1770725231, "show_tags_v2": [], "downvoted": false, "at_users": [], "hidden": false, "user": { "current_user": "false", "userid": "a046b743ee1aa77a1cb02ae66a6df", "nickname": "Pillow Prince", "images": "https://sns-avatar-qc.xhscdn.com/avatar/661b0d187edef6f8d05876e0.jpg?imageView2/2/w/120/format/jpg", "red_id": "552862822", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false }, "show_type": "common", "track_id": "interaction-service.local", "friend_liked_msg": "", "note_id": "698af6400000000015031456", "like_count": 0, "score": 0, "status": 0 }, { "comment_type": 0, "content": "@Komorebize @WonderLine @已对推送机制绝望 @一一 谁陪我飞上海,,T T", "like_count": 1, "status": 0, "sub_comments": [ { "target_comment": { "id": "69a0ddfb0000000009020563", "status": 0, "user": { "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31jejr5rjj0005nk1u2n095oha6hcino?imageView2/2/w/120/format/jpg", "red_id": "342823596", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "afdbac5da0a042b798496a063426a", "nickname": "lotus" } }, "friend_liked_msg": "", "translation_strategy": 10, "user": { "red_id": "4360503571", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "abde9ec550614c6817a30e24a3e49", "nickname": "已对推送机制绝望", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo316kd246vje6g5p5nhmk7ot7dkialigo?imageView2/2/w/120/format/jpg" }, "hidden": false, "time": 1772150367, "show_tags": [], "at_users": [], "like_count": 0, "score": 0, "ip_location": "广东", "show_type": "common", "show_tags_v2": [], "share_strategy": 0, "id": "69a0de5e000000000503b8f6", "content": "[石化R]非要是上海那个吗", "liked": false, "status": 0, "comment_type": 0, "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "downvoted": false, "collected": false, "note_id": "698af6400000000015031456" } ], "time": 1772150268, "user": { "current_user": "false", "userid": "afdbac5da0a042b798496a063426a", "nickname": "lotus", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31jejr5rjj0005nk1u2n095oha6hcino?imageView2/2/w/120/format/jpg", "red_id": "342823596", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false }, "share_strategy": 0, "note_id": "698af6400000000015031456", "at_users": [ { "nickname": "Komorebize", "level": { "image": "" }, "ai_agent": false, "userid": "5ea15f4b000000000100bbbf" }, { "userid": "627784b30000000021024f4b", "nickname": "WonderLine", "level": { "image": "" }, "ai_agent": false }, { "userid": "64b78da8000000001f0074ed", "nickname": "已对推送机制绝望", "level": { "image": "" }, "ai_agent": false }, { "userid": "5c59a81a0000000011029d37", "nickname": "一一", "level": { "image": "" }, "ai_agent": false } ], "liked": false, "sub_comment_count": 6, "biz_label": { "group_invite": "false", "rich_text": "unknown", "product_review": false }, "translation_strategy": 10, "score": 0, "show_tags": [], "ip_location": "北京", "friend_liked_msg": "", "show_tags_v2": [], "sub_comment_cursor": "{\"cursor\":\"69a0de5e000000000503b8f6\",\"index\":1}", "downvoted": false, "collected": false, "id": "69a0ddfb0000000009020563", "hidden": false, "show_type": "common", "track_id": "interaction-service.local" }, { "time": 1770715004, "friend_liked_msg": "", "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "translation_strategy": 10, "at_users": [], "liked": false, "score": 0, "sub_comments": [], "comment_type": 0, "downvoted": false, "share_strategy": 0, "like_count": 2, "hidden": false, "status": 0, "show_tags": [], "ip_location": "上海", "show_type": "common", "id": "698af77c0000000015012dac", "note_id": "698af6400000000015031456", "content": "美丽", "sub_comment_count": 0, "user": { "userid": "a4dd4731b4d1fe076a5cb55d73698", "nickname": "real and", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31rj9ro9b2g005q6snvttopsunp5aeg8?imageView2/2/w/120/format/jpg", "red_id": "27485278201", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false" }, "track_id": "interaction-service.local", "show_tags_v2": [ { "type": "note_first", "text": "首评", "style_id": "gray", "pos": "cmt_bottom" } ], "collected": false }, { "share_strategy": 0, "content": "🔥", "hidden": false, "sub_comments": [], "ip_location": "上海", "friend_liked_msg": "", "translation_strategy": 10, "like_count": 1, "liked": false, "score": 0, "sub_comment_count": 0, "show_tags_v2": [ { "type": "author_liked", "text": "作者赞过", "style_id": "gray", "pos": "cmt_bottom" } ], "downvoted": false, "note_id": "698af6400000000015031456", "status": 0, "time": 1771923445, "user": { "userid": "a688e851b9720af1dc1f96170a8df", "nickname": "Bohan Qiu", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31cn88955h2005n3ac2g45a4o02kuakg?imageView2/2/w/120/format/jpg", "red_id": "boboinparadise", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false" }, "show_type": "common", "biz_label": { "rich_text": "unknown", "product_review": false, "group_invite": "false" }, "collected": false, "id": "699d67f400000000040016e4", "at_users": [], "show_tags": [], "comment_type": 0, "track_id": "interaction-service.local" }, { "show_tags": [], "note_id": "698af6400000000015031456", "content": "@momo(吐槽版) @不二周助的棕熊内裤^ ^ @去看看风景吧 你们陪我去吧 我求你们了[皱眉R]", "at_users": [ { "userid": "613c2eb40000000002020d7b", "nickname": "momo(吐槽版)", "level": { "image": "" }, "ai_agent": false }, { "nickname": "不二周助的棕熊内裤^ ^", "level": { "image": "" }, "ai_agent": false, "userid": "622b39fa000000001000bd85" }, { "userid": "5c5d994d000000001a02950c", "nickname": "去看看风景吧", "level": { "image": "" }, "ai_agent": false } ], "liked": false, "score": 0, "sub_comment_count": 0, "user": { "nickname": "sws", "images": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31ta7asqfl8004a2rhcebbv7kqimmm48?imageView2/2/w/120/format/jpg", "red_id": "272445888", "level": { "image": "" }, "additional_tags": {}, "ai_agent": false, "current_user": "false", "userid": "ae67fcd02e54acefbd2364b9e5f5a" }, "comment_type": 0, "show_tags_v2": [], "track_id": "interaction-service.local", "id": "69a5ca4e000000000600f667", "like_count": 1, "hidden": false, "status": 0, "sub_comments": [], "ip_location": "云南", "show_type": "common", "friend_liked_msg": "", "translation_strategy": 10, "downvoted": false, "collected": false, "time": 1772472910, "biz_label": { "product_review": false, "group_invite": "false", "rich_text": "unknown" }, "share_strategy": 0 } ], "folded_area": { "hidden_title": "查看被折叠的评论", "show_title": "以下是被折叠的评论", "show_desc": "被折叠评论包含重复或无意义内容" }, "comment_count_l1": 15, "has_more": true, "cursor": "{\"index\":2,\"pageArea\":\"FOLDED\"}", "page_context": "{\"highlight\":[\"天目里\"]}", "all_sort_strategies": [ { "type": "default", "optional_name": "默认", "suffix_name": "" }, { "type": "latest_v2", "optional_name": "最新", "suffix_name": "" }, { "type": "like_count", "optional_name": "最多点赞", "suffix_name": "" } ], "current_sort_strategy": "default" } }
💡 提示:为简化展示,列表类数据样例仅保留 1-2 条记录,实际返回条数以接口响应为准。
小红书 API - 笔记评论 (V2)
获取小红书笔记的评论,支持分页。 响应包含评论内容、发布时间、评论者信息(如可用)以及其他评论元数据。
典型应用场景:
请求参数
tokenstringnoteIdstringlastCursorstringsortstring可用值:
-
normal:默认排序-
latest:最新优先代码示例
💡 环境说明
默认示例使用
https://api.justoneapi.com(prod-global)。中国大陆地区建议替换为http://47.117.133.51:30015(prod-cn) 以获得更好的访问体验。详见 环境选择。响应结果
💡 提示:为简化展示,列表类数据样例仅保留 1-2 条记录,实际返回条数以接口响应为准。