end_datestringobligatoire
End date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-itemsReturns videos associated with a specific trending keyword in a category. Filters include category ID, target keyword, analysis period, and end date.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns videos linked to a trending keyword in one Douyin category. You send a category ID in tag_id, a keyword, and an end_date. You can also set period to 1, 3 or 7 days.
人工智能 in a single category.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "tag_id": "2027"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD. Must be a Sunday only when period=7; any day for period=1/3 |
keyword | string | Yes | Hot keyword (typically from fetch_content_creative_keywords) |
tag_id | string | Yes | Category ID (same as category_id in fetch_item_query) |
period | string | No | "1" / "3" / "7" days |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "json data error,key:ca,2027,人工智能,1735660799,keyword_items_v2,aweme,7"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status wrapper for the call. It is the only top-level object in the sample response. |
BaseResp.StatusCode | Numeric status of the lookup. The sample request returned -1, which marks a failed lookup. |
BaseResp.StatusMessage | Text describing the status. In the sample it reads json data error and then lists the values used for the lookup: 2027, 人工智能, 1735660799 and 7. |
end_date 1735660799 and returned StatusCode -1. The schema asks for end_date in YYYYMMDD format, so send a date like 20241229.period is 7, end_date must be a Sunday. For 1 or 3, any day works.keyword from Douyin Content Creative Keywords. Use the same category ID as tag_id.period accepts only the strings 1, 3 and 7.$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/content-creative-keyword-items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "2027",
"keyword": "人工智能",
"end_date": "1735660799"
}'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.
end_datestringobligatoireEnd date YYYYMMDD. **Must be a Sunday only when period=7**; any day for period=1/3
keywordstringobligatoireHot keyword (typically from fetch_content_creative_keywords)
tag_idstringobligatoireCategory ID (same as category_id in fetch_item_query)
periodstring"1" / "3" / "7" days
Valeurs possibles : 1, 3, 7
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 | $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/content-creative-keyword-items 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 : end_date (string), keyword (string) et tag_id (string). Facultatif : period (l’un de 1, 3, 7). 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 Creative Keyword Related Videos 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.