user_idstringwajib
User ID
https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/user-infoReturns public profile details and interaction metrics for a specific Xiaohongshu account based on the provided user ID.
[
{
"data": {
"code": 0,
"data": {
"basic_info": {
"desc": "ππΌπ ππππ πππππ¦πΌ κ³π°Λ³ Λ Λβ©π«§\n \n »» εδΊ«ηζ΄»ζ₯εΈΈππ€",
"gender": 1,
"imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9aoe8?imageView2/2/w/540/format/webp",
"images": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9aoe8?imageView2/2/w/360/format/webp",
"ip_location": "",
"nickname": "Rose",
"red_id": "792402293"
},
"extra_info": {
"blockType": "DEFAULT",
"fstatus": "none"
},
"interactions": [
{
"count": "10+",
"i18n_count": "10+",
"name": "ε
³ζ³¨",
"type": "follows"
},
{
"count": "1δΈ+",
"i18n_count": "10K+",
"name": "η²δΈ",
"type": "fans"
},
{
"count": "1δΈ+",
"i18n_count": "10K+",
"name": "θ·θ΅δΈζΆθ",
"type": "interaction"
}
],
"result": {
"code": 0,
"message": "success",
"success": true
},
"tab_public": {
"collection": false,
"collectionBoard": {
"count": 0,
"display": false,
"lock": false
},
"collectionFile": {
"count": 0,
"display": false,
"lock": false
},
"collectionNote": {
"count": 0,
"display": false,
"lock": false
}
},
"tags": [
{
"icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png",
"tagType": "info"
},
{
"name": "ζΆε°εδΈ»",
"tagType": "profession"
}
]
},
"msg": "ζε",
"ok": true,
"status": 200,
"success": true
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Returns the public profile of a Xiaohongshu account: nickname, bio, avatar URLs, RED ID, profile tags and interaction counts. It needs one input, the account's user_id.
red_id for an account when you only hold its internal user_id.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "5e3a8ee700000000010070c6"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"basic_info": {
"desc": "ππΌπ ππππ πππππ¦πΌ κ³π°Λ³ Λ Λβ©π«§\n \n »» εδΊ«ηζ΄»ζ₯εΈΈππ€",
"gender": 1,
"imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9β¦",
"images": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9β¦",
"ip_location": "",
"nickname": "Rose",
"red_id": "792402293"
},
"collected": 29581,
"extra_info": {
"blockType": "DEFAULT",
"fstatus": "none"
},
"interactions": [
{
"count": "10+",
"i18n_count": "10+",
"name": "ε
³ζ³¨",
"show": false,
"type": "follows"
}
],
"liked": 92964,
"posted": 2,
"result": {
"code": 0,
"message": "success",
"success": true
},
"tab_public": {
"collection": false,
"collectionBoard": {
"count": 0,
"display": false,
"lock": false
},
"collectionFile": {
"count": 0,
"display": false,
"lock": false
},
"collectionNote": {
"count": 0,
"display": false,
"lock": false
}
},
"tags": [
{
"icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png",
"tagType": "info"
}
]
},
"msg": "ζε",
"ok": true,
"status": 200,
"success": true
}
| Field | Meaning |
|---|---|
data.basic_info.nickname | Display name of the account. |
data.basic_info.red_id | The account's public RED ID, shown as a string. |
data.basic_info.desc | Profile bio text. It can contain emoji and line breaks. |
data.basic_info.images / data.basic_info.imageb | Avatar image URLs. The images URL has a width of 360 in its query string and the imageb URL has a width of 540. |
data.basic_info.gender | Numeric gender code. The sample value 1 matches the female icon in data.tags. |
data.interactions[].type | Counter type: follows, fans or interaction. |
data.interactions[].count / data.interactions[].i18n_count | Counter value as a rounded display string. count uses Chinese units such as 1δΈ+, and i18n_count uses 10K+ style. |
data.interactions[].name | Chinese label for the counter, such as ε
³ζ³¨ (following), η²δΈ (followers) or θ·θ΅δΈζΆθ (likes and saves). |
data.liked / data.collected / data.posted | Numeric counts. liked and collected are exact numbers, and posted is the count of posted notes. |
data.tags[] | Profile tags. Items have a tagType of info (with an icon) or profession (with a name). |
user_id is a 24-character hex string such as 5e3a8ee700000000010070c6. Find it with Xiaohongshu (RED) User Search.count values in data.interactions are rounded strings, not exact numbers. Some entries have show set to false.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "5e3a8ee700000000010070c6"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
user_idstringwajibUser ID
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"code": 0,
"data": {
"basic_info": {
"desc": "ππΌπ ππππ πππππ¦πΌ κ³π°Λ³ Λ Λβ©π«§\n \n »» εδΊ«ηζ΄»ζ₯εΈΈππ€",
"gender": 1,
"imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9aoe8?imageView2/2/w/540/format/webp",
"images": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31npcail65m905p38itkaasfspa9aoe8?imageView2/2/w/360/format/webp",
"ip_location": "",
"nickname": "Rose",
"red_id": "792402293"
},
"extra_info": {
"blockType": "DEFAULT",
"fstatus": "none"
},
"interactions": [
{
"count": "10+",
"i18n_count": "10+",
"name": "ε
³ζ³¨",
"type": "follows"
},
{
"count": "1δΈ+",
"i18n_count": "10K+",
"name": "η²δΈ",
"type": "fans"
},
{
"count": "1δΈ+",
"i18n_count": "10K+",
"name": "θ·θ΅δΈζΆθ",
"type": "interaction"
}
],
"result": {
"code": 0,
"message": "success",
"success": true
},
"tab_public": {
"collection": false,
"collectionBoard": {
"count": 0,
"display": false,
"lock": false
},
"collectionFile": {
"count": 0,
"display": false,
"lock": false
},
"collectionNote": {
"count": 0,
"display": false,
"lock": false
}
},
"tags": [
{
"icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png",
"tagType": "info"
},
{
"name": "ζΆε°εδΈ»",
"tagType": "profession"
}
]
},
"msg": "ζε",
"ok": true,
"status": 200,
"success": true
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Xiaohongshu | $0.01 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/xiaohongshu/web-v3/user-info dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.01 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: user_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Xiaohongshu (RED) User Profile Information berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Xiaohongshu secara terpisah.