Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Xiaohongshu (RED) User Information

API 文件
https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/user-info

Returns detailed profile data for a Xiaohongshu user. Look up accounts by providing either a specific user identifier or a profile share link.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 2 個選填

Playground

輸入
Xiaohongshu sharing link (support APP and Web sharing link)
User ID, e.g. "61b46d790000000010008153"
輸出範例
回應outputs · 7.5 KB · 214 行
[
  {
    "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。

API README

Xiaohongshu (RED) User Information API

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.

Use cases

  • Pull a creator's follower count and total likes to compare accounts before a partnership.
  • Resolve a shared xhslink.com link into a user profile with a nickname and bio.
  • Track a creator's fans and liked values over time by calling the API on a schedule.
  • Collect avatar and banner image URLs to build creator cards in a dashboard.

Request

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.

Parameters

NameTypeRequiredDescription
share_textstringNoXiaohongshu sharing link (support APP and Web sharing link)
user_idstringNoUser ID, e.g. "61b46d790000000010008153"

Example response

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
}

Response fields

FieldMeaning
data.nicknameDisplay name of the user.
data.descBio text the user wrote for their profile.
data.fans / data.followsNumber of followers and number of accounts the user follows.
data.liked / data.collectedTotal 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_locationIP-based location label shown on the profile, such as Beijing.
data.ndiscoveryCount of discovery items on the profile. Its exact meaning is not documented, and it is likely the number of published notes.
data.images / data.imagebAvatar image URLs. images is the smaller version and imageb is the larger one.
data.banner_info.imageURL 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.

Notes

  • Send either 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.
  • A successful call returns code 0 and success true. The profile sits under data.
  • To list the user's notes, call Xiaohongshu (RED) User Posted Notes. For saved notes, call Xiaohongshu (RED) User Favorited Notes.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON
Xiaohongshu每次呼叫 $0.01JSON

指南:Best Xiaohongshu API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Xiaohongshu (RED) User Information API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xiaohongshu/app-v2/user-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Xiaohongshu (RED) User Information API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Xiaohongshu (RED) User Information API 接受哪些參數?

不需要任何參數。 選填:share_text (string) 和 user_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Xiaohongshu (RED) User Information API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Xiaohongshu 開發者帳號或 API 金鑰嗎?

不需要。Xiaohongshu (RED) User Information 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xiaohongshu API 存取權。