userIdstring必填
A Xiaohongshu user ID or a profile URL containing /user/profile/.
https://api.sandbase.ai/v1/api/xiaohongshu/user-note-listGet a user's published public Xiaohongshu (RedNote) notes by user ID or supported profile URL, with lastCursor pagination. This endpoint does not create, upload or publish notes.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns a page of public notes published by one Xiaohongshu (RedNote) user. Each note includes its title, text, images or video details, engagement counts and author summary. The input is a user ID or a profile URL containing /user/profile/.
likes, collected_count and comments_count across a creator's notes.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user-note-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId": "64b898310000000014037b21"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | A Xiaohongshu user ID or a profile URL containing /user/profile/. |
lastCursor | string | No | Omit on the first request. For the next page, pass the last note's cursor value from the previous response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"has_more": true,
"notes": [
{
"advanced_widgets_groups": {
"groups": [
{
"fetch_types": [
"guos_test"
],
"mode": 1
}
]
},
"ats": [],
"collected_count": 678,
"comments_count": 817,
"create_time": 1792745872,
"cursor": "6adb2190000000002403bf87",
"desc": "🎁各位小红薯粉丝们!本周福利来袭,100元喜茶礼品卡等你来拿!\n\t\n潇湘晨报小红书为感谢各位一路以来的厚爱和支持(疯狂比心),宝子们的奶茶我们来安排!本周专属粉…",
"display_title": "粉丝福利:送100元喜茶礼品卡",
"guide_context": "{\"show_goods_c2c\":false}",
"has_music": false,
"id": "6adb2190000000002403bf87",
"images_list": [
{
"fileid": "spectrum/1040g0k0326lm1uo04c005p5oj0ol6up1hfehkuo",
"height": 2400,
"original": "",
"trace_id": "spectrum/1040g0k0326lm1uo04c005p5oj0ol6up1hfehkuo",
"url": "https://sns-i11-ae.rednotecdn.com/spectrum/1040g0k0326lm1uo04c005p5oj0ol6up1hfeh…",
"url_size_large": "https://sns-i11-ae.rednotecdn.com/spectrum/1040g0k0326lm1uo04c005p5oj0ol6up1hfeh…",
"width": 1440
}
]
}
],
"tags": []
}
| Field | Meaning |
|---|---|
has_more | true when more notes are available after this page. |
notes[].id / notes[].cursor | The note ID and the cursor for that note. In the sample the two values are identical. Pass the last note's cursor as lastCursor to get the next page. |
notes[].title / notes[].display_title / notes[].desc | The note headline and the note body text. desc can contain line breaks and emoji. |
notes[].type | The note format. The sample shows normal for image notes and video for a video note. |
notes[].likes / notes[].collected_count / notes[].comments_count / notes[].share_count | Engagement counts for the note. view_count is also present but shows 0 in the sample. |
notes[].create_time / notes[].last_update_time / notes[].time_desc | create_time and last_update_time look like Unix timestamps in seconds, and last_update_time is 0 when the note was not updated. time_desc is a short display string such as 10-23 or 1分钟前. |
notes[].sticky | true when the note is pinned on the profile. |
notes[].images_list[].url_size_large / notes[].images_list[].width / notes[].images_list[].height | The large image URL and its dimensions for each image in the note. |
notes[].video_info_v2.media.stream.h264[] / notes[].video_info_v2.capa.duration | For video notes, the list of H.264 stream variants with bitrate and backup_urls, plus the video duration. H.265 variants appear under h265. |
notes[].user.userid / notes[].user.nickname | The ID and display name of the note's author. |
userId from a profile URL path after /user/profile/, or send the full profile URL.lastCursor. For the next page, send the cursor of the last note in notes[], and keep going while has_more is true.sticky is true) appear first in the sample, ahead of the other notes.$0.021429 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user-note-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
userIdstring必填A Xiaohongshu user ID or a profile URL containing /user/profile/.
lastCursorstringOmit on the first request. For the next page, pass the last note's cursor value from the previous response.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Xiaohongshu | 每次呼叫 $0.021429 | JSON |
Xiaohongshu | 每次呼叫 $0.01 | JSON |
Xiaohongshu | 每次呼叫 $0.01 | JSON |
Xiaohongshu | 每次呼叫 $0.01 | JSON |
Xiaohongshu | 每次呼叫 $0.01 | JSON |
Xiaohongshu | 每次呼叫 $0.01 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/user-note-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.021429,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:userId (string)。 選填:lastCursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Xiaohongshu User Notes 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。