| 状态码 | 说明 |
|---|---|
| -1 | failed |
| 0 | success |
| 400 | 参数错误 |
| 1001 | 账户余额不足 |
| 1002 | 邮箱/手机号或密码错误 |
| 1003 | 请求频率超过上限 |
| 1004 | 邮箱或手机号已注册 |
| 1005 | 无效的 API Key |
| 1006 | 用户不存在 |
| 1007 | 登录凭证无效 |
| 1008 | 缺少 API Key |
| 1009 | 手机或邮箱已存在 |
| 1010 | 需要管理员授权 |
| 1011 | 原密码错误 |
| 1012 | 新密码不能与原密码相同 |
| 1013 | 手机号和uid不能都为空 |
| 1014 | 请填写验证码 |
| 1015 | 验证码错误或已过期 |
| 1016 | 登录失败次数过多,请输入验证码 |
| 1017 | 请填写手机号 |
| 1018 | 请填写邮箱 |
| 1019 | 接口不存在,请检查 |
| 5000 | 服务暂时不可用,请稍后重试 |
| 5003 | 网络连接失败,请稍后重试 |
| 6001 | 修改密码失败,请稍后重试 |
| 字段路径 | 示例值 | 说明 |
|---|---|---|
ep_id | 204779 | 必填,纯数字。每一集一个 ID,整季里每集不同。来源:play_info 分集列表、或播放链接里的 ep 数字。 |
avid | 22506310 | 必填,纯数字。番剧单集绑定的 av 稿件号,和该集的 aid 一致。来源:分集里的 aid(不是 bvid;BVxxx 不能直接当 avid 用,除非自己换算,一般直接用 aid)。 |
cid | 767333015 | 必填,纯数字。该集对应的 cid,和 aid/ep_id 一一对应某一集。来源:分集里的 cid。换一集必须换整套 ep_id + avid + cid。 |
aid | 22506310 | 可选,纯数字。一般与 avid 相同,兼容用。 |
{
"url": "https://www.bilibili.com/bangumi/play/ep204779?spm_id_from=333.1007.partition_recommend.content.click&from_spmid=666.25.episode.0",
"section_id": "",
"page_index": ""
}curl --location 'https://api.yddm.com/bilibili/bangumi_play_info' \
--header 'X-API-Key: {{X-API-Key}}' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://www.bilibili.com/bangumi/play/ep204779?spm_id_from=333.1007.partition_recommend.content.click&from_spmid=666.25.episode.0",
"section_id": "",
"page_index": ""
}'{
"code": 0,
"msg": "success",
"data": {
"cost": 100,
"balance": 8687400,
"locator": {
"index_in_page": 1,
"page_index": 3,
"section_id": 38618,
"target_ep_id": 785543
},
"sections": [
{
"page_mode": 1,
"pages": [
{
"episodes": [
{
"aid": 1553872707,
"badge": "预告",
"badge_info": {
"bg_color": "#00C0FF",
"bg_color_night": "#0B91BE",
"text": "预告"
},
"badge_type": 1,
"bvid": "BV1Q1421X7aQ",
"cid": 1527137175,
"cover": "http://i0.hdslb.com/bfs/archive/a2189e9679c1e92097e40bf0bfe9f86e371817c3.jpg",
"dimension": {
"height": 1080,
"rotate": 0,
"width": 1920
},
"duration": 29000,
"enable_vt": false,
"ep_id": 788445,
"from": "bangumi",
"icon_font": {
"name": "playdata-square-line@500",
"text": "315.2万"
},
"id": 788445,
"is_view_hide": false,
"link": "https://www.bilibili.com/bangumi/play/ep788445",
"long_title": "星海飞驰25",
"pub_time": 1714791600,
"pv": 0,
"release_date": "",
"rights": {
"allow_dm": 1,
"allow_download": 1,
"area_limit": 0,
"cache_auth": 0
},
"section_type": 1,
"share_copy": "《凡人修仙传》星海飞驰第25集预告 ",
"share_url": "https://www.bilibili.com/bangumi/play/ep788445",
"short_link": "https://b23.tv/ep788445",
"showDrmLoginDialog": false,
"show_title": "星海飞驰第25集预告",
"skip": {
"ed": {
"end": 0,
"start": 0
},
"op": {
"end": 0,
"start": 0
}
},
"stat": {
"coin": 14356,
"danmakus": 273,
"likes": 18920,
"play": 3152223,
"reply": 842,
"vt": 0
},
"stat_for_unity": {
"coin": 14356,
"danmaku": {
"icon": "danmu-square-line@500",
"pure_text": "",
"text": "273",
"value": 273
},
"likes": 18920,
"reply": 842,
"vt": {
"icon": "playdata-square-line@500",
"pure_text": "315.2万播放",
"text": "315.2万",
"value": 3152223
}
},
"status": 2,
"subtitle": "已观看73.4亿次",
"title": "101",
"vid": ""
},
{
"aid": 1504271229,
"badge": "预告",