userIdstringจำเป็น
A Xiaohongshu user ID or a profile URL containing /user/profile/.
https://api.sandbase.ai/v1/api/xiaohongshu/userGet a Xiaohongshu (RedNote) user profile from a user ID or supported profile URL. Use it to support creator discovery, account research, and reviewing a known profile before related content analysis.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a Xiaohongshu (RedNote) user profile for one account. It needs a userId, which can be a user ID or a profile URL containing /user/profile/. The response includes the bio, follower and like totals, IP location, account type and live status.
fans, liked and collected totals over time by calling it on a schedule.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user" \
-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/. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"atme_notes_num": 1,
"avatar_handle_entry_list": [],
"avatar_like_status": false,
"avatar_pendant": {
"current_user_pendant": false,
"current_user_pet": false
},
"banner_info": {
"bg_color": "b8a1b3",
"image": "http://sns-avatar-qc.rednotecdn.com/user_banner/1040g2k031qnj00er74005p5oj0ol6up…",
"like_status": false
},
"block_view_from_user": false,
"block_view_to_user": false,
"blocked": false,
"blocking": false,
"brand_account_info": {
"account_type_name": "企业账号",
"conversions": [
{
"icon": "https://picasso-static.xiaohongshu.com/fe-platform/fb51da952d69f3cc44a174ff85dcc…",
"id": "11",
"is_red_shop": false,
"is_shop": false,
"link": "xhsdiscover://message/userPublicGroupList?user_id=64b898310000000014037b21&usern…",
"name": "Group chat",
"sub_title": "View details"
}
],
"trade_type_first_name": ""
},
"collected": 3152959,
"collected_book_num": 0
}
| Field | Meaning |
|---|---|
desc | The profile bio text. Line breaks appear as \n. |
fans / follows | The number of followers and the number of accounts this user follows. |
liked / collected | Total likes and total saves this account has received on its content. |
interactions[] | Summary counters shown on the profile. Each row has type, name, count and is_private. When is_private is true, the user has hidden that list from view. |
gender | Numeric gender code. The sample value is 2. The response does not define the codes. |
ip_location | The location label shown on the profile, such as 湖南. |
brand_account_info.account_type_name | The account type label. The sample shows 企业账号 (enterprise account). |
images / imageb | Avatar image URLs. images is the smaller version and imageb is the larger version. |
banner_info.image | URL of the profile banner image. |
live.live_status / live.room_id / live.start_time | The live stream state, the room ID, and the start time as a millisecond timestamp. |
userId from the profile URL, where it follows /user/profile/. You can also paste the full profile URL.$0.021429 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "64b898310000000014037b21"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
userIdstringจำเป็นA Xiaohongshu user ID or a profile URL containing /user/profile/.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Xiaohongshu User ProfileAPI นี้ 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 ไปที่ https://api.sandbase.ai/v1/api/xiaohongshu/user โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.021429 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: userId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Xiaohongshu User Profile ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Xiaohongshu API แยกต่างหาก