Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

TikTok Video Comment Keywords

API 文档
https://api.sandbase.ai/v1/api/tiktok/analytics/comment-keywords

Returns extracted keywords and topics from user comments on a TikTok video. Queries are filtered by the unique video identifier.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
Video ID, required parameter, can be obtained from video sharing links or TikTok Studio
输出示例
响应outputs · 14.7 KB · 205 行
[
  {
    "data": {
      "item_id": "7350810998023949599",
      "key_words": {
        "comment_key_words": [
          {
            "comments": [
              {
                "channel_id": 0,
                "cid": "7350994816208044831",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/83a239de10dcb0f948e4480223db88be~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=89dc6e63&x-expires=1791374400&x-signature=Egyx%2ByaGOkEduhxJjlMsCn3vH4c%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/83a239de10dcb0f948e4480223db88be~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=88e61c7c&x-expires=1791374400&x-signature=32yC3NVMIaCtWibXkTvraJ7bWJs%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/83a239de10dcb0f948e4480223db88be~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=5b5c9227&x-expires=1791374400&x-signature=5cAnAYfnF5eol4PwFH6yQWSn1Ow%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "Itsmellow",
                  "uid": "7312929108468139054"
                },
                "comment_type": 0,
                "create_date": 1711536918,
                "digg_count": 0,
                "text": "Yo if you look again I’m pretty sure she made it"
              },
              {
                "channel_id": 0,
                "cid": "7350896612720100127",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc2594344eab345af61ca3cda291d48b~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=b8da1e04&x-expires=1791374400&x-signature=VkCaBLEzAnfRhuQGbmSYAcxQBRU%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc2594344eab345af61ca3cda291d48b~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=60a4b5f1&x-expires=1791374400&x-signature=ajgwfsMHNHDXwPUbyneKCFuRaHk%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/dc2594344eab345af61ca3cda291d48b~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=6e8f1a36&x-expires=1791374400&x-signature=UNH9jRFx%2BuQAptJ3V9nnazkjsIk%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar"
                    ]
                  },
                  "nick_name": "BellaTrixx",
                  "uid": "7052022655189746693"
                },
                "comment_type": 0,
                "create_date": 1711514012,
                "digg_count": 0,
                "text": "I’m pretty sure that’s boloney"
              },
              {
                "channel_id": 0,
                "cid": "7350848653739328299",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/ddc2aee3b640fa1fe2d60ec5089faae1~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=e3470aec&x-expires=1791374400&x-signature=w%2FdnC0u3E5CflJEHRGs%2B8KqTOgA%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/ddc2aee3b640fa1fe2d60ec5089faae1~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=7a918264&x-expires=1791374400&x-signature=J%2Bvc8H30vsqjuz%2BGWq6PDP%2BZn3g%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/ddc2aee3b640fa1fe2d60ec5089faae1~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=821aec15&x-expires=1791374400&x-signature=so5%2FLbW%2FZtzZ1QIpaK02dVOacME%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&s=COMMENT_LIST&sc=avatar"
                    ]
                  },
                  "nick_name": "LENNIE JAMES 🧟‍♂️",
                  "uid": "7050480075401462790"
                },
                "comment_type": 0,
                "create_date": 1711502844,
                "digg_count": 0,
                "text": "uhm I'm pretty sure you have to fold it sideways 😅"
              },
              "… 1 more items in the full response"
            ],
            "key_word": "pretty sure"
          },
          {
            "comments": [
              {
                "channel_id": 0,
                "cid": "7350832440615830303",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/9289312a54fec3fb79bf221aed7fdd1e~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=c1ab661e&x-expires=1791374400&x-signature=Rkx%2FcZBxyx49UUkpJc1xGVoCtMs%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/9289312a54fec3fb79bf221aed7fdd1e~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=533497ad&x-expires=1791374400&x-signature=CQcoRHHibexHrvEs0ODF%2BP1jcoI%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/9289312a54fec3fb79bf221aed7fdd1e~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=1146e257&x-expires=1791374400&x-signature=WdkW99fYfos%2FnkaVv5sPjojOK3g%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "dingle man",
                  "uid": "7097768029329867819"
                },
                "comment_type": 0,
                "create_date": 1711499073,
                "digg_count": 4607,
                "text": "the long way I guess"
              },
              {
                "channel_id": 0,
                "cid": "7350897460569129733",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/06342e86fb50bd57599bb828ebb7eadb~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=a0358539&x-expires=1791374400&x-signature=DoWR0aG8sVb%2BvmRwdJVe4h6HPxg%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/06342e86fb50bd57599bb828ebb7eadb~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=98cdd7e1&x-expires=1791374400&x-signature=XrjeoXadv0z7mvkvvs09ppc81YE%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/06342e86fb50bd57599bb828ebb7eadb~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=967785b7&x-expires=1791374400&x-signature=kPQAGiDGOfRmP2mlEOfneRFglrM%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "Juancho17",
                  "uid": "92945610198183936"
                },
                "comment_type": 0,
                "create_date": 1711514204,
                "digg_count": 0,
                "text": "lil sis made a turkey sandwich the long way 💀"
              },
              {
                "channel_id": 0,
                "cid": "7350888945955685151",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/7ffcf94fed2e7a2ea5c17ed8cf9090ec~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=d4c5b172&x-expires=1791374400&x-signature=hJG0Pw5CD7t6a959X6rmPKuJ9io%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/7ffcf94fed2e7a2ea5c17ed8cf9090ec~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=b76ba991&x-expires=1791374400&x-signature=ITgyeHCaRSgQIgzyYyJcPbESGCA%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/7ffcf94fed2e7a2ea5c17ed8cf9090ec~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=b8f25d79&x-expires=1791374400&x-signature=KWxl%2BJjt2sjYQnoHw0EN0HSRh08%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "christmasdust",
                  "uid": "7071822224373613610"
                },
                "comment_type": 0,
                "create_date": 1711512226,
                "digg_count": 0,
                "text": "she took the long way home"
              },
              "… 1 more items in the full response"
            ],
            "key_word": "long way"
          },
          {
            "comments": [
              {
                "channel_id": 0,
                "cid": "7350865083474133791",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8f214cd0c9dc289c6e82ee24ed9d113c~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=1529090d&x-expires=1791374400&x-signature=ynmxGQ4VP66shXAzaUzBMtE6DcI%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8f214cd0c9dc289c6e82ee24ed9d113c~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=0394ffd4&x-expires=1791374400&x-signature=2QveeWsrUbPZehW%2FFK5Mdg5KIFA%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8f214cd0c9dc289c6e82ee24ed9d113c~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=efc9b1f2&x-expires=1791374400&x-signature=wpDYWW7buqC1lSZG27l7eoLJrIA%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "questionable",
                  "uid": "7290433039350547498"
                },
                "comment_type": 0,
                "create_date": 1711506664,
                "digg_count": 6,
                "text": "whatchu mean how you literally just made the most perfect turkey sandwich I've ever seen"
              },
              {
                "channel_id": 0,
                "cid": "7350981849152733985",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7328403864867700741~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=f56b223e&x-expires=1791374400&x-signature=QIgWBNqwi4MlOujEkBw7N9h%2BTJc%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7328403864867700741~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=47f129b1&x-expires=1791374400&x-signature=E8HkmjNLxUVYBrS184isU09mQ0c%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7328403864867700741~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=ffbaa449&x-expires=1791374400&x-signature=TQ6GOuSLaZpkB8OMOlpvrYY%2Fh0Y%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "Dawid Kupis 🪿",
                  "uid": "6810328347928937478"
                },
                "comment_type": 0,
                "create_date": 1711533893,
                "digg_count": 0,
                "text": "that's the best way i've ever seen"
              },
              {
                "channel_id": 0,
                "cid": "7350893377389052677",
                "comment_author": {
                  "cover": {
                    "url_list": [
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/5c5dfeba07c4bfc74b17c35051d9af05~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=0f96655d&x-expires=1791374400&x-signature=wwUuU3AICg312bbTV3EGDz1056k%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/5c5dfeba07c4bfc74b17c35051d9af05~tplv-tiktokx-cropcenter-q:100:100:q70.webp?dr=8835&refresh_token=730cb7ba&x-expires=1791374400&x-signature=hyceojZkHP0IM6MuH9KN%2BTIXRcg%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST",
                      "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/5c5dfeba07c4bfc74b17c35051d9af05~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&refresh_token=62984576&x-expires=1791374400&x-signature=sRxkCXQAZ97p9vajzKxzqnFnoVc%3D&t=223449c4&ps=87d6e48a&shp=30310797&shcp=3bcfdc78&idc=useast8&sc=avatar&s=COMMENT_LIST"
                    ]
                  },
                  "nick_name": "megan 🕊️",
                  "uid": "6669130349573160965"
                },
                "comment_type": 0,
                "create_date": 1711513255,
                "digg_count": 0,
                "text": "you’re literally the only other person i’ve ever seen with joji tour merch twins 🫶🏻"
              }
            ],
            "key_word": "ever seen"
          },
          "… 15 more items in the full response"
        ],
        "message": {
          "data_source": 1,
          "status": 1,
          "timestamp": 1791290483
        }
      }
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

