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

番剧下载流信息

取番剧剧集的播放与下载流地址;高清档位需要带登录凭证。

GET
/api/bilibili/fetch_bangumi_video_playurl

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

cid*integer

剧集分集的 cid

Range1 <= value <= 9007199254740991
ep_id*string

剧集 EP ID,如 ep330798

Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/bilibili/fetch_bangumi_video_playurl?cid=1&ep_id=string"
{  "success": true,  "data": {    "code": 0,    "message": "string",    "result": {      "accept_description": [        "string"      ],      "accept_format": "string",      "accept_quality": [        0      ],      "bp": 0,      "can_watch_reason": 0,      "clip_info_list": [        {          "clipType": "string",          "end": 0,          "materialNo": 0,          "start": 0,          "toastText": "string"        }      ],      "code": 0,      "dash": {        "audio": [          {            "SegmentBase": {              "Initialization": "string",              "indexRange": "string"            },            "backupUrl": [              "string"            ],            "backup_url": [              "string"            ],            "bandwidth": 0,            "baseUrl": "string",            "base_url": "string",            "codecid": 0,            "codecs": "string",            "frameRate": "string",            "frame_rate": "string",            "height": 0,            "id": 0,            "md5": "string",            "mimeType": "string",            "mime_type": "string",            "sar": "string",            "segment_base": {              "index_range": "string",              "initialization": "string"            },            "size": 0,            "startWithSAP": 0,            "start_with_sap": 0,            "width": 0          }        ],        "dolby": {          "audio": [            null          ],          "type": 0        },        "duration": 0,        "minBufferTime": 0,        "min_buffer_time": 0,        "video": [          {            "SegmentBase": {              "Initialization": "string",              "indexRange": "string"            },            "backupUrl": [              "string"            ],            "backup_url": [              "string"            ],            "bandwidth": 0,            "baseUrl": "string",            "base_url": "string",            "codecid": 0,            "codecs": "string",            "frameRate": "string",            "frame_rate": "string",            "height": 0,            "id": 0,            "md5": "string",            "mimeType": "string",            "mime_type": "string",            "sar": "string",            "segment_base": {              "index_range": "string",              "initialization": "string"            },            "size": 0,            "startWithSAP": 0,            "start_with_sap": 0,            "width": 0          }        ]      },      "durls": [        null      ],      "dyeid": "string",      "error_code": 0,      "fnval": 0,      "fnver": 0,      "format": "string",      "from": "string",      "has_paid": true,      "is_drm": true,      "is_preview": 0,      "message": "string",      "no_rexcode": 0,      "quality": 0,      "record_info": {        "record": "string",        "record_icon": "string"      },      "result": "string",      "seek_param": "string",      "seek_type": "string",      "status": 0,      "support_formats": [        {          "attribute": 0,          "can_watch_qn_reason": 0,          "codecs": [            "string"          ],          "description": "string",          "display_desc": "string",          "format": "string",          "has_preview": true,          "limit_watch_reason": 0,          "need_login": true,          "need_vip": true,          "new_description": "string",          "quality": 0,          "report_params": "string",          "sub_description": "string",          "superscript": "string"        }      ],      "timelength": 0,      "type": "string",      "video_codecid": 0,      "video_project": true    }  },  "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"}