uidstringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
uidstringrequeridoWeibo User ID (UID).
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Weibo User ProfileEsta API Weibo | $0.014286 por llamada | JSON |
Weibo | $0.001 por llamada | JSON |
Weibo | $0.001 por llamada | JSON |
Weibo | $0.001 por llamada | JSON |
Weibo | $0.001 por llamada | JSON |
Weibo | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/weibo/user-detail con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.014286 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: uid (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Weibo User Profile funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Weibo por separado.