Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Xiaohongshu Note Comments

Tài liệu API
https://api.sandbase.ai/v1/api/xiaohongshu/note-comment

Get 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.

Giá
$0.021429USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
A Xiaohongshu note ID or an explore URL containing /explore/.
Pagination cursor from the previous page (use the cursor value returned by the last response).
Sort strategy for the result set.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Xiaohongshu Note Comments API

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.

Use cases

  • Pull the newest comments on a brand note to review customer feedback.
  • Sort by like_count to find the most supported opinions in a discussion.
  • Collect comment text, author, and location to analyze audience reactions to a post.
  • Page through all comments on a note to check for spam or comments that need moderation.

Request

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.

Parameters

NameTypeRequiredDescription
noteIdstringYesA Xiaohongshu note ID or an explore URL containing /explore/.
lastCursorstringNoPagination cursor from the previous page (use the cursor value returned by the last response).
sortstringNoSort strategy for the result set.

Example response

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"
}

Response fields

FieldMeaning
comment_count / comment_count_l1Total comments on the note, and the count of top-level comments only. In this response they are 511 and 509.
comments[].idID of the comment.
comments[].contentComment text. It can include platform emoji codes such as [点赞R].
comments[].like_countNumber of likes on the comment.
comments[].timeComment time as a Unix timestamp in seconds.
comments[].ip_locationLocation 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.useridDisplay name, public RED ID, and internal user ID of the commenter.
has_moretrue when more comments are available on the next page.
cursorCursor string for the next page. Pass it as lastCursor.
current_sort_strategySort that was applied to this result. The default request returned latest_v2.

Notes

  • Take the note ID from the /explore/ part of a note URL, or pass the full explore URL as noteId.
  • To get the next page, send the cursor value from the response as lastCursor. Keep going while has_more is true.
  • Use the same sort value on every page of one note.
  • To get note details, call Xiaohongshu Note Details.

Pricing

$0.021429 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Xiaohongshu$0.021429 mỗi lần gọiJSON
Xiaohongshu$0.01 mỗi lần gọiJSON
Xiaohongshu$0.01 mỗi lần gọiJSON
Xiaohongshu$0.01 mỗi lần gọiJSON
Xiaohongshu$0.01 mỗi lần gọiJSON
Xiaohongshu$0.01 mỗi lần gọiJSON

Hướng dẫn:Best Xiaohongshu API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Xiaohongshu Note Comments?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/xiaohongshu/note-comment với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Xiaohongshu Note Comments có giá bao nhiêu?

$0.021429 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Xiaohongshu Note Comments chấp nhận những tham số nào?

Bắt buộc: noteId (string). Tùy chọn: lastCursor (string) và sort (một trong số normal, latest, like_count). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Xiaohongshu Note Comments trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Xiaohongshu không?

Không. Xiaohongshu Note Comments chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Xiaohongshu.