note_idstring필수
Note ID
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/note-commentsGet PGY note featured comments on Xiaohongshu. Returns the platform data as structured JSON.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
note_id | string | Yes | Note ID |
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
}
| Field | Meaning |
|---|---|
data[].comment.content | Text of the top-level featured comment. Emoji codes such as [大笑R] appear inline as text. |
data[].comment.createTime | Time the comment was posted, as a formatted string like 2026-06-04 16:45. |
data[].comment.id / data[].comment.idStr | Comment ID as a number and as a string. Use idStr to avoid precision loss in some JSON parsers. |
data[].comment.likeCount | Number of likes on the top-level comment. |
data[].comment.noteId | Internal 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[].updateTime | Millisecond timestamps for the featured comment entry and its last update. |
data[].userMap | Object of user profiles keyed by an internal numeric key. Each profile has userId, userNickName, gender and imageUrl (avatar). |
note_id is the 24-character note ID, for example 6a20edfa0000000021020951. This differs from the numeric comment.noteId in the response.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.$0.01 per successful call. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
note_idstring필수Note ID
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Xiaohongshu | $0.01 / 호출 | JSON |
Xiaohongshu | $0.02 / 호출 | JSON |
Xiaohongshu | $0.02 / 호출 | JSON |
Xiaohongshu | $0.02 / 호출 | JSON |
Xiaohongshu | $0.02 / 호출 | JSON |
Xiaohongshu | $0.02 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/xiaohongshu/pgy/note-comments에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.01, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: note_id (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Xiaohongshu PGY note featured comments은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Xiaohongshu API 액세스를 별도로 신청할 필요는 없습니다.