视频相关杂项

获取稿件列表

https://member.bilibili.com/x2/creative/web/archives/sp

请求方式: GET

认证方式: Cookie (SESSDATA)

注: 该接口返回内容大多为无实际意义的空值, 具体内容建议通过常规接口获取

URL参数:

参数名类型内容必要性备注
pnnum页码必要默认为 1
psnum每页数量必要默认为 10, 留空为 100

JSON回复:

根对象:

字段类型内容备注
codenum返回值0:成功
messagestr错误信息
ttlnum1
dataobj信息本体

data 对象:

字段类型内容备注
classnull作用尚不明确
arc_auditsarray稿件列表
pageobj分页信息
play_typenum1

arc_audits 数组中的对象:

字段类型内容备注
Archiveobj稿件信息
Videosnull
statobj稿件统计信息
state_panelnum0
parent_tnamestr
typenamestr
open_appealnum0
activitynull
season_add_statenum是否可加入合集0: 可以
1: 不可以

Archive 对象:

字段类型内容备注
aidnumav 号
bvidstrbv 号
midnum0
tidnum0
tp_infonull
titlestr稿件标题
authorstr
coverstr封面图位于 bfs 需要自行拼接 URL
reject_reasonstr
reject_reason_urlstr
tagstr
durationnum0
copyrightnum0
no_reprintnum0
ugcpaynum0
order_idnum0
order_namestr
adorder_idnum0
adorder_namestr
adorder_nostr
online_timenum0
new_adorder_infonull
descstr稿件简介
mission_idnum0
mission_namestr
attributenum0
statenum0
state_descstr
state_panelnum0
sourcestr
desc_format_idnum0
attrsnull
pordernull
dynamicstr
poi_objectnull
dtimenum0
ptimenum0
ctimenum0
ugcpay_infonull
staffsnull
votenull
activitynull
interactivenum0
hlnull
no_backgroundnum0
dynamic_videonum0
no_publicnum0
is_360num0
is_dolbynum0
lossless_musicnum0
bs_editornum0
up_fromnum0
desc_v2null
dynamic_v2null
topic_idnum0
topic_namestr
topic_statnum0
premierenum0
is_ugcpay_v2num0
recreatenull
charging_paynum0
neutral_markstr
previewnull
upower_levelnull
cover43str
had_passedboolfalse
is_staffnum0
is_pugvnum0
upower_modenum0
upower_unit_pricenum0

stat 对象:

字段类型内容备注
aidnumav 号
viewnum播放量
danmakunum弹幕数
replynum评论数
favoritenum收藏数
coinnum硬币数
sharenum分享数
now_ranknum0当前排名
his_ranknum0历史最高排名
likenum点赞数
dislikenum点踩数恒为 0
vtnum0
vvnum播放量

示例:

