Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Xigua Video Comment List

API 文件
https://api.sandbase.ai/v1/api/xigua/app-v2/video-comment-list

Returns comments for a specified Xigua video. Supports paginating through discussion threads using offset and result count parameters.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填

Playground

輸入
Video id
Quantity, default 20, it is recommended to keep the default.
Offset, pass 0 for the first request, pass the offset returned by the previous request for subsequent requests
輸出範例
回應outputs · 20.0 KB · 560 行
[
  {
    "data": {
      "at_user_guide_info": null,
      "ban_audio_comment": false,
      "ban_comment": false,
      "ban_comment_reason": "写评论",
      "ban_comment_toast": "",
      "ban_face": false,
      "ban_gif_suggest": 0,
      "ban_pic_comment": 0,
      "bottom_tips": null,
      "comment_activity": null,
      "comment_classify_detail": null,
      "comment_share_enabled": true,
      "data": [
        {
          "ad": null,
          "cell_type": 1,
          "comment": {
            "aid": 13,
            "auth_verified_info": "",
            "author_act_badge": null,
            "author_badge": null,
            "author_badge_night": null,
            "band_name": "",
            "band_url": "",
            "bury_count": 2,
            "comment_badge": null,
            "comment_badge_night": null,
            "comment_tag_url": "",
            "content_rich_span": "{\"links\":[]}",
            "couplet_sticker": null,
            "create_time": 1716343807,
            "digg_bury_style": 2,
            "digg_count": 1593,
            "digg_prompt": {
              "enable": true,
              "reply_box_placeholder": "发评不易,快回复鼓励下TA吧"
            },
            "dislike_style": 0,
            "extra": null,
            "extra_tips": "",
            "forward_count": 0,
            "has_author_digg": 0,
            "has_author_replied": 0,
            "has_multi_media": false,
            "id": 7371640439654811000,
            "id_str": "7371640439654810377",
            "interact_style": 0,
            "is_blocked": 0,
            "is_blocking": 0,
            "is_first_comment": 0,
            "is_followed": 0,
            "is_following": 0,
            "is_loyal_fan": 0,
            "is_pgc_author": 0,
            "is_repost": false,
            "large_image_list": [],
            "media_info": {
              "avatar_url": "",
              "name": ""
            },
            "membership_status": 0,
            "multi_media": null,
            "new_reply_list": [],
            "pendants": null,
            "platform": "feifei",
            "publish_loc_info": "广东",
            "reaction_info": null,
            "remark_name": "",
            "reply_count": 28,
            "reply_list": [],
            "resource_url": "",
            "score": 1593.1716343807,
            "show_tags": 0,
            "source": null,
            "star_comment_info": {
              "has_recommend": false,
              "is_open": false,
              "is_star_comment": false
            },
            "support_react_list": null,
            "tags": null,
            "text": "你笑人家被关在动物园,人家笑你996,还没编制![捂脸][捂脸][捂脸]",
            "thumb_image_list": [],
            "user_auth_info": "",
            "user_bury": 0,
            "user_decoration": "",
            "user_digg": 0,
            "user_id": 4494411680452766,
            "user_name": "闲逛市民",
            "user_profile_image_url": "https://p3-sign.toutiaoimg.com/tos-cn-i-0022/9ecac0ef5c814eeaae15c493de61338f~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791331200&x-signature=kXUg6%2BSbVsvkXAfijL6iOsqb5Jw%3D",
            "user_relation": 0,
            "user_super_digg": 0,
            "user_verified": false,
            "verified_reason": "",
            "vote_info": null,
            "xg_badge_type": 0
          },
          "comment_resource_banner": null,
          "embedded_data": null,
          "forum_card": null,
          "id": 7371640439654811000,
          "pk_forum": null
        },
        {
          "ad": null,
          "cell_type": 1,
          "comment": {
            "aid": 13,
            "auth_verified_info": "",
            "author_act_badge": null,
            "author_badge": null,
            "author_badge_night": null,
            "band_name": "",
            "band_url": "",
            "bury_count": 5,
            "comment_badge": null,
            "comment_badge_night": null,
            "comment_tag_url": "",
            "content_rich_span": "{\"links\":[{\"start\":9,\"length\":0,\"link\":\"\",\"type\":5,\"text\":\"\",\"id\":0,\"id_type\":0,\"flag\":1,\"image\":[{\"u\":\"tos-cn-i-jcdsk5yqko/af126affd2254802abf9b3154ad240d0\",\"w\":1179,\"h\":2556,\"f\":\"webp\"}]}],\"image_list\":{\"tos-cn-i-jcdsk5yqko/af126affd2254802abf9b3154ad240d0\":{\"uri\":\"tos-cn-i-jcdsk5yqko/af126affd2254802abf9b3154ad240d0\",\"url\":\"https://p26-sign.bdxiguaimg.com/tos-cn-i-jcdsk5yqko/af126affd2254802abf9b3154ad240d0~640x0.jpeg?lk3s=a67912db\\u0026x-expires=1793283894\\u0026x-signature=%2FV38Hu1QzvAzU9OsL45SX90IZU0%3D\",\"width\":640,\"height\":1387,\"url_list\":[{\"url\":\"https://p26-sign.bdxiguaimg.com/tos-cn…",
            "couplet_sticker": null,
            "create_time": 1716335884,
            "digg_bury_style": 2,
            "digg_count": 1121,
            "digg_prompt": {
              "enable": true,
              "reply_box_placeholder": "有共鸣?一起讨论下吧"
            },
            "dislike_style": 0,
            "extra": null,
            "extra_tips": "",
            "forward_count": 0,
            "has_author_digg": 0,
            "has_author_replied": 0,
            "has_multi_media": false,
            "id": 7371606395315176000,
            "id_str": "7371606395315176244",
            "interact_style": 0,
            "is_blocked": 0,
            "is_blocking": 0,
            "is_first_comment": 0,
            "is_followed": 0,
            "is_following": 0,
            "is_loyal_fan": 0,
            "is_pgc_author": 0,
            "is_repost": false,
            "large_image_list": [],
            "media_info": {
              "avatar_url": "",
              "name": ""
            },
            "membership_status": 0,
            "multi_media": null,
            "new_reply_list": [
              {
                "bury_count": 0,
                "content": "高贵与生俱来的",
                "content_rich_span": "{\"links\":[]}",
                "create_time": 1716344792,
                "digg_bury_style": 2,
                "digg_count": 260,
                "digg_prompt": {
                  "enable": true,
                  "reply_box_placeholder": "有共鸣?快回复一下吧"
                },
                "dislike_style": 0,
                "extra": null,
                "extra_tips": "",
                "forward_count": 0,
                "group": null,
                "has_author_digg": 0,
                "has_multi_media": false,
                "id": 7371644645644289000,
                "id_str": "7371644645644288783",
                "is_owner": false,
                "large_image_list": [],
                "multi_media": null,
                "publish_loc_info": "山东",
                "reaction_info": null,
                "reply_badge": null,
                "reply_badge_night": null,
                "repost_params": null,
                "star_comment_info": {
                  "has_recommend": false,
                  "is_open": false,
                  "is_star_comment": false
                },
                "support_react_list": null,
                "text": "高贵与生俱来的",
                "thumb_image_list": [],
                "user": {
                  "auth_verified_info": "",
                  "author_badge": null,
                  "author_badge_night": null,
                  "avatar_url": "https://p11-sign.toutiaoimg.com/user-avatar/d3c101fe8440a2496af3414f7b7bf83b~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791331200&x-signature=V0k3jqnORiVCA%2FZo4W5P%2BWzTb%2Fk%3D",
                  "band_name": "",
                  "band_url": "",
                  "description": "",
                  "interact_style": 0,
                  "is_blocked": false,
                  "is_blocking": false,
                  "is_followed": false,
                  "is_following": false,
                  "is_pgc_author": false,
                  "membership_status": 0,
                  "name": "依旧痞子郑",
                  "pendants": null,
                  "screen_name": "依旧痞子郑",
                  "user_auth_info": "",
                  "user_decoration": "",
                  "user_id": 6675046493,
                  "user_relation": 0,
                  "user_verified": false,
                  "verified_reason": ""
                },
                "user_bury": false,
                "user_digg": false,
                "user_super_digg": 0
              },
              {
                "bury_count": 0,
                "content": "猴中贵族",
                "content_rich_span": "{\"links\":[]}",
                "create_time": 1716343594,
                "digg_bury_style": 2,
                "digg_count": 175,
                "digg_prompt": {
                  "enable": true,
                  "reply_box_placeholder": "发条评论,你也能收到点赞哦"
                },
                "dislike_style": 0,
                "extra": null,
                "extra_tips": "",
                "forward_count": 0,
                "group": null,
                "has_author_digg": 0,
                "has_multi_media": false,
                "id": 7371639524856350000,
                "id_str": "7371639524856349478",
                "is_owner": false,
                "large_image_list": [],
                "multi_media": null,
                "publish_loc_info": "河北",
                "reaction_info": null,
                "reply_badge": null,
                "reply_badge_night": null,
                "repost_params": null,
                "star_comment_info": {
                  "has_recommend": false,
                  "is_open": false,
                  "is_star_comment": false
                },
                "support_react_list": null,
                "text": "猴中贵族",
                "thumb_image_list": [],
                "user": {
                  "auth_verified_info": "",
                  "author_badge": null,
                  "author_badge_night": null,
                  "avatar_url": "https://p3-sign.toutiaoimg.com/user-avatar/8e643f4fc8a048d69866be8837b78f86~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791331200&x-signature=ZwtN6WUwcYjzAROHMCtmvU4Rz%2Bo%3D",
                  "band_name": "",
                  "band_url": "",
                  "description": "",
                  "interact_style": 0,
                  "is_blocked": false,
                  "is_blocking": false,
                  "is_followed": false,
                  "is_following": false,
                  "is_pgc_author": false,
                  "membership_status": 0,
                  "name": "静悄悄",
                  "pendants": null,
                  "screen_name": "静悄悄",
                  "user_auth_info": "",
                  "user_decoration": "",
                  "user_id": 3698935903,
                  "user_relation": 0,
                  "user_verified": false,
                  "verified_reason": ""
                },
                "user_bury": false,
                "user_digg": false,
                "user_super_digg": 0
              }
            ],
            "pendants": null,
            "platform": "feifei",
            "publish_loc_info": "安徽",
            "reaction_info": null,
            "remark_name": "",
            "reply_count": 65,
            "reply_list": [
              {
                "auth_verified_info": "",
                "author_badge": null,
                "author_badge_night": null,
                "band_name": "",
                "band_url": "",

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Xigua Video Comment List API

Returns a page of comments for one Xigua video. The only required input is the video's item_id. The response also includes the video's author and repost info, plus pagination values.

Use cases

  • Collect viewer comments on a Xigua video for sentiment review.
  • Page through the full comment list of a video to archive audience discussion.
  • Check whether commenting is turned off for a video before you plan outreach.
  • Read the video's author name and title from the same call that returns comments.

Request

curl -X POST "https://api.sandbase.ai/v1/api/xigua/app-v2/video-comment-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id": "7354954305222377999"}'

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

Parameters

NameTypeRequiredDescription
item_idstringYesVideo id
countintegerNoQuantity, default 20, it is recommended to keep the default.
offsetintegerNoOffset, pass 0 for the first request, pass the offset returned by the previous request for subsequent requests

Example response

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

{
  "at_user_guide_info": null,
  "ban_ai_polish": false,
  "ban_audio_comment": false,
  "ban_comment": false,
  "ban_comment_reason": "写评论",
  "ban_comment_toast": "",
  "ban_face": false,
  "ban_gif_suggest": 0,
  "ban_pic_comment": 0,
  "bottom_tips": null,
  "comment_activity": null,
  "comment_classify_detail": null
}

Response fields

FieldMeaning
data[]The list of comment entries on this page. Each entry has an id and a comment object.
data[].idNumeric ID of the comment entry.
data[].comment.bury_countNumber of buries (dislikes) on the comment. Other counts and author details sit in the same comment object.
has_moretrue when more comments remain after this page.
offsetOffset value to send as offset in the next request. In the sample it is 20.
next_comment_since_tsA Unix-style timestamp value (1793692046 in the sample) tied to the next page of comments.
ban_comment / ban_pic_comment / ban_audio_commentFlags that show whether commenting, picture comments or audio comments are blocked for this video.
group.group_idID of the video the comments belong to. It matches the item_id you sent.
group.user_name / group.user_idName and numeric ID of the video's author.
repost_params.titleTitle of the video.

Notes

  • Send offset as 0 on the first call. For later pages, pass the offset value returned by the previous response and stop when has_more is false.
  • count defaults to 20 and the parameter description recommends keeping the default.
  • item_id is a numeric video ID passed as a string, for example 7354954305222377999.
  • To get the video ID from a keyword, call Xigua Video Search. For video details, call Xigua Single Video Information.

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價格回應
Xigua每次呼叫 $0.001JSON
Xigua每次呼叫 $0.001JSON
Xigua每次呼叫 $0.001JSON
Xigua每次呼叫 $0.001JSON
Xigua每次呼叫 $0.001JSON
Xigua每次呼叫 $0.001JSON

問題

常見問題

我要如何使用 Xigua Video Comment List API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xigua/app-v2/video-comment-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Xigua Video Comment List API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Xigua Video Comment List API 接受哪些參數?

必要:item_id (string)。 選填:count (integer) 和 offset (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Xigua Video Comment List API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Xigua 開發者帳號或 API 金鑰嗎?

不需要。Xigua Video Comment List 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xigua API 存取權。