noteIdstringbắt buộc
A Xiaohongshu note ID or an explore URL containing /explore/.
https://api.sandbase.ai/v1/api/xiaohongshu/note-detailGet Xiaohongshu (RedNote) details for a note identified by a note ID or supported explore URL. Use it to perform direct note lookup and content review from stored identifiers or shared explore links.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the details of one Xiaohongshu (RedNote) note: its text, hashtags, images, engagement counts, and author. It needs a note ID or an explore URL containing /explore/ in the noteId parameter.
liked_count, collected_count, and comments_count for a note over repeated calls.red_id and nickname.hash_tag and ats.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/note-detail" \
-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/. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
{
"comment_list": [],
"model_type": "note",
"note_list": [
{
"api_upgrade": -1,
"ats": [
{
"followed": false,
"id": "622f299f00000000100098c8",
"level": {
"image": ""
},
"name": "热点薯",
"nickname": "热点薯",
"red_official_verified": false,
"red_official_verify_type": 0,
"show_red_official_verify_icon": false
}
],
"biz_map": {},
"co_produce_link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22together_post%22%2C%22extr…",
"collected": false,
"collected_count": 3209,
"comment_prompt_config": {
"forbidden_cmt_type": 0,
"placeholder_long": "有话要说,快来评论",
"placeholder_short": "说点什么..."
},
"comments_count": 511,
"content_trans_info": {
"strategy": 10
},
"cooperate_binds": [],
"countdown": 0,
"desc": "10月27日,东鹏饮料集团发布关于终止与基利安·姆巴佩合作的声明:我司坚决反对、零容忍伤害民族感情的行为。即日起终止与基利安·姆巴佩全部合作。(财联社)#新闻[…"
}
],
"track_id": "",
"user": {
"followed": false,
"fstatus": "none",
"id": "64b898310000000014037b21",
"image": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo31qobul3rgm005p5oj0ol6up1…",
"level": {
"image": ""
},
"live": {
"has_draw": false,
"has_goods": false,
"has_red_packet": false,
"live_link": "xhsdiscover://live_audience?room_id=570525084055212707¬e_id=6ae00b99000000001…",
"live_status": 2,
"room_id": "570525084055212707",
"start_time": 1793690366000,
"user_id": "64b898310000000014037b21"
},
"name": "潇湘晨报",
"nickname": "潇湘晨报",
"red_id": "63048342102",
"red_official_verified": false,
"red_official_verify_type": 0,
"show_red_official_verify_icon": false
}
}
]
| Field | Meaning |
|---|---|
note_list[].id | ID of the note. It matches the noteId you sent. |
note_list[].desc | Full note text, including the hashtags and @mentions written in it. |
note_list[].liked_count / collected_count / comments_count | Number of likes, collects, and comments on the note. |
note_list[].hash_tag[].name | Name of each hashtag topic on the note. id holds the topic ID. |
note_list[].ats[].nickname | Nickname of each account mentioned in the note. id holds that account's user ID. |
note_list[].images_list[] | One row per image. fileid identifies the image, width and height give its size, and origin_img holds the original size. |
note_list[].ip_location | Location label shown for the note, such as a province name. |
note_list[].mini_program_info.webpage_url | Web link to the note on xiaohongshu.com. |
user.nickname / user.red_id | Display name and public RED ID of the note's author. |
user.id | User ID of the author. user.userid holds the same value. |
note_list[], and the author sits in user.comment_list is empty in this response. Call Xiaohongshu Note Comments to read the comments on a note.user.id with Xiaohongshu (RED) User Posted Notes to list the author's other notes.$0.021429 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/note-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"noteId": "6ae00b99000000001200a9f9"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
noteIdstringbắt buộcA Xiaohongshu note ID or an explore URL containing /explore/.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Xiaohongshu Note DetailsAPI này Xiaohongshu | $0.021429 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Xiaohongshu | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/xiaohongshu/note-detail 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.
$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ý.
Bắt buộc: noteId (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. Xiaohongshu Note Details 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.