Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Kuaishou Video Comments (Web)

Tài liệu API
https://api.sandbase.ai/v1/api/kuaishou/web/one-video-comment

Returns root comments for a specified Kuaishou video, including author details, content, and like counts. Queries require a video ID and support cursor pagination.

Giá
$0.002USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
Đầu raVí dụ
Phản hồioutputs · 4.3 KB · 122 dòng
[
  {
    "data": {
      "commentCount": 3053,
      "host-name": "public-bjx-c95-kce-node339.idchb1az1.hb1.kwaidc.com",
      "pcursor": "975590339642",
      "result": 1,
      "rootComments": [
        {
          "authorArea": "江西",
          "authorVerified": false,
          "author_id": 1727775365,
          "author_liked": false,
          "author_name": "韩柚希(七谨希)",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 1137733188081,
          "content": "回复 挽风:枕头垫高,不要醒来[呆住][呆住][呆住]。",
          "headurl": "http://p4.a.yximgs.com/uhead/AB/2025/12/19/23/BMjAyNTEyMTkyMzE4NDlfMTcyNzc3NTM2NV8yX2hkMjQxXzUxOA==_s.jpg",
          "headurls": [
            {
              "cdn": "p4.a.yximgs.com",
              "url": "http://p4.a.yximgs.com/uhead/AB/2025/12/19/23/BMjAyNTEyMTkyMzE4NDlfMTcyNzc3NTM2NV8yX2hkMjQxXzUxOA==_s.jpg"
            },
            {
              "cdn": "p2.a.yximgs.com",
              "url": "http://p2.a.yximgs.com/uhead/AB/2025/12/19/23/BMjAyNTEyMTkyMzE4NDlfMTcyNzc3NTM2NV8yX2hkMjQxXzUxOA==_s.jpg"
            }
          ],
          "isKwaiShopItemComment": false,
          "likedCount": 0,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "replyToUserName": "挽风",
          "reply_to": 3050602012,
          "time": "2026-06-02 10:00:17",
          "timestamp": 1780365616920,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "M"
        },
        {
          "authorArea": "陕西",
          "authorVerified": false,
          "author_id": 4121872155,
          "author_liked": false,
          "author_name": "ʚɞ",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 1031072700213,
          "content": "回复 如果忧郁是种病:切",
          "headurl": "http://p4.a.yximgs.com/uhead/AB/2026/08/04/22/BMjAyNjA4MDQyMjUyNDZfNDEyMTg3MjE1NV8yX2hkNTEwXzIxMQ==_s.jpg",
          "headurls": [
            {
              "cdn": "p4.a.yximgs.com",
              "url": "http://p4.a.yximgs.com/uhead/AB/2026/08/04/22/BMjAyNjA4MDQyMjUyNDZfNDEyMTg3MjE1NV8yX2hkNTEwXzIxMQ==_s.jpg"
            },
            {
              "cdn": "p2.a.yximgs.com",
              "url": "http://p2.a.yximgs.com/uhead/AB/2026/08/04/22/BMjAyNjA4MDQyMjUyNDZfNDEyMTg3MjE1NV8yX2hkNTEwXzIxMQ==_s.jpg"
            }
          ],
          "isKwaiShopItemComment": false,
          "likedCount": 0,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "replyToUserName": "如果忧郁是种病",
          "reply_to": 1988110437,
          "time": "2025-08-07 01:49:50",
          "timestamp": 1754502590208,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "F"
        },
        {
          "authorArea": "陕西",
          "authorVerified": false,
          "author_id": 1988110437,
          "author_liked": false,
          "author_name": "如果忧郁是种病",
          "cashTags": {},
          "commentAuthorTags": [],
          "commentBottomTags": [],
          "comment_id": 1031072556788,
          "content": "回复 ʚɞ:宝宝~",
          "headurl": "http://p4.a.yximgs.com/uhead/AB/2026/08/14/00/BMjAyNjA4MTQwMDE1NTVfMTk4ODExMDQzN18yX2hkNzU0Xzc2MA==_s.jpg",
          "headurls": [
            {
              "cdn": "p4.a.yximgs.com",
              "url": "http://p4.a.yximgs.com/uhead/AB/2026/08/14/00/BMjAyNjA4MTQwMDE1NTVfMTk4ODExMDQzN18yX2hkNzU0Xzc2MA==_s.jpg"
            },
            {
              "cdn": "p2.a.yximgs.com",
              "url": "http://p2.a.yximgs.com/uhead/AB/2026/08/14/00/BMjAyNjA4MTQwMDE1NTVfMTk4ODExMDQzN18yX2hkNzU0Xzc2MA==_s.jpg"
            }
          ],
          "isKwaiShopItemComment": false,
          "likedCount": 0,
          "photo_id": 5193494945927590000,
          "profilePagePrefetchInfo": {
            "profilePageType": 1
          },
          "replyToUserName": "ʚɞ",
          "reply_to": 4121872155,
          "time": "2025-08-07 01:48:49",
          "timestamp": 1754502529319,
          "type": 0,
          "user_id": 3795214411,
          "user_sex": "M"
        },
        "… 7 more items in the full response"
      ],
      "subCommentsMap": {}
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Kuaishou Video Comments (Web) API

Returns root comments for one Kuaishou video, including the comment text, author details, like count and post time. It needs the video's photo_id, and it accepts an optional pcursor to fetch the next page.

Use cases

  • Collect viewer comments on a Kuaishou video for sentiment analysis.
  • Find which comments on a video get the most likes.
  • Map where commenters live by reading the authorArea value on each comment.
  • Export comment text and author IDs to track repeat commenters across videos.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/one-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-node3731.idchb1az1.hb1.kwaidc.com",
  "pcursor": "975590339642",
  "result": 1,
  "rootComments": [
    {
      "authorArea": "江西",
      "authorVerified": false,
      "author_id": 1727775365,
      "author_liked": false,
      "author_name": "韩柚希(七谨希)",
      "cashTags": {},
      "commentAuthorTags": [],
      "commentBottomTags": [],
      "comment_id": 1137733188081,
      "content": "回复 挽风:枕头垫高,不要醒来[呆住][呆住][呆住]。",
      "headurl": "http://p5.a.yximgs.com/uhead/AB/2025/12/19/23/BMjAyNTEyMTkyMzE4NDlfMTcyNzc3NTM2N…",
      "headurls": [
        {
          "cdn": "p5.a.yximgs.com",
          "url": "http://p5.a.yximgs.com/uhead/AB/2025/12/19/23/BMjAyNTEyMTkyMzE4NDlfMTcyNzc3NTM2N…"
        }
      ]
    }
  ],
  "subCommentsMap": {}
}

Response fields

FieldMeaning
commentCountTotal number of comments on the video.
pcursorCursor for the next page of comments. Send it as the pcursor request parameter.
rootComments[].comment_idID of the comment.
rootComments[].contentText of the comment. Replies to another user start with 回复 followed by that user's name.
rootComments[].likedCountNumber of likes on the comment.
rootComments[].author_id / rootComments[].author_nameID and display name of the comment author.
rootComments[].authorArea / rootComments[].user_sexArea shown for the author, and the sex code of the user (M or F).
rootComments[].time / rootComments[].timestampComment time as a text date and as a numeric timestamp.
rootComments[].replyToUserName / rootComments[].reply_toName and ID of the user this comment replies to.
rootComments[].headurlURL of the author's avatar image.

Notes

  • photo_id is the numeric ID of the video, for example 5193494945927590140. Use Kuaishou Single Video Details to check the video itself.
  • To get the next page, pass the pcursor value from the response in your next request with the same photo_id.
  • subCommentsMap was empty in this response. Use Kuaishou Video Sub Comments (Web) to read replies to a comment.

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Kuaishou$0.002 mỗi lần gọiJSON
Kuaishou$0.001 mỗi lần gọiJSON
Kuaishou$0.001 mỗi lần gọiJSON
Kuaishou$0.001 mỗi lần gọiJSON
Kuaishou$0.001 mỗi lần gọiJSON
Kuaishou$0.002 mỗi lần gọiJSON

Hướng dẫn:Best Kuaishou API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Kuaishou Video Comments (Web)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/kuaishou/web/one-video-comment với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Kuaishou Video Comments (Web) có giá bao nhiêu?

$0.002 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Kuaishou Video Comments (Web) chấp nhận những tham số nào?

Bắt buộc: photo_id (string). Tùy chọn: pcursor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Kuaishou Video Comments (Web) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Kuaishou không?

Không. Kuaishou Video Comments (Web) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Kuaishou.