100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
idquerystringThe account id (24 hex characters). Example: 5ff0e6410000000001008400.
urlquerystringOr the profile URL (xiaohongshu.com or rednote.com).
Response fields

200 with a XiaohongshuUser, in Xiaohongshu’s own JSON.

FieldTypeDescription
user_idstring
basicInfoobject
interactionsobject[]follows, fans (followers), interaction (likes and saves), as display strings.
tagsobject[]
urlstring
Status codes
StatusMeaning
200The profile.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account does not exist.
429Too many requests. Wait for Retry-After seconds.
503Xiaohongshu 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.