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

作品评论列表

取作品评论列表,子评论按根评论 ID 分组返回。`number` 指定目标条数,翻页自动完成。

GET
/api/kuaishou/fetch_work_comments

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

photoId*string

作品 ID

Length1 <= length
number?integer

目标条数;不传时按单页上限翻页取满,而不是只取一页

Range1 <= value <= 500

Response Body

application/json

application/json

curl -X GET "https://example.com/api/kuaishou/fetch_work_comments?photoId=string"
{  "success": true,  "data": {    "commentCount": 0,    "pcursor": "string",    "result": 0,    "rootComments": [      {        "authorVerified": true,        "author_id": 0,        "author_liked": true,        "author_name": "string",        "cashTags": {},        "commentAuthorTags": [          null        ],        "commentBottomTags": [          {            "bgColor": "string",            "bgColorNight": "string",            "extra": "string",            "text": "string",            "textColor": "string",            "textColorNight": "string",            "textKey": "string"          }        ],        "comment_id": 0,        "content": "string",        "displaySubCommentCount": true,        "headurl": "string",        "headurls": [          {            "cdn": "string",            "url": "string"          }        ],        "hot": true,        "likedCount": 0,        "photo_id": 0,        "recallType": 0,        "reply_to": 0,        "subCommentCount": 0,        "time": "string",        "timestamp": 0,        "type": 0,        "user_id": 0,        "user_sex": "string"      }    ],    "sinkCommentIds": [      0    ],    "subCommentsMap": {      "1171179464225": {        "pcursor": "string",        "subComments": [          {            "authorVerified": true,            "author_id": 0,            "author_liked": true,            "author_name": "string",            "cashTags": {},            "commentAuthorTags": [              null            ],            "commentBottomTags": [              null            ],            "comment_id": 0,            "content": "string",            "headurl": "string",            "headurls": [              {                "cdn": "string",                "url": "string"              }            ],            "likedCount": 0,            "photo_id": 0,            "replyToUserName": "string",            "reply_to": 0,            "time": "string",            "timestamp": 0,            "type": 0,            "user_id": 0,            "user_sex": "string"          }        ]      }    }  },  "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"}