当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

评论回复列表

取一条根评论下的回复。`rootCommentId` 取评论列表里 `hasSubComments` 为真的那条评论 ID。走 PC GraphQL,自带 PC 上下文 cookie 并对首发风控自动重试;有浏览器里的真实 `did` 时经 `cookies.kuaishou` 传入更稳。

GET
/api/kuaishou/fetch_comment_replies

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

photoId*string

作品 ID

Length1 <= length
rootCommentId*string

根评论 ID

Length1 <= length
number?integer

目标条数,默认一页

Range1 <= value <= 500

Response Body

application/json

application/json

curl -X GET "https://example.com/api/kuaishou/fetch_comment_replies?photoId=string&rootCommentId=string"
{  "success": true,  "data": null,  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}