Xiaohongshu profile API
A Xiaohongshu (rednote) profile: nickname, red id, bio, location, followers and likes and saves.
GET /v1/xiaohongshu/user2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/xiaohongshu/user?id=5ff0e6410000000001008400",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "basicInfo": { "nickname": "小王不爱睡", "redId": "hh06ovo", "desc": "谢谢大家喜欢 禁止拿图发其他平台!\n📮2027812575@qq.com", "gender": 1, "ipLocation": "", "images": "https://sns-avatar-qc.rednotecdn.com/avatar/61b1d83dc6f75a2f6b7215fa.jpg?imageView2/2/w/360/format/webp", "imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/61b1d83dc6f75a2f6b7215fa.jpg?imageView2/2/w/540/format/webp" }, "interactions": [ { "type": "follows", "count": "8", "name": "关注", "i18nCount": "8", "show": false }, { "type": "fans", "count": "1万+", "i18nCount": "1万+", "show": false, "name": "粉丝" }, "… 1 more" ], "tags": [ { "icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png", "tagType": "info" } ], "result": { "success": true, "code": 0, "message": "success" }, "extraInfo": { "fstatus": "none", "blockType": "DEFAULT" }, "posted": 488, "liked": 680418, "collected": 147646, "tabPublic": { "collection": false, "collectionNote": { "count": 0, "display": false, "lock": false }, "collectionBoard": { "display": false, "lock": false, "count": 0 }, "collectionFile": { "display": false, "lock": false, "count": 0 } }, "user_id": "5ff0e6410000000001008400", "url": "https://www.rednote.com/user/profile/5ff0e6410000000001008400"}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). |
Response fields
200 with a XiaohongshuUser, in Xiaohongshu’s own JSON.
| Field | Type | Description |
|---|---|---|
user_id | string | |
basicInfo | object | |
interactions | object[] | follows, fans (followers), interaction (likes and saves), as display strings. |
tags | object[] | |
url | string |
Status codes
| Status | Meaning |
|---|---|
200 | The profile. |
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
Which links work?
xiaohongshu.com and rednote.com profile URLs.
Xiaohongshu is a trademark of Xingyin Information Technology. We are not affiliated with or endorsed by Xingyin Information Technology.