curl -G "https://member.bilibili.com/x2/creative/web/archives/sp" \
--data-urlencode "pn=1" \
--data-urlencode "ps=3" \
-b "SESSDATA=xxx"
查看响应示例:
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "class": null,
    "arc_audits": [
      {
        "Archive": {
          "aid": 1906473802,
          "bvid": "BV1MU411S7iJ",
          "mid": 0,
          "tid": 0,
          "tp_info": null,
          "title": "Linux小寄巧: 原地卸载内核然后尝试救活!",
          "author": "",
          "cover": "/bfs/archive/b76c0b574862f5a8e8eb133f5f33fcbcd602401a.jpg",
          "reject_reason": "",
          "reject_reason_url": "",
          "tag": "",
          "duration": 0,
          "copyright": 0,
          "no_reprint": 0,
          "ugcpay": 0,
          "order_id": 0,
          "order_name": "",
          "adorder_id": 0,
          "adorder_name": "",
          "adorder_no": "",
          "online_time": 0,
          "new_adorder_info": null,
          "desc": "",
          "mission_id": 0,
          "mission_name": "",
          "attribute": 0,
          "state": 0,
          "state_desc": "",
          "state_panel": 0,
          "source": "",
          "desc_format_id": 0,
          "attrs": null,
          "porder": null,
          "dynamic": "",
          "poi_object": null,
          "dtime": 0,
          "ptime": 0,
          "ctime": 0,
          "ugcpay_info": null,
          "staffs": null,
          "vote": null,
          "activity": null,
          "interactive": 0,
          "hl": null,
          "no_background": 0,
          "dynamic_video": 0,
          "no_public": 0,
          "is_360": 0,
          "is_dolby": 0,
          "lossless_music": 0,
          "bs_editor": 0,
          "up_from": 0,
          "desc_v2": null,
          "dynamic_v2": null,
          "topic_id": 0,
          "topic_name": "",
          "topic_stat": 0,
          "premiere": 0,
          "is_ugcpay_v2": 0,
          "recreate": null,
          "political_media": 0,
          "political_editable": 0,
          "charging_pay": 0,
          "neutral_mark": "",
          "preview": null,
          "upower_level": null,
          "cover43": "",
          "had_passed": false,
          "is_staff": 0,
          "is_pugv": 0,
          "upower_mode": 0,
          "upower_unit_price": 0
        },
        "Videos": null,
        "stat": {
          "aid": 1906473802,
          "view": 4036,
          "danmaku": 8,
          "reply": 56,
          "favorite": 53,
          "coin": 12,
          "share": 8,
          "now_rank": 0,
          "his_rank": 0,
          "like": 99,
          "dislike": 0,
          "vt": 0,
          "vv": 4036
        },
        "state_panel": 0,
        "parent_tname": "",
        "typename": "",
        "open_appeal": 0,
        "activity": null,
        "season_add_state": 0
      },
      {
        "Archive": {
          "aid": 1956170305,
          "bvid": "BV1Ay411i7Ph",
          "mid": 0,
          "tid": 0,
          "tp_info": null,
          "title": "十多年前的电脑运行Debian12的启动过程",
          "author": "",
          "cover": "/bfs/archive/0bff6624fdfcbf3326fba1837fef093d455c846a.jpg",
          "reject_reason": "",
          "reject_reason_url": "",
          "tag": "",
          "duration": 0,
          "copyright": 0,
          "no_reprint": 0,
          "ugcpay": 0,
          "order_id": 0,
          "order_name": "",
          "adorder_id": 0,
          "adorder_name": "",
          "adorder_no": "",
          "online_time": 0,
          "new_adorder_info": null,
          "desc": "",
          "mission_id": 0,
          "mission_name": "",
          "attribute": 0,
          "state": 0,
          "state_desc": "",
          "state_panel": 0,
          "source": "",
          "desc_format_id": 0,
          "attrs": null,
          "porder": null,
          "dynamic": "",
          "poi_object": null,
          "dtime": 0,
          "ptime": 0,
          "ctime": 0,
          "ugcpay_info": null,
          "staffs": null,
          "vote": null,
          "activity": null,
          "interactive": 0,
          "hl": null,
          "no_background": 0,
          "dynamic_video": 0,
          "no_public": 0,
          "is_360": 0,
          "is_dolby": 0,
          "lossless_music": 0,
          "bs_editor": 0,
          "up_from": 0,
          "desc_v2": null,
          "dynamic_v2": null,
          "topic_id": 0,
          "topic_name": "",
          "topic_stat": 0,
          "premiere": 0,
          "is_ugcpay_v2": 0,
          "recreate": null,
          "political_media": 0,
          "political_editable": 0,
          "charging_pay": 0,
          "neutral_mark": "",
          "preview": null,
          "upower_level": null,
          "cover43": "",
          "had_passed": false,
          "is_staff": 0,
          "is_pugv": 0,
          "upower_mode": 0,
          "upower_unit_price": 0
        },
        "Videos": null,
        "stat": {
          "aid": 1956170305,
          "view": 2747,
          "danmaku": 13,
          "reply": 37,
          "favorite": 11,
          "coin": 14,
          "share": 4,
          "now_rank": 0,
          "his_rank": 0,
          "like": 42,
          "dislike": 0,
          "vt": 0,
          "vv": 2747
        },
        "state_panel": 0,
        "parent_tname": "",
        "typename": "",
        "open_appeal": 0,
        "activity": null,
        "season_add_state": 0
      },
      {
        "Archive": {
          "aid": 910326709,
          "bvid": "BV1GM4y1a7Vn",
          "mid": 0,
          "tid": 0,
          "tp_info": null,
          "title": "Minecraft终末之诗,但是谷歌翻译20遍",
          "author": "",
          "cover": "/bfs/archive/09b7f2542f3e66973ec7de1a3c806cdd45b95426.jpg",
          "reject_reason": "",
          "reject_reason_url": "",
          "tag": "",
          "duration": 0,
          "copyright": 0,
          "no_reprint": 0,
          "ugcpay": 0,
          "order_id": 0,
          "order_name": "",
          "adorder_id": 0,
          "adorder_name": "",
          "adorder_no": "",
          "online_time": 0,
          "new_adorder_info": null,
          "desc": "原内容来源:Minecraft Wiki\n使用的工具:Google Translate\n视频仅供娱乐,请勿当真",
          "mission_id": 0,
          "mission_name": "",
          "attribute": 0,
          "state": 0,
          "state_desc": "",
          "state_panel": 0,
          "source": "",
          "desc_format_id": 0,
          "attrs": null,
          "porder": null,
          "dynamic": "",
          "poi_object": null,
          "dtime": 0,
          "ptime": 0,
          "ctime": 0,
          "ugcpay_info": null,
          "staffs": null,
          "vote": null,
          "activity": null,
          "interactive": 0,
          "hl": null,
          "no_background": 0,
          "dynamic_video": 0,
          "no_public": 0,
          "is_360": 0,
          "is_dolby": 0,
          "lossless_music": 0,
          "bs_editor": 0,
          "up_from": 0,
          "desc_v2": null,
          "dynamic_v2": null,
          "topic_id": 0,
          "topic_name": "",
          "topic_stat": 0,
          "premiere": 0,
          "is_ugcpay_v2": 0,
          "recreate": null,
          "political_media": 0,
          "political_editable": 0,
          "charging_pay": 0,
          "neutral_mark": "",
          "preview": null,
          "upower_level": null,
          "cover43": "",
          "had_passed": false,
          "is_staff": 0,
          "is_pugv": 0,
          "upower_mode": 0,
          "upower_unit_price": 0
        },
        "Videos": null,
        "stat": {
          "aid": 910326709,
          "view": 533,
          "danmaku": 6,
          "reply": 4,
          "favorite": 15,
          "coin": 13,
          "share": 4,
          "now_rank": 0,
          "his_rank": 0,
          "like": 29,
          "dislike": 0,
          "vt": 0,
          "vv": 533
        },
        "state_panel": 0,
        "parent_tname": "",
        "typename": "",
        "open_appeal": 0,
        "activity": null,
        "season_add_state": 0
      }
    ],
    "page": {
      "pn": 1,
      "ps": 3,
      "count": 32
    },
    "play_type": 1
  }
}

视频基础信息

https://member.bilibili.com/x/web/archive/videos

请求方式: GET

认证方式: Cookie (SESSDATA)

URL参数:

参数名类型内容必要性备注
aidnumav 号必要

JSON回复:

字段类型内容备注
codenum返回值0:成功
messagestr错误信息
ttlnum1
dataobj信息本体

data 对象:

字段类型内容备注
archiveobj稿件信息
videosarray视频信息

archive 对象:

字段类型内容备注
aidnumav 号
bvidstrbvid
titlestr标题

videos 数组:

字段类型内容备注
cidnum分P cid
indexnum分P 序号
titlestr分P 标题
durationnum0

示例:

curl -G "https://member.bilibili.com/x/web/archive/videos" \
--data-urlencode "aid=1906473802" \
-b "SESSDATA=xxx"
查看响应示例:
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "archive": {
      "aid": 1906473802,
      "bvid": "BV1MU411S7iJ",
      "title": "Linux小寄巧: 原地卸载内核然后尝试救活!"
    },
    "videos": [
      {
        "cid": 1625992822,
        "index": 1,
        "title": "Linux小寄巧: 原地卸载内核然后尝试救活!",
        "duration": 0
      }
    ]
  }
}