uidstring必填
Weibo User ID (UID).
https://api.sandbase.ai/v1/api/weibo/user-detailGet a Weibo user profile identified by UID. Use it to look up a known account for creator research, profile review, or subsequent retrieval of that user's posts and videos.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns the public profile of one Weibo account, including name, bio, follower and post counts, verification status and avatar URLs. It needs the numeric Weibo user ID in uid.
followers_count and statuses_count for an account over time.screen_name before fetching that user's posts or videos.curl -X POST "https://api.sandbase.ai/v1/api/weibo/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "2803301701"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | Weibo User ID (UID). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"blockText": "",
"tabList": [
{
"name": "home",
"tabName": "精选"
}
],
"user": {
"avatar_hd": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.1024/0033ImPzly8h8vgemh8kxj60sa0sadg…",
"avatar_large": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.180/0033ImPzly8h8vgemh8kxj60sa0sadgw…",
"cover_image_phone": "https://wx1.sinaimg.cn/crop.0.0.640.640.640/0033ImPzly1gs64jwa7uyj60v90v9n1r02.j…",
"description": "人民日报法人微博。参与、沟通、记录时代。",
"domain": "rmrb",
"follow_me": false,
"followers_count": 158132190,
"followers_count_str": "1.58亿",
"following": false,
"friends_count": 3096,
"gender": "m",
"icon_list": [
{
"data": {
"mbrank": 4,
"mbtype": 12,
"svip": 1,
"vvip": 1
},
"type": "vip"
}
]
}
},
"ok": 1
}
| Field | Meaning |
|---|---|
data.user.screen_name | Display name of the account. |
data.user.idstr / data.user.id | The user ID as a string and as a number. The string matches the uid you sent. |
data.user.description | Bio text written by the account owner. |
data.user.followers_count / data.user.followers_count_str | Follower count as a number, and the same count in a short display form such as 1.58亿. |
data.user.friends_count / data.user.statuses_count | Number of accounts this user follows, and number of posts the user has published. |
data.user.verified / data.user.verified_reason | Whether the account is verified, and the verification text shown on the profile. |
data.user.location / data.user.gender | Location text from the profile, and gender code (m in this response). |
data.user.status_total_counter | Totals across the user's posts: comment_cnt, like_cnt, repost_cnt and total_cnt. Values are formatted strings, and total_cnt_format gives a short form. |
data.user.avatar_hd / data.user.avatar_large / data.user.profile_image_url | Avatar image URLs in different sizes. Each URL carries an Expires parameter. |
data.user.domain / data.user.profile_url | The custom domain name of the account and the relative profile path, such as /u/2803301701. |
uid, as a string. The same ID appears in data.user.idstr and in data.user.profile_url.data.tabList[] lists the profile tabs (home, feed, newVideo) shown for the account.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/weibo/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2803301701"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
uidstring必填Weibo User ID (UID).
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Weibo User Profile此 API Weibo | 每次呼叫 $0.014286 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/weibo/user-detail。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:uid (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Weibo User Profile 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Weibo API 存取權。