Xiaohongshu user notes API
A Xiaohongshu account’s latest notes as its profile shows them: titles, likes, covers, pinned notes.
GET /v1/xiaohongshu/user/posts2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/xiaohongshu/user/posts?id=5ff0e6410000000001008400",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "data": [ { "noteId": "", "type": "video", "displayTitle": "好喜欢这套 休闲帅气~", "time": 1758014155000, "user": { "userId": "5ff0e6410000000001008400", "nickname": "小王不爱睡", "nickName": "小王不爱睡", "avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/61b1d83dc6f75a2f6b7215fa.jpg" }, "interactInfo": { "likedCount": "32", "sticky": false, "liked": false }, "cover": { "url": "", "traceId": "", "infoList": [ { "imageScene": "WB_PRV", "url": "http://sns-web-i10.rednotecdn.com/202611251029/ca1c4f5cedc179418177b77f6570343d/1040g00831mg4m13cli7g5nvgsp0g9100mel8m8o…" }, { "imageScene": "WB_DFT", "url": "http://sns-web-i10.rednotecdn.com/202611251029/bbafe997894468558dd32d036d600d54/1040g00831mg4m13cli7g5nvgsp0g9100mel8m8o…" } ], "urlPre": "http://sns-web-i10.rednotecdn.com/202611251029/ca1c4f5cedc179418177b77f6570343d/1040g00831mg4m13cli7g5nvgsp0g9100mel8m8o…", "urlDefault": "http://sns-web-i10.rednotecdn.com/202611251029/bbafe997894468558dd32d036d600d54/1040g00831mg4m13cli7g5nvgsp0g9100mel8m8o…", "fileId": "", "height": 1440, "width": 1080 }, "xsecToken": "ABhu_Cqz8_LewlXka4tu0shQoDhOeSAXIEhiuBC1qij2c=", "noteTranslation": { "displayTitleTrans": "Love this set, casual and handsome~", "imageTransList": [ { "imageIndex": 0, "needTranslation": true, "translatedUrl": "https://sns-translate-i11.rednotecdn.com/cloudrender-translate/bfe01203-6e2b-4bf9-9021-5df5282d1867.jpg!1080jpg?ap=25&sc…" } ], "displayTitleLanguage": "zh_cn" } }, { "noteId": "", "type": "video", "displayTitle": "条纹衬衫配牛仔裤真的好帅!!", "time": 1756623126000, "user": { "userId": "5ff0e6410000000001008400", "nickname": "小王不爱睡", "nickName": "小王不爱睡", "avatar": "https://sns-avatar-qc.rednotecdn.com/avatar/61b1d83dc6f75a2f6b7215fa.jpg" }, "interactInfo": { "likedCount": "56", "sticky": false, "liked": false }, "cover": { "urlPre": "http://sns-web-i10.rednotecdn.com/202611251029/21e373e9fe9bf9d29174fe15a4814250/1040g00831lrddi65li005nvgsp0g91008sdru18…", "urlDefault": "http://sns-web-i10.rednotecdn.com/202611251029/14fa063b5100ae24f7eef48aec321986/1040g00831lrddi65li005nvgsp0g91008sdru18…", "fileId": "", "height": 1440, "width": 1080, "url": "", "traceId": "", "infoList": [ { "imageScene": "WB_PRV", "url": "http://sns-web-i10.rednotecdn.com/202611251029/21e373e9fe9bf9d29174fe15a4814250/1040g00831lrddi65li005nvgsp0g91008sdru18…" }, { "imageScene": "WB_DFT", "url": "http://sns-web-i10.rednotecdn.com/202611251029/14fa063b5100ae24f7eef48aec321986/1040g00831lrddi65li005nvgsp0g91008sdru18…" } ] }, "xsecToken": "ABhu_Cqz8_LewlXka4tu0shQoDhOeSAXIEhiuBC1qij2c=", "noteTranslation": { "imageTransList": [ { "imageIndex": 0, "needTranslation": false } ], "displayTitleLanguage": "zh_cn", "displayTitleTrans": "Striped shirts with jeans look really ha" } }, "… 3 more" ], "meta": { "result_count": 5, "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
idquery | string | The account id (24 hex characters). Example: 5ff0e6410000000001008400. |
urlquery | string | Or the profile URL (xiaohongshu.com or rednote.com). |
limitquery | integer | Notes per page, 1 to 30. Defaults to 30. |
sincequery | string | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01. |
untilquery | string | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31. |
Response fields
200 with a XiaohongshuNotes, in Xiaohongshu’s own JSON.
| Field | Type | Description |
|---|---|---|
data | XiaohongshuNote[] | |
meta | object |
Status codes
| Status | Meaning |
|---|---|
200 | The latest notes. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Xiaohongshu is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is it paged?
No: the guest profile shows the latest 30.
Xiaohongshu is a trademark of Xingyin Information Technology. We are not affiliated with or endorsed by Xingyin Information Technology.