kolIdstringobligatoire
User kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
https://api.sandbase.ai/v1/api/douyin/xingtu/author-hot-comment-tokens-v1Returns hot comment tokens for a Douyin Xingtu creator based on the specified creator ID. Analyze audience sentiment and recurring keywords in creator comments.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": "Success"
},
"hot_comment_tokens": [
{
"comment_token": "胶原",
"hot_rate": 488
},
{
"comment_token": "越来越好",
"hot_rate": 223
},
{
"comment_token": "基础",
"hot_rate": 219
},
"… 7 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 hot comment tokens for one Douyin Xingtu creator. Each token is a word or phrase from the creator's audience comments, with a numeric hot_rate. The only input is the creator's kolId.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/author-hot-comment-tokens-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kolId": "7048929565493690398"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
kolId | string | Yes | User kolId, can be obtained from the following interfaces: douyin/xingtu/xingtu-kolid-by-uid; douyin/xingtu/xingtu-kolid-by-sec-user-id; douyin/xingtu/xingtu-kolid-by-unique-id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": "Success"
},
"hot_comment_tokens": [
{
"comment_token": "胶原",
"hot_rate": 488
}
]
}
| Field | Meaning |
|---|---|
hot_comment_tokens[] | List of hot comment tokens for the creator. Each item is one word or phrase with its score. |
hot_comment_tokens[].comment_token | The word or phrase that appears often in the creator's comments, in Chinese in this example (for example 胶原). |
hot_comment_tokens[].hot_rate | Numeric score for the token. A higher value means the token ranks hotter in the list; the example runs from 488 down to 219. |
base_resp.status_code | Status code of the call. 0 means success. |
base_resp.status_message | Text status of the call, for example Success. |
kolId from Douyin XingTu KOL ID by User ID, Douyin XingTu kolId Lookup, or Douyin XingTu KOL ID by Unique ID.kolId as a string, for example "7048929565493690398".$0.02 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/xingtu/author-hot-comment-tokens-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kolId": "7048929565493690398"
}'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.
kolIdstringobligatoireUser kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": "Success"
},
"hot_comment_tokens": [
{
"comment_token": "胶原",
"hot_rate": 488
},
{
"comment_token": "越来越好",
"hot_rate": 223
},
{
"comment_token": "基础",
"hot_rate": 219
},
"… 7 more items in the full response"
]
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Douyin | $0.02 par appel | JSON |
Douyin | $0.02 par appel | JSON |
Douyin | $0.02 par appel | JSON |
Douyin | $0.02 par appel | JSON |
Douyin | $0.02 par appel | JSON |
Douyin | $0.02 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/xingtu/author-hot-comment-tokens-v1 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.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : kolId (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 Xingtu Author Hot Comment Tokens (Xingtu) 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.