Kuaishou Video Comments (Web)
https://api.sandbase.ai/v1/api/kuaishou/web/one-video-commentReturns root comments for a specified Kuaishou video, including author details, content, and like counts. Queries require a video ID and support cursor pagination.
- 價格
- $0.002美元/次呼叫
- 方法
- POST
- 回應
- JSON
- 參數
- 1 個必填 · 1 個選填
Playground
[
{
"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": {}
}
}
]範例
選擇一個範例,將其輸入與結果載入 playground。
API README
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
authorAreavalue 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
| Name | Type | Required | Description |
|---|---|---|---|
photo_id | string | Yes | |
pcursor | string | No |
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
| Field | Meaning |
|---|---|
commentCount | Total number of comments on the video. |
pcursor | Cursor for the next page of comments. Send it as the pcursor request parameter. |
rootComments[].comment_id | ID of the comment. |
rootComments[].content | Text of the comment. Replies to another user start with 回复 followed by that user's name. |
rootComments[].likedCount | Number of likes on the comment. |
rootComments[].author_id / rootComments[].author_name | ID and display name of the comment author. |
rootComments[].authorArea / rootComments[].user_sex | Area shown for the author, and the sex code of the user (M or F). |
rootComments[].time / rootComments[].timestamp | Comment time as a text date and as a numeric timestamp. |
rootComments[].replyToUserName / rootComments[].reply_to | Name and ID of the user this comment replies to. |
rootComments[].headurl | URL of the author's avatar image. |
Notes
photo_idis the numeric ID of the video, for example5193494945927590140. Use Kuaishou Single Video Details to check the video itself.- To get the next page, pass the
pcursorvalue from the response in your next request with the samephoto_id. subCommentsMapwas 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.
開始建置
送出您的第一個請求
具備統一驗證與用量追蹤的平台 API 端點。
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"
}'2. 驗證
請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
3. 參數
pcursorstring
4. 回應
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"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": {}
}
}
]探索更多
相關 APIs
| API | 價格 | 回應 |
|---|---|---|
Kuaishou | 每次呼叫 $0.002 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.002 | JSON |
問題
常見問題
我要如何使用 Kuaishou Video Comments (Web) API?
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/kuaishou/web/one-video-comment。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
Kuaishou Video Comments (Web) API 的費用是多少?
每次 $0.002,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
Kuaishou Video Comments (Web) API 接受哪些參數?
必要:photo_id (string)。 選填:pcursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
Kuaishou Video Comments (Web) API 會回傳什麼?
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
我需要 Kuaishou 開發者帳號或 API 金鑰嗎?
不需要。Kuaishou Video Comments (Web) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Kuaishou API 存取權。
