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

Kuaishou Video Comments (App)

API 文件
https://api.sandbase.ai/v1/api/kuaishou/app/video-comment

Returns comment records for a specified Kuaishou video, including author metadata and like counts. Supports pagination using a cursor.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
輸出範例
回應outputs · 18.6 KB · 489 行
[
  {
    "data": {
      "commentCount": 3053,
      "host-name": "public-bjx-c34-kce-node4946.idchb1az1.hb1.kwaidc.com",
      "pcursor": "V2#3d0dec14-e5d8-4e1a-beb0-b81f923c5f85#dph#30#939750742575_31",
      "result": 1,
      "rootComments": [
        {
          "attachments": [
            {
              "content": {
                "photoInfo": {
                  "photoId": "149640945284",
                  "photoSource": "COLLECTION_TAB",
                  "photoType": 1,
                  "serverExpTag": "",
                  "userName": "及时止损"
                },
                "smallUrl": [
                  {
                    "cdn": "p66-plat.wsukwai.com",
                    "url": "https://p66-plat.wsukwai.com/upic/2024/11/26/20/BMjAyNDExMjYyMDM5MTVfNTA0OTk1NjdfMTQ5NjQwOTQ1Mjg0XzJfMw==_low_Bb64a835dcce935bec2acabd89c6d68ed.webp"
                  },
                  {
                    "cdn": "p23-plat.wsukwai.com",
                    "url": "https://p23-plat.wsukwai.com/upic/2024/11/26/20/BMjAyNDExMjYyMDM5MTVfNTA0OTk1NjdfMTQ5NjQwOTQ1Mjg0XzJfMw==_low_Bb64a835dcce935bec2acabd89c6d68ed.webp"
                  }
                ]
              },
              "id": "149640945284",
              "layout": {
                "height": 0,
                "thumbHeight": 640,
                "thumbWidth": 360,
                "width": 0
              },
              "previewURL": "kwai://work/149640945284?disableSidebar=true&pageType=1&utm_source=feedCommentDetail",
              "type": "PHOTO"
            }
          ],
          "authorArea": "山东",
          "authorVerified": false,
          "author_id": 23458411,
          "author_liked": false,
          "author_name": "宝宝心里变态",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 938889241499,
          "content": "",
          "displaySubCommentCount": true,
          "headurl": "http://p4.a.yximgs.com/uhead/AB/2024/11/24/03/BMjAyNDExMjQwMzIyMzdfMjM0NTg0MTFfMl9oZDg2NF80MjE=_s.jpg",
          "headurls": [
            {
              "cdn": "p4.a.yximgs.com",
              "url": "http://p4.a.yximgs.com/uhead/AB/2024/11/24/03/BMjAyNDExMjQwMzIyMzdfMjM0NTg0MTFfMl9oZDg2NF80MjE=_s.jpg"
            },
            {
              "cdn": "p23.a.yximgs.com",
              "url": "http://p23.a.yximgs.com/uhead/AB/2024/11/24/03/BMjAyNDExMjQwMzIyMzdfMjM0NTg0MTFfMl9oZDg2NF80MjE=_s.jpg"
            }
          ],
          "hot": true,
          "isKwaiShopItemComment": false,
          "likedCount": 143,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "recallType": 1,
          "reply_to": 0,
          "subCommentCount": 12,
          "time": "2025-01-03 17:50:49",
          "timestamp": 1735897848821,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "M"
        },
        {
          "authorArea": "辽宁",
          "authorVerified": false,
          "author_id": 2877840470,
          "author_liked": false,
          "author_name": "剑斩十三州.",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 938911268848,
          "content": "我直接就是一把大糯米,加一把黑狗血[不听]",
          "displaySubCommentCount": true,
          "headurl": "http://p4.a.yximgs.com/uhead/AB/2026/08/30/23/BMjAyNjA4MzAyMzM3MjdfMjg3Nzg0MDQ3MF8xX2hkNzUwXzY2MA==_s.jpg",
          "headurls": [
            {
              "cdn": "p4.a.yximgs.com",
              "url": "http://p4.a.yximgs.com/uhead/AB/2026/08/30/23/BMjAyNjA4MzAyMzM3MjdfMjg3Nzg0MDQ3MF8xX2hkNzUwXzY2MA==_s.jpg"
            },
            {
              "cdn": "p2.a.yximgs.com",
              "url": "http://p2.a.yximgs.com/uhead/AB/2026/08/30/23/BMjAyNjA4MzAyMzM3MjdfMjg3Nzg0MDQ3MF8xX2hkNzUwXzY2MA==_s.jpg"
            }
          ],
          "hot": true,
          "isKwaiShopItemComment": false,
          "likedCount": 219,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "recallType": 1,
          "reply_to": 0,
          "subCommentCount": 84,
          "time": "2025-01-03 18:34:46",
          "timestamp": 1735900486248,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "M"
        },
        {
          "authorArea": "辽宁",
          "authorVerified": false,
          "author_id": 1153469308,
          "author_liked": false,
          "author_name": "中年健忘者",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 964868751848,
          "content": "这个应该去缅甸。",
          "displaySubCommentCount": true,
          "headurl": "http://p23.a.yximgs.com/uhead/AB/2024/02/08/12/BMjAyNDAyMDgxMjUyMzRfMTE1MzQ2OTMwOF8yX2hkNTQ1XzIwNw==_s.jpg",
          "headurls": [
            {
              "cdn": "p23.a.yximgs.com",
              "url": "http://p23.a.yximgs.com/uhead/AB/2024/02/08/12/BMjAyNDAyMDgxMjUyMzRfMTE1MzQ2OTMwOF8yX2hkNTQ1XzIwNw==_s.jpg"
            },
            {
              "cdn": "p23.a.yximgs.com",
              "url": "http://p23.a.yximgs.com/uhead/AB/2024/02/08/12/BMjAyNDAyMDgxMjUyMzRfMTE1MzQ2OTMwOF8yX2hkNTQ1XzIwNw==_s.jpg"
            }
          ],
          "hot": true,
          "isKwaiShopItemComment": false,
          "likedCount": 7,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "recallType": 1,
          "reply_to": 0,
          "subCommentCount": 2,
          "time": "2025-02-28 07:41:16",
          "timestamp": 1740699676081,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "M"
        },
        "… 27 more items in the full response"
      ],
      "subCommentsMap": {
        "938889241499": {
          "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTQ2NDM1NjE1NTY3fQ==",
          "subComments": [
            {
              "authorArea": "山西",
              "authorVerified": false,
              "author_id": 2037328243,
              "author_liked": false,
              "author_name": "略略略略略略",
              "cashTags": {},
              "commentAuthorTags": [],
              "commentBottomTags": [],
              "comment_id": 944460848958,
              "content": "6",
              "headurl": "http://p4.a.yximgs.com/uhead/AB/2024/09/16/15/BMjAyNDA5MTYxNTAzNDlfMjAzNzMyODI0M18yX2hkNDM4XzQxMw==_s.jpg",
              "headurls": [
                {
                  "cdn": "p4.a.yximgs.com",
                  "url": "http://p4.a.yximgs.com/uhead/AB/2024/09/16/15/BMjAyNDA5MTYxNTAzNDlfMjAzNzMyODI0M18yX2hkNDM4XzQxMw==_s.jpg"
                },
                {
                  "cdn": "p2.a.yximgs.com",
                  "url": "http://p2.a.yximgs.com/uhead/AB/2024/09/16/15/BMjAyNDA5MTYxNTAzNDlfMjAzNzMyODI0M18yX2hkNDM4XzQxMw==_s.jpg"
                }
              ],
              "isKwaiShopItemComment": false,
              "likedCount": 2,
              "photo_id": 5193494945927590000,
              "profilePagePrefetchInfo": {
                "profilePageType": 1
              },
              "replyToUserName": "宝宝心里变态",
              "reply_to": 23458411,
              "time": "2025-01-16 18:04:11",
              "timestamp": 1737021850643,
              "type": 0,
              "user_id": 3795214411,
              "user_sex": "M"
            }
          ]
        },
        "938911268848": {
          "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTM4OTQxNjMzMDQ5fQ==",
          "subComments": [
            {
              "authorArea": "贵州",
              "authorVerified": false,
              "author_id": 2023087307,
              "author_liked": false,
              "author_name": "欲念风^",
              "cashTags": {},
              "commentAuthorTags": [],
              "commentBottomTags": [],
              "comment_id": 938933209309,
              "content": "迷惑小孩",
              "headurl": "http://p23.a.yximgs.com/uhead/AB/2025/06/06/07/BMjAyNTA2MDYwNzU2MzFfMjAyMzA4NzMwN18yX2hkOF8xOTE=_s.jpg",
              "headurls": [
                {
                  "cdn": "p23.a.yximgs.com",
                  "url": "http://p23.a.yximgs.com/uhead/AB/2025/06/06/07/BMjAyNTA2MDYwNzU2MzFfMjAyMzA4NzMwN18yX2hkOF8xOTE=_s.jpg"
                },
                {
                  "cdn": "p23.a.yximgs.com",
                  "url": "http://p23.a.yximgs.com/uhead/AB/2025/06/06/07/BMjAyNTA2MDYwNzU2MzFfMjAyMzA4NzMwN18yX2hkOF8xOTE=_s.jpg"
                }
              ],
              "isKwaiShopItemComment": false,
              "likedCount": 18,
              "photo_id": 5193494945927590000,
              "profilePagePrefetchInfo": {
                "profilePageType": 1
              },
              "replyToUserName": "剑斩十三州.",
              "reply_to": 2877840470,
              "time": "2025-01-03 19:14:00",
              "timestamp": 1735902840341,
              "type": 0,
              "user_id": 3795214411,
              "user_sex": "M"
            }
          ]
        },
        "939054445981": {
          "pcursor": "no_more",
          "subComments": [
            {
              "authorArea": "浙江",
              "authorVerified": false,
              "author_id": 1089010476,
              "author_liked": false,
              "author_name": "黑无常!",
              "cashTags": {},
              "commentAuthorTags": [],
              "commentBottomTags": [],
              "comment_id": 964994596709,
              "content": "祝你俩幸福安康!对她好点!希望她值得![祈祷][祈祷][祈祷]",
              "headurl": "http://p4.a.yximgs.com/uhead/AB/2018/09/12/15/BMjAxODA5MTIxNTUyNTlfMTA4OTAxMDQ3Nl8yX2hkNjQ3Xzc5Mw==_s.jpg",
              "headurls": [
                {
                  "cdn": "p4.a.yximgs.com",
                  "url": "http://p4.a.yximgs.com/uhead/AB/2018/09/12/15/BMjAxODA5MTIxNTUyNTlfMTA4OTAxMDQ3Nl8yX2hkNjQ3Xzc5Mw==_s.jpg"
                },
                {
                  "cdn": "p2.a.yximgs.com",
                  "url": "http://p2.a.yximgs.com/uhead/AB/2018/09/12/15/BMjAxODA5MTIxNTUyNTlfMTA4OTAxMDQ3Nl8yX2hkNjQ3Xzc5Mw==_s.jpg"
                }
              ],
              "isKwaiShopItemComment": false,
              "likedCount": 0,
              "photo_id": 5193494945927590000,
              "profilePagePrefetchInfo": {
                "profilePageType": 2
              },
              "replyToUserName": "肘击",
              "reply_to": 4520069582,
              "time": "2025-02-28 17:02:26",
              "timestamp": 1740733346427,
              "type": 0,
              "user_id": 3795214411,
              "user_sex": "M"
            }
          ]
        },
        "939071729265": {
          "pcursor": "no_more",
          "subComments": [
            {
              "authorArea": "重庆",
              "authorVerified": false,
              "author_id": 268579944,
              "author_liked": false,
              "author_name": "重炮",
              "cashTags": {},
              "commentAuthorTags": [],
              "commentBottomTags": [],
              "comment_id": 939096487396,
              "content": "情理之中",
              "headurl": "http://p4.a.yximgs.com/uhead/AB/2024/08/03/19/BMjAyNDA4MDMxOTI4MjBfMjY4NTc5OTQ0XzJfaGQ0MDVfOTcy_s.jpg",
              "headurls": [
                {

範例

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

API README

Kuaishou Video Comments (App) API

Returns top-level comments for a Kuaishou video, plus a preview of replies under each comment. It needs the video's photo_id. Each comment includes author details, a like count and a timestamp.

Use cases

  • Collect the most-liked comments on a Kuaishou video to study audience reaction.
  • Group commenters by authorArea to see which regions engage with a video.
  • Track new comments on a video by comparing timestamp values across pages.
  • Find comments with many replies and fetch the full reply thread for them.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/video-comment" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"photo_id": "5193494945927590140"}'

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

Parameters

NameTypeRequiredDescription
photo_idstringYes
pcursorstringNo

Example response

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

{
  "commentCount": 3053,
  "host-name": "public-bjx-c34-kce-node3496.idchb1az1.hb1.kwaidc.com",
  "pcursor": "V2#0b7e6e34-41ee-4c9f-b34d-c96048e72443#dph#30#938768612848_32",
  "result": 1,
  "rootComments": [
    {
      "attachments": [
        {
          "content": {
            "photoInfo": {
              "photoId": "149640945284",
              "photoSource": "COLLECTION_TAB",
              "photoType": 1,
              "serverExpTag": "",
              "userName": "及时止损"
            },
            "smallUrl": [
              {
                "cdn": "p66-plat.wsukwai.com",
                "url": "https://p66-plat.wsukwai.com/upic/2024/11/26/20/BMjAyNDExMjYyMDM5MTVfNTA0OTk1Njd…"
              }
            ]
          },
          "id": "149640945284",
          "layout": {
            "height": 0,
            "thumbHeight": 640,
            "thumbWidth": 360,
            "width": 0
          },
          "previewURL": "kwai://work/149640945284?disableSidebar=true&pageType=1&utm_source=feedCommentDe…",
          "type": "PHOTO"
        }
      ],
      "authorArea": "山东",
      "authorVerified": false,
      "author_id": 23458411,
      "author_liked": false,
      "author_name": "宝宝心里变态",
      "cashTags": {},
      "commentAuthorTags": [],
      "commentBottomTags": [],
      "comment_id": 938889241499,
      "content": "",
      "displaySubCommentCount": true
    }
  ],
  "subCommentsMap": {
    "938846333271": {
      "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTM4ODQ2NDI1MDk3fQ==",
      "subComments": [
        {
          "authorArea": "广西",
          "authorVerified": false,
          "author_id": 514350277,
          "author_liked": false,
          "author_name": "ℳ̶̶̶̶♡̶҉释怀ℳᥫ",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "938889241499": {
      "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTQ2NDM1NjE1NTY3fQ==",
      "subComments": [
        {
          "authorArea": "山西",
          "authorVerified": false,
          "author_id": 2037328243,
          "author_liked": false,
          "author_name": "略略略略略略",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "938911268848": {
      "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTM4OTQxNjMzMDQ5fQ==",
      "subComments": [
        {
          "authorArea": "贵州",
          "authorVerified": false,
          "author_id": 2023087307,
          "author_liked": false,
          "author_name": "欲念风^",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "939054445981": {
      "pcursor": "no_more",
      "subComments": [
        {
          "authorArea": "浙江",
          "authorVerified": false,
          "author_id": 1089010476,
          "author_liked": false,
          "author_name": "黑无常!",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "939071729265": {
      "pcursor": "no_more",
      "subComments": [
        {
          "authorArea": "重庆",
          "authorVerified": false,
          "author_id": 268579944,
          "author_liked": false,
          "author_name": "重炮",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "940946335966": {
      "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTQxODcwNDIyNzA4fQ==",
      "subComments": [
        {
          "authorArea": "山东",
          "authorVerified": false,
          "author_id": 2673361092,
          "author_liked": false,
          "author_name": "至高神",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "947100605905": {
      "pcursor": "no_more",
      "subComments": [
        {
          "authorArea": "广西",
          "authorVerified": false,
          "author_id": 759752785,
          "author_liked": false,
          "author_name": "持续攻速暴击",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "947331566664": {
      "pcursor": "no_more",
      "subComments": [
        {
          "authorArea": "浙江",
          "authorVerified": false,
          "author_id": 4576919076,
          "author_liked": false,
          "author_name": "快手用户1737179161502",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    },
    "964868751848": {
      "pcursor": "V1-1006-1-eyJwaG90b0lkIjoxNTI1Mjk4MzQyMTYsImNvbW1lbnRJZCI6OTc1MDQyODc5Njc2fQ==",
      "subComments": [
        {
          "authorArea": "安徽",
          "authorVerified": false,
          "author_id": 4433943584,
          "author_liked": false,
          "author_name": "看淡一切。",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": []
        }
      ]
    }
  },
  "transparentPayload": "{\"kwaiShopItemCmtInjectCnt\":0,\"kwaiShopItemCmtInjectCursor\":0}"
}

Response fields

FieldMeaning
commentCountTotal number of comments on the video.
pcursorCursor for the next page of top-level comments. Send it back as the pcursor request parameter.
rootComments[].comment_idID of the top-level comment. It also appears as a key in subCommentsMap.
rootComments[].contentText of the comment. It can be an empty string when the comment only has an attachment.
rootComments[].likedCount / rootComments[].subCommentCountNumber of likes on the comment and number of replies to it.
rootComments[].author_id / rootComments[].author_name / rootComments[].authorAreaID, display name and region of the user who wrote the comment.
rootComments[].time / rootComments[].timestampComment time as a text date and as a numeric timestamp. The numeric value looks like milliseconds since the Unix epoch.
rootComments[].hotWhether the comment is flagged as hot.
rootComments[].attachments[].typeType of media attached to the comment, such as PHOTO. The linked work is under content.photoInfo.
subCommentsMap.<comment_id>.subComments[]Preview of replies for that top-level comment. Each entry has the same author fields as a root comment.
subCommentsMap.<comment_id>.pcursorCursor for more replies to that comment. The value no_more means there are no further replies.

Notes

  • photo_id is the numeric ID of the video, for example 5193494945927590140. Pass it as a string.
  • For the next page of comments, send the returned pcursor together with the same photo_id.
  • To read all replies under a comment, use Kuaishou Video Sub Comments (App) with the reply cursor.
  • To look up the video itself, use Kuaishou Video Details (V1).

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

指南:Best Kuaishou API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Kuaishou Video Comments (App) API?

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

Kuaishou Video Comments (App) API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Kuaishou Video Comments (App) API 接受哪些參數?

必要:photo_id (string)。 選填:pcursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Kuaishou Video Comments (App) API 會回傳什麼?

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

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

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