app_namestring
Platform, aweme=Douyin, toutiao=Toutiao
Par défaut : "aweme"
Valeurs possibles : aweme, toutiao
https://api.sandbase.ai/v1/api/douyin/index/hot-wordsReturns a list of current trending search keywords and their growth rates on Douyin or Toutiao. Results can be filtered by the target platform application.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "零食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "游戏"
},
"… 17 more items in the full response"
]
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
Returns a list of trending search keywords on Douyin or Toutiao. Each keyword comes with an index value and growth figures. The only input is the optional app_name parameter, which defaults to aweme (Douyin).
aweme and toutiao lists to see which keywords trend on one platform but not the other.growth_rate to spot terms that are rising fast.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/hot-words" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
app_name | string | No | Platform, aweme=Douyin, toutiao=Toutiao |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
}
]
}
| Field | Meaning |
|---|---|
hot_words[] | List of trending search keywords. |
hot_words[].keyword | The trending search term, as text in Chinese. |
hot_words[].index | Index value for the keyword, returned as a string. In the sample, all three keywords have 100. |
hot_words[].growth | Growth value for the keyword, returned as a string. |
hot_words[].growth_rate | Growth rate for the keyword, returned as a number. |
BaseResp.StatusCode / BaseResp.StatusMessage | Status of the call. StatusCode of 0 with an empty StatusMessage means the call succeeded. |
app_name to aweme for Douyin (the default) or toutiao for Toutiao.index and growth come back as strings, while growth_rate is a number. Convert the strings before you sort or compare them.$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/hot-words" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"app_name": "aweme"
}'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.
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
Par défaut : "aweme"
Valeurs possibles : aweme, toutiao
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "零食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "游戏"
},
"… 17 more items in the full response"
]
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Douyin Hot Search KeywordsCette 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/hot-words 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.
Aucun paramètre n’est requis. Facultatif : app_name (l’un de aweme, toutiao). 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 Hot Search Keywords 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.