author_idstringwajib
Creator/author ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-hot-comment-tokensReturns trending comment tokens and keywords for a Douyin creator. Queries metrics by author ID with options to exclude emojis and adjust token count.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": "Success"
},
"hot_comment_tokens": [
{
"comment_token": "平板",
"hot_rate": 1335
},
{
"comment_token": "垃圾",
"hot_rate": 613
},
{
"comment_token": "电脑",
"hot_rate": 580
},
"… 7 more items in the full response"
]
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
Returns the most frequent comment tokens (keywords) found in a Douyin creator's comment sections on Xingtu, each with a hot_rate score. It needs a Xingtu author_id. You can set the number of tokens with num and drop emojis with without_emoji.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-hot-comment-tokens" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"author_id": "7146074596666507300"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
author_id | string | Yes | Creator/author ID |
num | integer | No | Number of hot tokens, default 10 |
without_emoji | boolean | No | Whether to exclude emoji, default True |
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": 1335
}
]
}
| Field | Meaning |
|---|---|
hot_comment_tokens[] | List of hot comment tokens for the creator. Each item is one token with its score. |
hot_comment_tokens[].comment_token | The keyword or token found in the creator's comments, such as 平板 or 电脑. |
hot_comment_tokens[].hot_rate | Score for how hot the token is. A higher number ranks the token higher in the list. |
base_resp.status_code / base_resp.status_message | Status of the call. 0 with Success means the request worked. |
author_id. If you only have a Douyin ID or sec_user_id, look up the creator ID first with Douyin XingTu kolId by Douyin ID or Douyin XingTu kolId by sec_user_id (V2).num sets how many tokens come back (default 10). without_emoji defaults to true; set it to false to keep emoji tokens.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-hot-comment-tokens" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"author_id": "7146074596666507300"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
author_idstringwajibCreator/author ID
numintegerNumber of hot tokens, default 10
without_emojibooleanWhether to exclude emoji, default True
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": "Success"
},
"hot_comment_tokens": [
{
"comment_token": "平板",
"hot_rate": 1335
},
{
"comment_token": "垃圾",
"hot_rate": 613
},
{
"comment_token": "电脑",
"hot_rate": 580
},
"… 7 more items in the full response"
]
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.002 per panggilan | JSON |
Douyin | $0.002 per panggilan | JSON |
Douyin | $0.01 per panggilan | JSON |
Douyin | $0.003 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-hot-comment-tokens dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: author_id (string). Opsional: num (integer) dan without_emoji (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin Xingtu Author Hot Comment Tokens (Xingtu V2) berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.