o_author_idstringobligatoire
Creator ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distributionGet Author Video Distribution on Douyin. Returns the platform data as structured JSON.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
This API returns the content category breakdown of one Douyin creator's short videos, as listed on Xingtu. It needs the creator ID in o_author_id. Each row shows a category name, a video count, and that category's share of the total.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7112600044674482187", "platform_source": 1, "platform_channel": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator ID |
platform_channel | integer | No | Platform channel, 1 for short video |
platform_source | integer | No | Platform source, 1 for Douyin |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"video_content_distribution": [
{
"cnt": 4,
"id": "0",
"name": "生活家居",
"proportion": 0.6667
}
]
}
| Field | Meaning |
|---|---|
video_content_distribution[] | One entry per content category found in the creator's videos. The list is sorted from the largest share to the smallest in the sample. |
video_content_distribution[].name | Category name in Chinese, for example 生活家居 (home and living) or 时尚 (fashion). |
video_content_distribution[].cnt | Number of the creator's videos counted in this category. |
video_content_distribution[].proportion | Share of the counted videos that fall in this category, as a decimal. For example 0.6667 means about two thirds. |
video_content_distribution[].id | Category ID. It is "0" for every row in this response, so use name to tell categories apart. |
base_resp.status_code / base_resp.status_message | Status of the request. 0 with an empty message means it succeeded. |
proportion values add up to about 1, and the cnt values add up to the number of videos counted.platform_source at 1 for Douyin and platform_channel at 1 for short video.$0.002 per successful call. Failed calls are not charged.
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/douyin/xingtu-v2/author-video-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "7112600044674482187",
"platform_source": 1,
"platform_channel": 1
}'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.
o_author_idstringobligatoireCreator ID
platform_sourceintegerPlatform source, 1 for Douyin
Par défaut : 1
platform_channelintegerPlatform channel, 1 for short video
Par défaut : 1
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 |
|---|---|---|
Douyin Author Video DistributionCette API Douyin | $0.002 par appel | JSON |
Douyin | $0.002 par appel | JSON |
Douyin | $0.002 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Douyin | $0.003 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-video-distribution 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.002 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : o_author_id (string). Facultatif : platform_source (integer) et platform_channel (integer). 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. Douyin Author Video Distribution 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 Douyin séparément.