TikTok Video Comment Keywords API

Returns keywords and short phrases pulled from the comments on one TikTok video. Each keyword comes with example comments that contain it. The only input is the video ID in item_id.

Use cases

  • Find the phrases viewers repeat most in the comments of a single video.
  • Read sample comments behind each phrase to see how viewers talk about a topic.
  • Spot the most liked comments that mention a phrase.
  • Compare the keyword lists of several videos to see which topics come up again.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/analytics/comment-keywords" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id": "7350810998023949599"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
item_idstringYesVideo ID, required parameter, can be obtained from video sharing links or TikTok Studio

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "item_id": "7350810998023949599",
  "key_words": {
    "comment_key_words": [
      {
        "comments": [
          {
            "channel_id": 0,
            "cid": "7350994816208044831",
            "comment_author": {
              "cover": {
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/83a239de10dcb0…"
                ]
              },
              "nick_name": "Itsmellow",
              "uid": "7312929108468139054"
            },
            "comment_type": 0,
            "create_date": 1711536918,
            "digg_count": 0,
            "text": "Yo if you look again I’m pretty sure she made it"
          }
        ],
        "key_word": "pretty sure"
      }
    ],
    "message": {
      "data_source": 1,
      "status": 1,
      "timestamp": 1793691831
    }
  }
}

