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

作品弹幕列表

取作品弹幕列表。可按时间段取(`from` / `to`),不传时间段就取全量。

GET
/api/kuaishou/fetch_danmaku_list

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

photoId*string

作品 ID

Length1 <= length
from?integer

起始位置(毫秒),默认 0

Range0 <= value <= 3600000
to?integer

结束位置(毫秒);不传则用 duration

Range1 <= value <= 3600000
duration?integer

作品时长(毫秒),取全量用

Range1 <= value <= 3600000

Response Body

application/json

application/json

curl -X GET "https://example.com/api/kuaishou/fetch_danmaku_list?photoId=string"
{  "success": true,  "data": {    "data": {      "visionDanmaku": {        "__typename": "string",        "danmakus": [          {            "__typename": "string",            "body": "string",            "id": 0,            "isLiked": null,            "isShow": true,            "likeCount": null,            "position": 0,            "quality": 0,            "userId": "string"          }        ],        "pcursor": "string",        "positionFromInclude": 0,        "positionToExclude": 0,        "result": 0      }    }  },  "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"}