noteIdstringआवश्यक
A Xiaohongshu note ID or an explore URL containing /explore/.
https://api.sandbase.ai/v1/api/xiaohongshu/note-commentGet comments for a Xiaohongshu (RedNote) note with cursor pagination and normal, latest, or like-count sorting. Use it to support feedback review, discussion analysis, and comment moderation workflows.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the comments on one Xiaohongshu (RedNote) note, one page at a time. It needs a note ID or an explore URL as noteId, and it can sort by normal, latest, or like_count.
like_count to find the most supported opinions in a discussion.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/note-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"noteId": "6ae00b99000000001200a9f9"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
noteId | string | Yes | A Xiaohongshu note ID or an explore URL containing /explore/. |
lastCursor | string | No | Pagination cursor from the previous page (use the cursor value returned by the last response). |
sort | string | No | Sort strategy for the result set. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"all_sort_strategies": [
{
"optional_name": "默认",
"suffix_name": "",
"type": "default"
}
],
"comment_count": 511,
"comment_count_l1": 509,
"comments": [
{
"at_users": [],
"biz_label": {
"group_invite": "false",
"product_review": false,
"rich_text": "unknown"
},
"collected": false,
"comment_type": 0,
"content": "支持",
"downvoted": false,
"friend_liked_msg": "",
"hidden": false,
"id": "6ae1ef66000000000b013365",
"ip_location": "福建",
"like_count": 1,
"liked": false
}
],
"current_sort_strategy": "latest_v2",
"cursor": "{\"contextId\":\"18776461ea634fadb544f0bfa4d12332\",\"cursor\":\"6ae14ceb00000000120342…",
"has_more": true,
"page_context": "{\"exposed_l1_ids\":\"6ae1ef66000000000b013365,6ae1eb02000000001202bc7c,6ae1e8a4000…",
"user_id": "64b898310000000014037b21"
}
| Field | Meaning |
|---|---|
comment_count / comment_count_l1 | Total comments on the note, and the count of top-level comments only. In this response they are 511 and 509. |
comments[].id | ID of the comment. |
comments[].content | Comment text. It can include platform emoji codes such as [点赞R]. |
comments[].like_count | Number of likes on the comment. |
comments[].time | Comment time as a Unix timestamp in seconds. |
comments[].ip_location | Location label shown with the comment, such as a province or country. |
comments[].sub_comment_count / comments[].sub_comments[] | Count of replies to the comment, and the reply items that came with this page. |
comments[].user.nickname / comments[].user.red_id / comments[].user.userid | Display name, public RED ID, and internal user ID of the commenter. |
has_more | true when more comments are available on the next page. |
cursor | Cursor string for the next page. Pass it as lastCursor. |
current_sort_strategy | Sort that was applied to this result. The default request returned latest_v2. |
/explore/ part of a note URL, or pass the full explore URL as noteId.cursor value from the response as lastCursor. Keep going while has_more is true.sort value on every page of one note.$0.021429 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/note-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sort": "latest",
"noteId": "6ae00b99000000001200a9f9"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
noteIdstringआवश्यकA Xiaohongshu note ID or an explore URL containing /explore/.
lastCursorstringPagination cursor from the previous page (use the cursor value returned by the last response).
sortstringSort strategy for the result set.
डिफ़ॉल्ट: "latest"
संभावित मान: normal, latest, like_count
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Xiaohongshu | $0.021429 प्रति कॉल | JSON |
Xiaohongshu | $0.01 प्रति कॉल | JSON |
Xiaohongshu | $0.01 प्रति कॉल | JSON |
Xiaohongshu | $0.01 प्रति कॉल | JSON |
Xiaohongshu | $0.01 प्रति कॉल | JSON |
Xiaohongshu | $0.01 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/xiaohongshu/note-comment पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.021429 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: noteId (string)। वैकल्पिक: lastCursor (string) और sort (normal, latest, like_count में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Xiaohongshu Note Comments SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Xiaohongshu API access के लिए आवेदन करने की आवश्यकता नहीं है।