Response fields

FieldMeaning
item_idThe video ID that was queried. It matches the item_id in the request.
key_words.comment_key_words[].key_wordAn extracted keyword or phrase, such as pretty sure or long way.
key_words.comment_key_words[].comments[].textThe text of a comment that contains the keyword.
key_words.comment_key_words[].comments[].cidThe ID of the comment.
key_words.comment_key_words[].comments[].digg_countThe like count of the comment.
key_words.comment_key_words[].comments[].create_dateThe time the comment was posted, as a Unix timestamp in seconds.
key_words.comment_key_words[].comments[].comment_author.nick_name / key_words.comment_key_words[].comments[].comment_author.uidThe display name and the user ID of the person who wrote the comment.
key_words.comment_key_words[].comments[].comment_author.cover.url_list[]Image URLs for the comment author's avatar.

Notes

  • Get item_id from a TikTok video sharing link or from TikTok Studio. It is a numeric string such as 7350810998023949599.
  • Each keyword in the response holds a short list of comments, not every comment on the video.
  • To see views, likes and other metrics for the same video, call TikTok Video Metrics.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.01 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON

指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

问题

常见问题

如何使用 TikTok Video Comment Keywords API?

向 https://api.sandbase.ai/v1/api/tiktok/analytics/comment-keywords 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

TikTok Video Comment Keywords API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

TikTok Video Comment Keywords API 接受哪些参数?

必填:item_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。

TikTok Video Comment Keywords API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 TikTok 开发者账户或 API key 吗?

不需要。TikTok Video Comment Keywords 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。