keywordstring
Video title or keyword
Par défaut : "猫咪"
https://api.sandbase.ai/v1/api/douyin/search/video-search-v4Fetch video search V4 on Douyin. Returns the platform data as structured JSON.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a page of Douyin video search results for a keyword. Each result includes the video ID, caption, author, engagement counts, cover image and play URLs. The request needs a keyword and an optional cursor.
DiggCount and ShareCount.curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/video-search-v4" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "猫咪", "cursor": 0}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
cursor | integer | No | Pagination cursor, 0 for the first request, then the cursor from the last response |
keyword | string | No | Video title or keyword |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"cursor": 12,
"hasMore": true,
"itemList": [
{
"AwemeInfo": {
"Author": {
"AvatarMedium": {
"Uri": "720x720/aweme-avatar/tos-cn-avt-0015_dce2e69766f648747e4a8a37d0384ee6",
"UrlList": [
"https://p26.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_dce2e69766f…"
]
},
"AvatarThumb": {},
"FollowerCount": 19256,
"LabelList": [],
"Nickname": "一碗肉肉",
"SecUid": "MS4wLjABAAAAI02THT4NuvuEm03thf3AiaNbcC5HjVq66fNCQi-IC2Q",
"ShortId": "",
"Signature": ""
},
"AwemeId": "7678569006274124793",
"CreateTime": "1787806164000",
"Desc": "咪就这样萌萌哒看着你 ⠀⢠⠋⠙⠲⠔⠒⠒⠒⠒⠒⠦⠒⠉⢳⠀⠀\n⠀⣸⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⡇⠀\n⢀⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⠀⁺ ⊹\n ⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀…",
"IsPhoto": false,
"Statistics": {
"AwemeId": "",
"CommentCount": 33,
"DiggCount": 5640,
"ShareCount": 3969
},
"Video": {
"Cover": {
"Uri": "tos-cn-i-0813c000-ce/oc87oFDW9AEJ1IASJPEEKHCAwAnwdeAMjqf37C",
"UrlList": [
"https://p3-sign.douyinpic.com/tos-cn-i-0813c000-ce/oc87oFDW9AEJ1IASJPEEKHCAwAnwd…"
]
},
"CreateTime": "1787806164",
"ImageURL": {},
"IsPhoto": false,
"ItemID": "7678569006274124793",
"ItemOptions": {},
"PlayAddr": {
"Height": 1024,
"Uri": "v1e00fgi0000da7s1dvog65h4b22ova0",
"UrlKey": "",
"UrlList": [
"https://v26-cold.douyinvod.com/9e488854a656f5efd2cc34ae0462de1e/6ae99c38/video/t…"
],
"Width": 576
},
"Statistics": {}
}
},
"HasLocalAnchor": false,
"IsAd": false,
"ItemSource": {
"ItemGeneraion": 0,
"SourceType": 1
},
"PlayletType": 1
}
]
},
"msg": "success"
}
| Field | Meaning |
|---|---|
data.cursor | Pagination value to send as cursor in the next request. |
data.hasMore | true when more results are available for this keyword. |
data.itemList[].AwemeInfo.AwemeId | ID of the video. The same value appears in Video.ItemID. |
data.itemList[].AwemeInfo.Desc | Caption of the video, including its hashtags. |
data.itemList[].AwemeInfo.CreateTime | Creation time of the video as a Unix timestamp in milliseconds, sent as a string. |
data.itemList[].AwemeInfo.Statistics.DiggCount / CommentCount / ShareCount | Counts of likes, comments and shares for the video. |
data.itemList[].AwemeInfo.Author.Nickname / FollowerCount | Display name of the author and the number of followers they have. |
data.itemList[].AwemeInfo.Author.SecUid | Secure user ID of the author. Use it to look up the author in user APIs. |
data.itemList[].AwemeInfo.Video.PlayAddr.UrlList | Candidate URLs for the video file. Width and Height give its pixel size. |
data.itemList[].AwemeInfo.Video.Cover.UrlList | Candidate URLs for the cover image of the video. |
cursor as 0 for the first page. For the next page, send the data.cursor value from the last response, and stop when data.hasMore is false.x-expires parameter and are signed, so save the images soon if you need them.AwemeId with Douyin Single Video Details to get the full details of one video.$0.01 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/search/video-search-v4" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cursor": 0,
"keyword": "猫咪"
}'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.
keywordstringVideo title or keyword
Par défaut : "猫咪"
cursorintegerPagination cursor, 0 for the first request, then the cursor from the last response
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.
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 Video search V4Cette API Douyin | $0.01 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Douyin | $0.01 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/search/video-search-v4 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.01 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : keyword (string) et cursor (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 Video search V4 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.