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

作品弹幕列表

取作品在给定时间区间内的弹幕;不给区间即全片,返回按时间排序。

GET
/api/douyin/fetch_work_danmaku

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

aweme_id*string

作品 ID

Length1 <= length
start_time?integer

区间起点(毫秒),默认 0

Range0 <= value <= 9007199254740991
end_time?integer

区间终点(毫秒),默认取总时长

Range0 <= value <= 9007199254740991
duration*integer

作品总时长(毫秒),也是默认终点

Range0 <= value <= 604800000

Response Body

application/json

application/json

curl -X GET "https://example.com/api/douyin/fetch_work_danmaku?aweme_id=string&duration=0"
{  "success": true,  "data": {    "danmaku_list": [      {        "danmaku_id": "string",        "danmaku_logos": null,        "danmaku_type": 0,        "danmaku_type_bits": 0,        "digg_count": 0,        "digg_type": 0,        "dislike_type": 0,        "extra": {          "big_thumb": null,          "decorated_emoji_info": null,          "style_list": null        },        "from_copy": true,        "has_emoji": true,        "is_ad": true,        "item_id": "string",        "offset_time": 0,        "score": 0,        "show_copy": true,        "show_digg": true,        "status": 0,        "text": "string",        "text_extra": null,        "user_id": "string"      }    ],    "end_time": 0,    "extra": {      "fatal_item_ids": [        null      ],      "logid": "string",      "now": 0    },    "log_pb": {      "impr_id": "string"    },    "start_time": 0,    "status_code": 0,    "total": 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"}