uidstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
uidstringobligatoireWeibo User ID (UID).
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Weibo User ProfileCette API Weibo | $0.014286 par appel | JSON |
Weibo | $0.001 par appel | JSON |
Weibo | $0.001 par appel | JSON |
Weibo | $0.001 par appel | JSON |
Weibo | $0.001 par appel | JSON |
Weibo | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/weibo/user-detail avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : uid (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Weibo User Profile fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Weibo séparément.