querystringobligatoire
Search keyword (required), e.g. "food"
https://api.sandbase.ai/v1/api/douyin/index/item-querySearch Douyin Index videos by keyword with filters for post date, duration, category, and label type. Returns video metadata and performance metrics.
[
{
"data": {
"data": []
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
Searches Douyin Index videos by keyword and returns a list of matching videos with creator name, follower count, like count, duration, post time and a video link. It needs one input, query. Optional filters narrow results by post date, duration, category and quality tag.
美食 and open each one through its url.isLowFansButHot next to fans.index or likes to see which posts perform best.duration_type and compare the results.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (required), e.g. "food" |
category_id | string | No | Category ID (string), default "0"=all |
date_type | integer | No | Publish date filter, default 0=any |
duration_type | integer | No | Duration filter, default 0=any |
label_type | integer | No | Video type (quality tag), default 0=any |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"avatarUrl": "https://p3-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c000-ce_osD7MQgO…",
"createTime": "2026-10-30 23:34:15",
"duration": 72,
"fans": 13248,
"index": "657817",
"isHighFansRiseRate": 0,
"isHighLikeRate": 1,
"isHighPlayOverRate": 0,
"isLowFansButHot": 1,
"itemId": "7702484601909857590",
"likes": "226165",
"nickname": "明食记"
}
]
}
| Field | Meaning |
|---|---|
data[].itemId | ID of the video, as a string. It is the last part of the video url. |
data[].title | Video caption, including its hashtags. |
data[].url | Link to the video page on Douyin. |
data[].nickname / data[].avatarUrl | Display name and avatar image link of the creator. |
data[].fans | Follower count of the creator, as a number. |
data[].likes | Like count of the video. It comes back as a string. |
data[].index | Index score of the video for this search, as a string. Higher values appear for videos that do better. |
data[].duration | Length of the video. Values like 72 and 274 suggest seconds, but the response does not state the unit. |
data[].createTime | Post time of the video, in YYYY-MM-DD HH:MM:SS format. |
data[].isHighLikeRate / data[].isHighFansRiseRate / data[].isHighPlayOverRate / data[].isLowFansButHot | Flags set to 1 when the video carries that tag, and 0 when it does not. The names describe a high like rate, high follower growth, high play completion, and a hot video from a low-follower account. |
date_type, label_type and duration_type at 0 and category_id at "0" for an unfiltered search. Pass category_id as a string.$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/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "sandbase",
"date_type": 0,
"label_type": 0,
"category_id": "0",
"duration_type": 0
}'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.
querystringobligatoireSearch keyword (required), e.g. "food"
category_idstringCategory ID (string), default "0"=all
Par défaut : "0"
date_typeintegerPublish date filter, default 0=any
Par défaut : 0
duration_typeintegerDuration filter, default 0=any
Par défaut : 0
label_typeintegerVideo type (quality tag), default 0=any
Par défaut : 0
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"data": []
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Douyin Index Video SearchCette 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/index/item-query 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 : query (string). Facultatif : category_id (string), date_type (integer), duration_type (integer) et label_type (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 Index Video Search 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.