customany
Custom username (optional, choose one with uid)
https://api.sandbase.ai/v1/api/weibo/web-v2/user-infoReturns detailed Weibo user profile information including nickname, avatar, bio, following count, and followers count by user ID or custom username.
[
{
"data": {
"blockText": "",
"tabList": [
{
"name": "feed",
"tabName": "微博"
},
{
"name": "newVideo",
"tabName": "视频"
},
{
"name": "album",
"tabName": "相册"
},
"… 1 more items in the full response"
],
"user": {
"avatar_hd": "https://tvax3.sinaimg.cn/crop.0.0.361.361.1024/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=Y0DBUjBMYM",
"avatar_large": "https://tvax3.sinaimg.cn/crop.0.0.361.361.180/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=fSz%2ByEpZk7",
"cover_image_phone": "https://ww1.sinaimg.cn/crop.0.0.640.640.640/549d0121tw1egm1kjly3jj20hs0hsq4f.jpg",
"description": "沃尔沃卡车秉承核心价值观:质量、安全、环保,并一如既往地努力为客户提供更好的卡车产品、维护服务以及全面解决方案,为客户创造最大价值。",
"domain": "",
"follow_me": false,
"followers_count": 19528,
"followers_count_str": "2万",
"following": false,
"friends_count": 367,
"gender": "m",
"icon_list": [],
"id": 2062052743,
"idstr": "2062052743",
"is_muteuser": false,
"is_star": "0",
"location": "北京",
"mbrank": 0,
"mbtype": 0,
"pc_new": 7,
"planet_video": false,
"profile_image_url": "https://tvax3.sinaimg.cn/crop.0.0.361.361.50/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=L1O%2FZ1LVln",
"profile_url": "/u/2062052743",
"screen_name": "沃尔沃卡车中国",
"special_follow": false,
"status_total_counter": {
"comment_cnt": "5,224",
"like_cnt": "8,206",
"repost_cnt": "11,424",
"total_cnt": "24,854",
"total_cnt_format": "2.5万"
},
"statuses_count": 2278,
"svip": 0,
"url": "",
"user_ability": -2138832888,
"user_type": 0,
"v_plus": 0,
"verified": true,
"verified_reason": "沃尔沃卡车中国官方微博",
"verified_type": 2,
"verified_type_ext": 50,
"vvip": 0,
"weihao": ""
}
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the public profile of a Weibo account, including nickname, avatar URLs, bio, follower and following counts, verification status, and total post engagement. Send either uid (the numeric user ID) or custom (the custom username in the profile URL).
user.screen_name, user.avatar_hd, and user.description.user.followers_count.shuqi into the numeric user.idstr for other Weibo calls.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "1722594714"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
custom | string | No | Custom username (optional, choose one with uid) |
uid | string | No | User ID (optional, choose one with custom) |
Historical public reference response, trimmed. The reference originally sent both uid and custom; the revised single-identifier teaching request has not been re-executed. Lists keep their first item and long strings are cut.
{
"blockText": "",
"tabList": [
{
"name": "feed",
"tabName": "微博"
}
],
"user": {
"avatar_hd": "https://tvax2.sinaimg.cn/crop.0.0.1080.1080.1024/001SzPzIly8glt0lw5p9tj60u00u0js…",
"avatar_large": "https://tvax2.sinaimg.cn/crop.0.0.1080.1080.180/001SzPzIly8glt0lw5p9tj60u00u0jsn…",
"cover_image_phone": "https://ww1.sinaimg.cn/crop.0.0.640.640.640/9d44112bjw1f1xl1c10tuj20hs0hs0tw.jpg",
"description": "心存善念惜福喔(o^,^o)~~",
"domain": "shuqi",
"follow_me": false,
"followers_count": 40414299,
"followers_count_str": "4041.4万",
"following": false,
"friends_count": 540,
"gender": "f",
"icon_list": [
{
"data": {
"mbrank": 9,
"mbtype": 12,
"svip": 1,
"vvip": 0
},
"type": "vip"
}
]
}
}
| Field | Meaning |
|---|---|
user.id / user.idstr | Numeric user ID, returned as a number and as a string. |
user.screen_name | Display nickname of the account. |
user.domain | Custom username of the account. It is shuqi in this example. |
user.description | Bio text written by the user. |
user.followers_count / user.followers_count_str | Follower count as a number, and the same count in a short display form such as 4041.4万. |
user.friends_count / user.statuses_count | Number of accounts the user follows, and number of posts the user has published. |
user.avatar_hd / user.avatar_large / user.profile_image_url | Avatar image URLs in decreasing size. The URLs contain Expires and ssig query parameters. |
user.verified / user.verified_reason | Whether the account is verified, and the verification label, such as 演员 (actor). |
user.status_total_counter.like_cnt / comment_cnt / repost_cnt / total_cnt | Total likes, comments, reposts, and their sum across the user's posts. The first four are strings with thousands separators. |
user.gender / user.location | Gender code (f here) and the location text from the profile. |
uid or custom. The schema marks both as optional and says to choose one.user.profile_url (for example /u/1722594714) as the relative path of the profile page.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Choose either uid, the numeric account ID represented as a string, or custom, the custom username from the profile URL. Although both properties are optional in the raw schema, their descriptions say to choose one. The teaching request sends one nonempty identifier, preferring a supplied UID. Do not submit an empty object or both alternatives, and do not substitute a post ID or display name.
Require a user object in the returned business payload before reading profile fields. Treat missing followers_count, biography or verification information as unknown. The reference contains both a numeric followers_count and a rounded display string; do not parse the rounded string into a supposedly precise count. A verification label alone does not prove that an account is the one intended by the research task.
If you already know the UID and want its feed, use User Posts as a separate request. This guide does not search for a look-alike account, automatically choose one or fetch its posts after a profile lookup.
Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use the API tab for POST /v1/api/ with Bearer authentication. If the agent is already connected, give it the exact endpoint and account identifier. For a new project, share the setup Skill, Markdown quickstart and one question. Ask it to save one response and stop before post detail, comments, ranking or pagination.
Read outputs[0].data only after checking the SandBase completed status. Then validate this endpoint's business payload. A successful HTTP status or an outer code 200 alone does not establish a successful Weibo result. Do not use a top-level output fallback or replace missing objects and arrays with empty results.
Pricing checked on 2026-11-08: these two endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a remaining-quota reading. Inspect current pricing and allowance before running. No new business query or continuation was executed for this update. The Weibo Python first-request tutorial separates current code from the dated original-posts experiment.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2062052743"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
customanyCustom username (optional, choose one with uid)
uidanyUser ID (optional, choose one with custom)
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"blockText": "",
"tabList": [
{
"name": "feed",
"tabName": "微博"
},
{
"name": "newVideo",
"tabName": "视频"
},
{
"name": "album",
"tabName": "相册"
},
"… 1 more items in the full response"
],
"user": {
"avatar_hd": "https://tvax3.sinaimg.cn/crop.0.0.361.361.1024/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=Y0DBUjBMYM",
"avatar_large": "https://tvax3.sinaimg.cn/crop.0.0.361.361.180/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=fSz%2ByEpZk7",
"cover_image_phone": "https://ww1.sinaimg.cn/crop.0.0.640.640.640/549d0121tw1egm1kjly3jj20hs0hsq4f.jpg",
"description": "沃尔沃卡车秉承核心价值观:质量、安全、环保,并一如既往地努力为客户提供更好的卡车产品、维护服务以及全面解决方案,为客户创造最大价值。",
"domain": "",
"follow_me": false,
"followers_count": 19528,
"followers_count_str": "2万",
"following": false,
"friends_count": 367,
"gender": "m",
"icon_list": [],
"id": 2062052743,
"idstr": "2062052743",
"is_muteuser": false,
"is_star": "0",
"location": "北京",
"mbrank": 0,
"mbtype": 0,
"pc_new": 7,
"planet_video": false,
"profile_image_url": "https://tvax3.sinaimg.cn/crop.0.0.361.361.50/002fya7dly8guu84mhdynj60a10a13yi02.jpg?KID=imgbed,tva&Expires=1790966689&ssig=L1O%2FZ1LVln",
"profile_url": "/u/2062052743",
"screen_name": "沃尔沃卡车中国",
"special_follow": false,
"status_total_counter": {
"comment_cnt": "5,224",
"like_cnt": "8,206",
"repost_cnt": "11,424",
"total_cnt": "24,854",
"total_cnt_format": "2.5万"
},
"statuses_count": 2278,
"svip": 0,
"url": "",
"user_ability": -2138832888,
"user_type": 0,
"v_plus": 0,
"verified": true,
"verified_reason": "沃尔沃卡车中国官方微博",
"verified_type": 2,
"verified_type_ext": 50,
"vvip": 0,
"weihao": ""
}
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/web-v2/user-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: custom (any) และ uid (any). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo User Profile Details (Web V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก
เลือกเพียงตัวระบุที่ไม่ว่างหนึ่งค่า คำอธิบายกำหนด uid และ custom เป็นทางเลือกแทนกัน แม้จะไม่มีอยู่ในรายการที่ต้องใช้แบบดิบ คำขอสำหรับการสอนจะใช้ UID ที่ส่งมา และหากไม่มีจึงใช้ custom; จะไม่ส่ง object ว่างหรือทั้งสองทางเลือก
ไม่ได้ ให้อ่าน followers_count ที่เป็นตัวเลขที่ถูกต้องเมื่อมี และเก็บค่าที่หายไปเป็น unknown สตริงที่แสดงแบบปัดแล้วไม่ใช่การวัดแบบแน่นอน จำนวนที่สังเกตได้เป็นค่าจากโปรไฟล์ตามช่วงเวลา ไม่ใช่การเข้าถึง ยอดขาย หรือประสิทธิภาพแคมเปญ
ไม่ นี่คือคำขออิสระหนึ่งรายการสำหรับบัญชีที่เลือก User Posts เป็น endpoint แยกต่างหากที่ต้องใช้ UID การค้นหา รายละเอียดโพสต์ คอมเมนต์ และการวัดซ้ำ ล้วนเป็นคำขอแยกกันและควรทำอย่างตั้งใจ