user_idstringobligatoire
User id
https://api.sandbase.ai/v1/api/xigua/app-v2/user-infoReturns profile and personal information for a specified Xigua account. Queries details using the target user identifier.
[
{
"data": {
"bottom_tab_list": [],
"data": [],
"debug_info": "",
"has_more": false,
"has_more_to_refresh": true,
"live_data": null,
"live_datas": null,
"message": "success",
"room_id_str": "",
"shop_tab_url": "",
"status": 0,
"tab": "",
"tab_list": [],
"total_number": 0,
"user_info": null
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
Returns the public profile of a Xigua account, including name, bio, verification status, follower counts and video totals. It needs one input, the numeric user_id of the account.
video_total_count and follower totals over time.curl -X POST "https://api.sandbase.ai/v1/api/xigua/app-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "52712347586"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"bottom_tab_list": [],
"data": [],
"debug_info": "",
"has_more": false,
"has_more_to_refresh": true,
"live_data": null,
"live_datas": null,
"message": "success",
"room_id_str": "",
"shop_tab_url": "",
"status": 0,
"tab": ""
}
| Field | Meaning |
|---|---|
user_info.name | Display name of the account. |
user_info.description / user_info.author_desc | Profile bio text and the author description shown on the account. |
user_info.user_id / user_info.media_id | Numeric account ID and numeric media ID of the account. |
user_info.followers_count / user_info.followers_count_str | Follower total as a number and as a short display string such as 2488万. |
user_info.followers_count_detail.toutiao_followers_count / user_info.followers_count_detail.xigua_followers_count | Follower counts split into the Toutiao and Xigua parts. |
user_info.following_count | Number of accounts this user follows. |
user_info.user_verified / user_info.verified_content | Whether the account is verified, and the verification label text. |
user_info.video_total_count / user_info.author_info.video_total_share_count | Total number of videos posted and total share count across them. |
user_info.user_digg_count.article_digg_count / user_info.user_digg_count.comment_digg_count | Like counts the user received on articles and on comments. |
user_info.avatar_url / user_info.large_avatar_url | Image URLs for the avatar, in a small and a large size. |
user_info.share_url | Link to the user's public page on Xigua. |
user_info.ip_info.address | Location label shown on the profile. |
user_id is a numeric string, for example 52712347586. It also appears in user_info.share_url.data, tab_list and total_number fields carry no profile data in this response. Read profile details from user_info.$0.001 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/xigua/app-v2/user-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "example"
}'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.
user_idstringobligatoireUser id
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"bottom_tab_list": [],
"data": [],
"debug_info": "",
"has_more": false,
"has_more_to_refresh": true,
"live_data": null,
"live_datas": null,
"message": "success",
"room_id_str": "",
"shop_tab_url": "",
"status": 0,
"tab": "",
"tab_list": [],
"total_number": 0,
"user_info": null
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Xigua User Profile DetailsCette API Xigua | $0.001 par appel | JSON |
Xigua | $0.001 par appel | JSON |
Xigua | $0.001 par appel | JSON |
Xigua | $0.001 par appel | JSON |
Xigua | $0.001 par appel | JSON |
Xigua | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/xigua/app-v2/user-info 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.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : user_id (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. Xigua User Profile Details 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 Xigua séparément.