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

Xiaohongshu PGY note featured comments

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

Get PGY note featured comments on Xiaohongshu. Returns the platform data as structured JSON.

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

Phòng thử nghiệm

Đầu vào
Note ID
Đầ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 PGY note featured comments API

Returns the featured comments on a Xiaohongshu note as listed in the PGY platform. Each item holds a top-level comment, its replies, and the profiles of users who took part. The only input is note_id.

Use cases

  • Read the featured comments on a sponsored note to check how the audience reacts to a creator's post.
  • Collect reply threads under a note to review the tone of the conversation before a brand partnership.
  • Export commenter nicknames and avatars to see which accounts engage with a note.
  • Save comment text and timestamps for a note to compare discussion across several campaign posts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/note-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"note_id": "6a20edfa0000000021020951"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
note_idstringYesNote ID

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": [
    {
      "comment": {
        "atUsers": null,
        "content": "哈哈哈哈是很抽象了",
        "createTime": "2026-06-04 16:45",
        "enabled": true,
        "id": 426189652624445299,
        "idStr": "426189652624445299",
        "likeCount": 0,
        "noteId": 282074133146503505
      },
      "createTime": 1780562724000,
      "l1L2Comments": [
        {
          "atUsers": null,
          "content": "[大笑R]",
          "createTime": "2026-06-04 16:58",
          "enabled": true,
          "id": 426189665996270140,
          "idStr": "426189665996270140",
          "likeCount": 0,
          "noteId": 282074133146503505
        }
      ],
      "updateTime": 1780563520000,
      "userMap": {
        "154079314044039259": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31hgr2d32k20048r6a7ed9c2rtq5ln80…",
          "userId": "5823dcd46a6a6932625eb05b",
          "userNickName": "猫尾纱"
        },
        "206148394384023427": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31el0tfrrle6g5n32rtd4dns3332hv88…",
          "userId": "5c62df5a000000001102df83",
          "userNickName": "杭州哈哈哈"
        },
        "206152431183730181": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g…",
          "userId": "5c668b3e0000000012021605",
          "userNickName": "一颗白菜"
        },
        "207686035407138026": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/61d9594d0000000010006cea.jpg?imageView2/…",
          "userId": "61d9594d0000000010006cea",
          "userNickName": "韩国小怡子"
        },
        "207796091125561765": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31sqch5lc5c0g5ohte6ik1ud5dgbbq9g…",
          "userId": "623d71a5000000001000f9a5",
          "userNickName": "小Yang又困la💤"
        },
        "208971837144499622": {
          "gender": "FEMALE",
          "imageUrl": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo31eus34uima005pjaotcgu1d6agk6jhg…",
          "userId": "666ac75900000000030305a6",
          "userNickName": "一个大贤贤"
        }
      }
    }
  ],
  "guid": null,
  "msg": "成功",
  "success": true
}

Response fields

FieldMeaning
data[].comment.contentText of the top-level featured comment. Emoji codes such as [大笑R] appear inline as text.
data[].comment.createTimeTime the comment was posted, as a formatted string like 2026-06-04 16:45.
data[].comment.id / data[].comment.idStrComment ID as a number and as a string. Use idStr to avoid precision loss in some JSON parsers.
data[].comment.likeCountNumber of likes on the top-level comment.
data[].comment.noteIdInternal numeric ID of the note the comment belongs to.
data[].l1L2Comments[]Replies attached to the featured comment. Each reply has content, createTime, id, idStr, likeCount and noteId.
data[].createTime / data[].updateTimeMillisecond timestamps for the featured comment entry and its last update.
data[].userMapObject of user profiles keyed by an internal numeric key. Each profile has userId, userNickName, gender and imageUrl (avatar).

Notes

  • note_id is the 24-character note ID, for example 6a20edfa0000000021020951. This differs from the numeric comment.noteId in the response.
  • The userMap object is repeated in every item and contains the same users. Comments do not name their author directly in the visible fields, so match users by reading userMap for the whole item.
  • For the note's own metrics, call Xiaohongshu (RED) PGY Note Detail.
  • To read all public comments on a note, use Xiaohongshu (RED) Note Comments.

Pricing

$0.01 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.01 mỗi lần gọiJSON
Xiaohongshu$0.02 mỗi lần gọiJSON
Xiaohongshu$0.02 mỗi lần gọiJSON
Xiaohongshu$0.02 mỗi lần gọiJSON
Xiaohongshu$0.02 mỗi lần gọiJSON
Xiaohongshu$0.02 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 PGY note featured comments?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/xiaohongshu/pgy/note-comments 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 PGY note featured comments có giá bao nhiêu?

$0.01 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 PGY note featured comments chấp nhận những tham số nào?

Bắt buộc: note_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Xiaohongshu PGY note featured 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 PGY note featured 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.