uidstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
uidstringwajibWeibo User ID (UID).
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Weibo User ProfileAPI ini Weibo | $0.014286 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/weibo/user-detail dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.014286 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: uid (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Weibo User Profile berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Weibo secara terpisah.