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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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 key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
uidstringआवश्यकWeibo User ID (UID).
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए 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 |
प्रश्न
https://api.sandbase.ai/v1/api/weibo/user-detail पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: uid (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Weibo User Profile SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Weibo API access के लिए आवेदन करने की आवश्यकता नहीं है।