categorystring
Category channel ID
ค่าเริ่มต้น: "homefeed_recommend"
https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeedRetrieves recommended notes from the Xiaohongshu homepage feed. Supports filtering by category channel, restricting results to image notes, and paginating via cursor score.
[
{
"data": {
"code": 0,
"data": {
"cursor_score": "1.7860909709800014E9",
"items": [
{
"id": "6a583e5a000000000100d5c2",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 2560,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/f302fd389f65422b2d887becb743658d/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/339b8a60c24dac2415db193a8be736fe/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/339b8a60c24dac2415db193a8be736fe/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/f302fd389f65422b2d887becb743658d/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_prv_1?src=A",
"width": 1920
},
"display_title": "避雷肯德基,品控咋越来越差",
"interact_info": {
"liked": false,
"liked_count": "2172"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31jktdrnlio0049q2qcslp3ssldsugcg",
"nick_name": "WY",
"nickname": "WY",
"user_id": "59bdf95c51783a05d3c78f9c",
"xsec_token": "ABID-WX7Flbuupq1AS9m4SGnSxDJY4EYp1yKWDeazkxmg="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABCPGMn7J3_0h0pJSktU7sqn2KIHL1kKs4rMU-dbkc_vg="
},
{
"id": "6a4b219800000000160253c8",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 1744,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/3cc501b75515e4204672b95c587753a7/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/b95f88b99db85d8d392538fb8dce25ff/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/b95f88b99db85d8d392538fb8dce25ff/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/3cc501b75515e4204672b95c587753a7/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_prv_1?src=A",
"width": 1308
},
"display_title": "1800请的阿姨今天35℃给我做的饭",
"interact_info": {
"liked": false,
"liked_count": "1717"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31cktvjccgu004a1nci4blviho4k9590",
"nick_name": "哆尔",
"nickname": "哆尔",
"user_id": "5a9048ba11be104c9cb2fe51",
"xsec_token": "ABs2EJ74MnYmIbpd2T3ORn0no4DSYJIMw9AswvSnMRrTc="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABQr8kTK3gyMpxjbWNmF1izTbkjcHkhKkl4q6xmqiE6z8="
},
{
"id": "6a56d2800000000011018150",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 1600,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/b29ceb129cc4f37acc87d0f98e808c74/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/a4e6d60104742ab855daee996332cfc4/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/a4e6d60104742ab855daee996332cfc4/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/b29ceb129cc4f37acc87d0f98e808c74/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_prv_1?src=A",
"width": 1200
},
"display_title": "姨妈第三天排出来惊天大血块",
"interact_info": {
"liked": false,
"liked_count": "490"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo321jfcv30ms0g5nt8tqgg84092rne2cg",
"nick_name": "胖圆调理记",
"nickname": "胖圆调理记",
"user_id": "5fa8eea10000000001001009",
"xsec_token": "AB0muILKa8QbNcXgWXARB43xB6zlSA6v4CYuYDruS-qQc="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABHPMhErDdQ-NH2QO_H98ftDoJIfX4OwACA1bBEYWN9vE="
},
"… 16 more items in the full response"
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns a page of recommended notes from the Xiaohongshu homepage feed. All input parameters are optional, so an empty request returns the default homefeed_recommend channel with 20 notes.
xsec_token values to fetch full note details afterward.liked_count across video and image notes to see which format draws more likes in the feed.need_filter_image for building a visual inspiration set.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | No | Category channel ID |
cursor_score | string | No | Pagination cursor |
need_filter_image | boolean | No | Image notes only |
num | integer | No | Number of results, max 40 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"cursor_score": "seo_homefeed_20261031_19",
"items": [
{
"id": "6ad817e6000000002403ce45",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 1920,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202611031547/b242cb6396e334c65c2b748fe75b9e09/…"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202611031547/af943230633f8f3511e8268ad03a65de/…",
"url_pre": "http://sns-web-i10.rednotecdn.com/202611031547/b242cb6396e334c65c2b748fe75b9e09/…",
"width": 960
},
"display_title": "怒扒pv20遍还原未央城妙妙猫",
"interact_info": {
"liked": false,
"liked_count": "4442"
},
"type": "video",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo322g7jfr27u604a0vmckkdhvqd4u…",
"nick_name": "纳兰凤鸣",
"nickname": "纳兰凤鸣",
"user_id": "5a636946e8ac2b756187c7fa",
"xsec_token": "ABODvCtL…"
},
"video": {
"capa": {
"duration": 22
}
}
},
"xsec_token": "ABflsL_F…"
}
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
| Field | Meaning |
|---|---|
data.items[].id | ID of the note. Use it with the note detail APIs. |
data.items[].xsec_token | Security token for the note. Pass it along with the note ID when requesting note details. |
data.items[].note_card.display_title | Title shown on the note card. |
data.items[].note_card.type | Note format. The response shows video and normal as values. |
data.items[].note_card.interact_info.liked_count | Number of likes on the note, returned as a string. |
data.items[].note_card.cover.url_default / data.items[].note_card.cover.url_pre | Cover image URLs. url_default is the standard version and url_pre is the preview version. |
data.items[].note_card.cover.width / data.items[].note_card.cover.height | Cover image dimensions. |
data.items[].note_card.user.user_id | ID of the note author. |
data.items[].note_card.user.nickname / data.items[].note_card.user.avatar | Display name and avatar URL of the author. |
data.items[].note_card.video.capa.duration | Length of the video. Only present on video notes. |
data.cursor_score | Cursor value to send as cursor_score to request the next page. |
data.cursor_score from the response as cursor_score in the next request to page forward. num accepts up to 40.category channel IDs.id and xsec_token to Xiaohongshu (RED) Web Note Details to get the full note.xsec_token under note_card.user, separate from the note-level xsec_token.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"num": 20,
"category": "homefeed_recommend",
"cursor_score": "",
"need_filter_image": false
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
categorystringCategory channel ID
ค่าเริ่มต้น: "homefeed_recommend"
cursor_scorestringPagination cursor
ค่าเริ่มต้น: ""
need_filter_imagebooleanImage notes only
ค่าเริ่มต้น: false
numintegerNumber of results, max 40
ค่าเริ่มต้น: 20
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"code": 0,
"data": {
"cursor_score": "1.7860909709800014E9",
"items": [
{
"id": "6a583e5a000000000100d5c2",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 2560,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/f302fd389f65422b2d887becb743658d/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/339b8a60c24dac2415db193a8be736fe/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/339b8a60c24dac2415db193a8be736fe/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/f302fd389f65422b2d887becb743658d/note_pre_post_uhdr/1040g3r0322lroomgnk0049q2qcslp3ss936t820!nc_n_webp_prv_1?src=A",
"width": 1920
},
"display_title": "避雷肯德基,品控咋越来越差",
"interact_info": {
"liked": false,
"liked_count": "2172"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31jktdrnlio0049q2qcslp3ssldsugcg",
"nick_name": "WY",
"nickname": "WY",
"user_id": "59bdf95c51783a05d3c78f9c",
"xsec_token": "ABID-WX7Flbuupq1AS9m4SGnSxDJY4EYp1yKWDeazkxmg="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABCPGMn7J3_0h0pJSktU7sqn2KIHL1kKs4rMU-dbkc_vg="
},
{
"id": "6a4b219800000000160253c8",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 1744,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/3cc501b75515e4204672b95c587753a7/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/b95f88b99db85d8d392538fb8dce25ff/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/b95f88b99db85d8d392538fb8dce25ff/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/3cc501b75515e4204672b95c587753a7/notes_pre_post/1040g3k8322922t8vnk004a1nci4blvihiqp1r10!nc_n_webp_prv_1?src=A",
"width": 1308
},
"display_title": "1800请的阿姨今天35℃给我做的饭",
"interact_info": {
"liked": false,
"liked_count": "1717"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31cktvjccgu004a1nci4blviho4k9590",
"nick_name": "哆尔",
"nickname": "哆尔",
"user_id": "5a9048ba11be104c9cb2fe51",
"xsec_token": "ABs2EJ74MnYmIbpd2T3ORn0no4DSYJIMw9AswvSnMRrTc="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABQr8kTK3gyMpxjbWNmF1izTbkjcHkhKkl4q6xmqiE6z8="
},
{
"id": "6a56d2800000000011018150",
"ignore": false,
"model_type": "note",
"note_card": {
"cover": {
"file_id": "",
"height": 1600,
"info_list": [
{
"image_scene": "WB_PRV",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/b29ceb129cc4f37acc87d0f98e808c74/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_prv_1?src=A"
},
{
"image_scene": "WB_DFT",
"url": "http://sns-web-i10.rednotecdn.com/202608071622/a4e6d60104742ab855daee996332cfc4/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_mw_1?src=A"
}
],
"url": "",
"url_default": "http://sns-web-i10.rednotecdn.com/202608071622/a4e6d60104742ab855daee996332cfc4/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_mw_1?src=A",
"url_pre": "http://sns-web-i10.rednotecdn.com/202608071622/b29ceb129cc4f37acc87d0f98e808c74/1040g2sg322kf3ah172f05nt8tqgg8409t64uu7g!nc_n_webp_prv_1?src=A",
"width": 1200
},
"display_title": "姨妈第三天排出来惊天大血块",
"interact_info": {
"liked": false,
"liked_count": "490"
},
"type": "normal",
"user": {
"avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo321jfcv30ms0g5nt8tqgg84092rne2cg",
"nick_name": "胖圆调理记",
"nickname": "胖圆调理记",
"user_id": "5fa8eea10000000001001009",
"xsec_token": "AB0muILKa8QbNcXgWXARB43xB6zlSA6v4CYuYDruS-qQc="
}
},
"track_id": "2gqbhexns9qta5r33xywx",
"xsec_token": "ABHPMhErDdQ-NH2QO_H98ftDoJIfX4OwACA1bBEYWN9vE="
},
"… 16 more items in the full response"
]
},
"msg": "成功",
"ok": true,
"status": 200,
"success": true
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
Xiaohongshu | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/homefeed โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: category (string), cursor_score (string), need_filter_image (boolean) และ num (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Xiaohongshu (RED) Homepage Feed ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Xiaohongshu API แยกต่างหาก