share_textstring
Xiaohongshu sharing link (support APP and Web sharing link)
ค่าเริ่มต้น: ""
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/user-infoReturns detailed profile data for a Xiaohongshu user. Look up accounts by providing either a specific user identifier or a profile share link.
[
{
"data": {
"code": 0,
"data": {
"avatar_handle_entry_list": [],
"avatar_like_status": false,
"avatar_pendant": {
"current_user_pendant": false,
"current_user_pet": false
},
"banner_info": {
"bg_color": "5a3b25",
"image": "http://sns-avatar-qc.rednotecdn.com/user_banner/1040g2k031pja0736ko2g5n36hcv4k5g51r2p2ho?imageView2/2/w/540/format/jpg&ap=28&sc=USR_BG",
"like_status": false
},
"block_view_from_user": false,
"block_view_to_user": false,
"blocked": false,
"blocking": false,
"buyer_info": {
"choice_id": "137513274643674518",
"extra_map": {
"curationGoodsSearch": "true"
},
"tab_name": "Curation"
},
"collected": 15141,
"collected_book_num": 0,
"collected_brand_num": 0,
"collected_movie_num": 0,
"collected_notes_num": 0,
"collected_poi_num": 0,
"collected_product_num": 0,
"collected_tags_num": 0,
"college_info": {
"college_name": "浙江农林大学",
"enrollment_year": 2019
},
"community_rule_url": "https://www.xiaohongshu.com/user/community-rule",
"default_collection_tab": "note",
"desc": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"desc_at_users": [],
"fans": 10152,
"follows": 1122,
"fstatus": "none",
"gender": 1,
"hula_tabs": {
"all_show_tab_config": [
{
"tab_id": "note",
"tab_index_weight": 0,
"tab_name": "Notes"
},
{
"tab_id": "buyer",
"tab_index_weight": 1,
"tab_name": "Product selection"
}
],
"tab_id_selected": "note"
},
"identity_deeplink": "xhsdiscover://rn/app-settings/official/certification/details?type=2&user_id=5c668b3e0000000012021605&is_mcn=false",
"identity_label_migrated": false,
"imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g?imageView2/2/w/540/format/webp",
"images": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g?imageView2/2/w/360/format/webp",
"interactions": [
{
"count": 1122,
"is_private": true,
"name": "Following",
"toast": "Following list is invisible",
"type": "follows"
},
{
"count": 10152,
"is_private": true,
"name": "Followers",
"toast": "Follower list is invisible",
"type": "fans"
},
{
"count": 76530,
"is_private": false,
"name": "Likes & Collects",
"toast": "",
"type": "interaction"
}
],
"ip_location": "Zhejiang",
"is_login_user_pro_account": false,
"is_recommend_level_illegal": false,
"level": {
"image_link": "",
"number": 0
},
"liked": 61389,
"location": "中国 浙江 杭州",
"location_jump": true,
"mute_view_to_user": false,
"nboards": 0,
"ndiscovery": 282,
"nickname": "一颗白菜",
"note_num_stat": {
"collected": 15141,
"liked": 61389,
"posted": 282
},
"real_name_deep_target": 1,
"real_name_info": "",
"recommend_info": "",
"recommend_info_icon": "",
"red_club_info": {
"red_club": false,
"red_club_level": 0,
"red_club_url": "https://www.xiaohongshu.com/store/mc/landing",
"redclubscore": 0
},
"red_id": "W2604376390",
"red_official_verified": false,
"red_official_verify_base_info": "",
"red_official_verify_content": "",
"red_official_verify_type": 0,
"remark_name": "",
"result": {
"code": 0,
"message": "success",
"success": true
},
"sec_account_deeplink": "xhsdiscover://rn/accounts/account-detail?targetId=5c668b3e0000000012021605&new_page_exp=1&rn_min_version=3.3.6",
"share_info": {
"content": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"title": "一颗白菜"
},
"share_info_v2": {
"content": "Followers: 10.2k\nLikes&Col: 76.5k",
"ecom_content": "一颗白菜为你推荐了27件宝藏好物!已有1人买过了!",
"ecom_share_link": "https://www.xiaohongshu.com/user/profile/5c668b3e0000000012021605?tab=buyer&channelType=share_outside",
"ecom_title": "一颗白菜的橱窗",
"title": "@一颗白菜‘s profile"
},
"share_link": "https://www.xiaohongshu.com/user/profile/5c668b3e0000000012021605?xsec_token=YBFYk7nXrvgvQtrHryk-4yF3npwCGue-Msjfuw70kIXNc=&xsec_source=app_share",
"show_extra_info_button": false,
"tab_public": {
"collection": false,
"collection_board": true,
"collection_note": true,
"seed": true
},
"tab_visible": {
"buyer": true,
"collect": false,
"like": false,
"note": true,
"seed": true
},
"tags": [
{
"icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png",
"tag_type": "info"
},
{
"name": "浙江杭州",
"tag_type": "location"
}
],
"user_desc_info": {
"button": {
"original": {
"button_content": "Translate",
"translation_strategy": 2
},
"replace": {
"button_content": "See original",
"translation_strategy": 3
}
},
"desc": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"desc_at_users": [],
"desc_keywords_switch": true,
"desc_with_placeholder": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"trans_api_param": {
"biz_id": "user_profile_5c668b3e0000000012021605",
"biz_type": "user_profile",
"text_inputs": [
{
"content": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"key": "desc"
}
]
}
},
"user_role_type": 6,
"user_widget_switch": false,
"userid": "5c668b3e0000000012021605",
"zhong_tong_bar_info": {
"conversions": [
{
"icon": "https://fe-video-qc.xhscdn.com/fe-platform/5d104f03c28936f28480c1225414c979ce9e96d1.png",
"id": "34",
"link": "xhsdiscover://rn/declare/my-evaluation?userid=5c668b3e0000000012021605&activeTabName=poi&activeTabId=0",
"name": "Review",
"sub_title": "1 review"
}
]
}
},
"debug_id": "c7f4a1c9",
"debug_info": "gAAAAABqvfBfAGv0dygIE7Si0zbE4zhfyzoPRY7KTpD9vIn-_dP2_g6cm7B1A5XsC1cki1ysWb_oUj36TQa28mz-7n128khjZKsknSnXZ0MDeD8V8S-fgI4xzF_gLhaVPJH01o0_AWGyWzXmTff0nn7JnesyRZay2TgiJk9mfTJEj6ZccVHh0rPr9WEgYuZwMs-JakFV3aqII3F7gH6hqHlShtpTNuol1AXpmKT5WnKQfjkSmD21ASojp0vZ5eBXPt7dVL47Axpo7k9Kv03emSqxn_Ot4y3nwfSVRdPoTAeGsgvQ-CDSCK3_gqkMywwrb_EY9ym-yEaTd0lR2mAZKBKverDWoWnmZ_MgGTqC2ENpEXzeT3YWalzoJuOn8DnuXGtPulgZR55qTj-cjwJl0faFJUOiI08vuLOxQAC6IGBMbQF4CNMKUOU=",
"msg": "成功",
"success": true
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the public profile of a Xiaohongshu (RED) user, including nickname, bio, follower and following counts, like and save totals, avatar images and IP location. Pass either a user_id or a Xiaohongshu share link in share_text.
xhslink.com link into a user profile with a nickname and bio.fans and liked values over time by calling the API on a schedule.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "61b46d790000000010008153", "share_text": "https://xhslink.com/m/3ZSCJZAMz0a"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
share_text | string | No | Xiaohongshu sharing link (support APP and Web sharing link) |
user_id | string | No | User ID, e.g. "61b46d790000000010008153" |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"avatar_handle_entry_list": [],
"avatar_like_status": false,
"avatar_pendant": {
"current_user_pendant": false,
"current_user_pet": false
},
"banner_info": {
"bg_color": "c7e6fa",
"image": "http://sns-avatar-qc.rednotecdn.com/user_banner/default/h240-b100.png?imageView2…",
"like_status": false
},
"block_view_from_user": false,
"block_view_to_user": false,
"blocked": false,
"blocking": false,
"collected": 48646,
"collected_book_num": 0,
"collected_brand_num": 0,
"collected_movie_num": 0
},
"debug_id": "898018b4",
"debug_info": "gAAAAABq6ZFv5BtK4dso-3h-ngz1foB6gdA6F2YCQNeRx4m40l-FFNMQ02-TZHGXND36iDpfo2CDnftS…",
"msg": "成功",
"success": true
}
| Field | Meaning |
|---|---|
data.nickname | Display name of the user. |
data.desc | Bio text the user wrote for their profile. |
data.fans / data.follows | Number of followers and number of accounts the user follows. |
data.liked / data.collected | Total likes and total saves the user's content has received. |
data.interactions[] | Summary counters for the profile header. Each row has type, a display name, a count and an is_private flag. The interaction row (Likes & Collects) gives the combined total. |
data.ip_location | IP-based location label shown on the profile, such as Beijing. |
data.ndiscovery | Count of discovery items on the profile. Its exact meaning is not documented, and it is likely the number of published notes. |
data.images / data.imageb | Avatar image URLs. images is the smaller version and imageb is the larger one. |
data.banner_info.image | URL of the profile banner image. bg_color holds its background color. |
data.hula_tabs.all_show_tab_config[] | Tabs shown on the profile page, with tab_id and tab_name, for example Notes and Saves. |
user_id or share_text. The example sends both, and user_id is a 24-character hex string such as 61b46d790000000010008153.share_text accepts a Xiaohongshu app or web share link, for example https://xhslink.com/m/3ZSCJZAMz0a.code 0 and success true. The profile sits under data.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "5c668b3e0000000012021605",
"share_text": "https://xhslink.com/m/3ZSCJZAMz0a"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
share_textstringXiaohongshu sharing link (support APP and Web sharing link)
ค่าเริ่มต้น: ""
user_idstringUser ID, e.g. "61b46d790000000010008153"
ค่าเริ่มต้น: ""
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"code": 0,
"data": {
"avatar_handle_entry_list": [],
"avatar_like_status": false,
"avatar_pendant": {
"current_user_pendant": false,
"current_user_pet": false
},
"banner_info": {
"bg_color": "5a3b25",
"image": "http://sns-avatar-qc.rednotecdn.com/user_banner/1040g2k031pja0736ko2g5n36hcv4k5g51r2p2ho?imageView2/2/w/540/format/jpg&ap=28&sc=USR_BG",
"like_status": false
},
"block_view_from_user": false,
"block_view_to_user": false,
"blocked": false,
"blocking": false,
"buyer_info": {
"choice_id": "137513274643674518",
"extra_map": {
"curationGoodsSearch": "true"
},
"tab_name": "Curation"
},
"collected": 15141,
"collected_book_num": 0,
"collected_brand_num": 0,
"collected_movie_num": 0,
"collected_notes_num": 0,
"collected_poi_num": 0,
"collected_product_num": 0,
"collected_tags_num": 0,
"college_info": {
"college_name": "浙江农林大学",
"enrollment_year": 2019
},
"community_rule_url": "https://www.xiaohongshu.com/user/community-rule",
"default_collection_tab": "note",
"desc": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"desc_at_users": [],
"fans": 10152,
"follows": 1122,
"fstatus": "none",
"gender": 1,
"hula_tabs": {
"all_show_tab_config": [
{
"tab_id": "note",
"tab_index_weight": 0,
"tab_name": "Notes"
},
{
"tab_id": "buyer",
"tab_index_weight": 1,
"tab_name": "Product selection"
}
],
"tab_id_selected": "note"
},
"identity_deeplink": "xhsdiscover://rn/app-settings/official/certification/details?type=2&user_id=5c668b3e0000000012021605&is_mcn=false",
"identity_label_migrated": false,
"imageb": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g?imageView2/2/w/540/format/webp",
"images": "https://sns-avatar-qc.rednotecdn.com/avatar/1040g2jo31hpod1vijs705n36hcv4k5g5f8fn40g?imageView2/2/w/360/format/webp",
"interactions": [
{
"count": 1122,
"is_private": true,
"name": "Following",
"toast": "Following list is invisible",
"type": "follows"
},
{
"count": 10152,
"is_private": true,
"name": "Followers",
"toast": "Follower list is invisible",
"type": "fans"
},
{
"count": 76530,
"is_private": false,
"name": "Likes & Collects",
"toast": "",
"type": "interaction"
}
],
"ip_location": "Zhejiang",
"is_login_user_pro_account": false,
"is_recommend_level_illegal": false,
"level": {
"image_link": "",
"number": 0
},
"liked": 61389,
"location": "中国 浙江 杭州",
"location_jump": true,
"mute_view_to_user": false,
"nboards": 0,
"ndiscovery": 282,
"nickname": "一颗白菜",
"note_num_stat": {
"collected": 15141,
"liked": 61389,
"posted": 282
},
"real_name_deep_target": 1,
"real_name_info": "",
"recommend_info": "",
"recommend_info_icon": "",
"red_club_info": {
"red_club": false,
"red_club_level": 0,
"red_club_url": "https://www.xiaohongshu.com/store/mc/landing",
"redclubscore": 0
},
"red_id": "W2604376390",
"red_official_verified": false,
"red_official_verify_base_info": "",
"red_official_verify_content": "",
"red_official_verify_type": 0,
"remark_name": "",
"result": {
"code": 0,
"message": "success",
"success": true
},
"sec_account_deeplink": "xhsdiscover://rn/accounts/account-detail?targetId=5c668b3e0000000012021605&new_page_exp=1&rn_min_version=3.3.6",
"share_info": {
"content": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"title": "一颗白菜"
},
"share_info_v2": {
"content": "Followers: 10.2k\nLikes&Col: 76.5k",
"ecom_content": "一颗白菜为你推荐了27件宝藏好物!已有1人买过了!",
"ecom_share_link": "https://www.xiaohongshu.com/user/profile/5c668b3e0000000012021605?tab=buyer&channelType=share_outside",
"ecom_title": "一颗白菜的橱窗",
"title": "@一颗白菜‘s profile"
},
"share_link": "https://www.xiaohongshu.com/user/profile/5c668b3e0000000012021605?xsec_token=YBFYk7nXrvgvQtrHryk-4yF3npwCGue-Msjfuw70kIXNc=&xsec_source=app_share",
"show_extra_info_button": false,
"tab_public": {
"collection": false,
"collection_board": true,
"collection_note": true,
"seed": true
},
"tab_visible": {
"buyer": true,
"collect": false,
"like": false,
"note": true,
"seed": true
},
"tags": [
{
"icon": "http://sns-i11.rednotecdn.com/icons/user/gender-female-v1.png",
"tag_type": "info"
},
{
"name": "浙江杭州",
"tag_type": "location"
}
],
"user_desc_info": {
"button": {
"original": {
"button_content": "Translate",
"translation_strategy": 2
},
"replace": {
"button_content": "See original",
"translation_strategy": 3
}
},
"desc": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"desc_at_users": [],
"desc_keywords_switch": true,
"desc_with_placeholder": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"trans_api_param": {
"biz_id": "user_profile_5c668b3e0000000012021605",
"biz_type": "user_profile",
"text_inputs": [
{
"content": "野生饭桶|城市胃探险家|人形大众点评机\n🌊|这里是 一颗白菜🥬 的主页\n🔥|人设:吃得米其林,也啃得旮旯老店",
"key": "desc"
}
]
}
},
"user_role_type": 6,
"user_widget_switch": false,
"userid": "5c668b3e0000000012021605",
"zhong_tong_bar_info": {
"conversions": [
{
"icon": "https://fe-video-qc.xhscdn.com/fe-platform/5d104f03c28936f28480c1225414c979ce9e96d1.png",
"id": "34",
"link": "xhsdiscover://rn/declare/my-evaluation?userid=5c668b3e0000000012021605&activeTabName=poi&activeTabId=0",
"name": "Review",
"sub_title": "1 review"
}
]
}
},
"debug_id": "c7f4a1c9",
"debug_info": "gAAAAABqvfBfAGv0dygIE7Si0zbE4zhfyzoPRY7KTpD9vIn-_dP2_g6cm7B1A5XsC1cki1ysWb_oUj36TQa28mz-7n128khjZKsknSnXZ0MDeD8V8S-fgI4xzF_gLhaVPJH01o0_AWGyWzXmTff0nn7JnesyRZay2TgiJk9mfTJEj6ZccVHh0rPr9WEgYuZwMs-JakFV3aqII3F7gH6hqHlShtpTNuol1AXpmKT5WnKQfjkSmD21ASojp0vZ5eBXPt7dVL47Axpo7k9Kv03emSqxn_Ot4y3nwfSVRdPoTAeGsgvQ-CDSCK3_gqkMywwrb_EY9ym-yEaTd0lR2mAZKBKverDWoWnmZ_MgGTqC2ENpEXzeT3YWalzoJuOn8DnuXGtPulgZR55qTj-cjwJl0faFJUOiI08vuLOxQAC6IGBMbQF4CNMKUOU=",
"msg": "成功",
"success": true
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Xiaohongshu | $0.01 ต่อการเรียก | 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/app-v2/user-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: share_text (string) และ user_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Xiaohongshu (RED) User Information ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Xiaohongshu API แยกต่างหาก