aweme_idsstringobligatoire
Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
https://api.sandbase.ai/v1/api/douyin/app-v3/video-statisticsReturns statistical metrics including like counts, play counts, and share counts for specified Douyin videos by ID.
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
Returns like, play and share counts for one or two Douyin videos. You pass the video IDs in aweme_ids, separated by a comma.
share_count to see how often a video was shared.download_count on videos that report it.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_ids": "7448118827402972455,7126745726494821640"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_ids | string | Yes | Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4553,
"play_count": 239913,
"share_count": 69
}
]
}
| Field | Meaning |
|---|---|
statistics_list[] | One entry per video ID you sent. |
statistics_list[].aweme_id | The ID of the video these counts belong to. Use it to match each entry to your input. |
statistics_list[].digg_count | Number of likes on the video. |
statistics_list[].play_count | Number of plays on the video. |
statistics_list[].share_count | Number of shares of the video. |
statistics_list[].download_count | Number of downloads of the video. It appears only for some videos, so the first video in the example does not have it. |
aweme_ids. For one video, send the ID without a comma.aweme_id values are long numeric strings. Keep them as strings.download_count can be missing from an entry, so check for it before you read it.$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/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_ids": "7448118827402972455,7126745726494821640"
}'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.
aweme_idsstringobligatoireVideo id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Douyin Video StatisticsCette API Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics 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. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.
Obligatoire : aweme_ids (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. Douyin Video Statistics 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.