Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Xigua Video Comment List

Docs da 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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 2 opcionais

Playground

Entrada
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
SaídaExemplo
Respostaoutputs · 20.0 KB · 560 linhas
[
  {
    "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": "",

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Xigua$0.001 por chamadaJSON
Xigua$0.001 por chamadaJSON
Xigua$0.001 por chamadaJSON
Xigua$0.001 por chamadaJSON
Xigua$0.001 por chamadaJSON
Xigua$0.001 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Xigua Video Comment List?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/xigua/app-v2/video-comment-list com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Xigua Video Comment List?

$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Xigua Video Comment List aceita?

Obrigatórios: item_id (string). Opcionais: count (integer) e offset (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Xigua Video Comment List retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Xigua ou de uma chave de API?

Não. Xigua Video Comment List funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Xigua separadamente.