获取单条视频推荐列表-哔哩哔哩视频 API

  • 2020 年 08 月 11 日
  • 317
  • 312 字
  • 暂无评论

视频推荐

获取单视频推荐列表(web 端)

http://api.bilibili.com/x/web-interface/archive/related

请求方式:GET

最多获取 40 条推荐视频

url 参数:

参数名类型内容必要性备注
aidnum视频 avID必要(可选)avID 与 bvID 任选一个
bvidstr视频 bvID必要(可选)avID 与 bvID 任选一个

json 回复:

根对象:

字段类型内容备注
codenum返回值0:成功 -400:请求错误
messagestr错误信息默认为 0
ttlnum1
dataarray推荐列表

data 数组:

类型内容备注
0obj推荐视频 1
nobj推荐视频 (n+1)
……obj…………
39obj推荐视频 40

data 数组中的对象:

基本同「视频详细信息」中的 data 对象

示例:

查询视频 av7/BV1xx411c7m9 的推荐视频列表

avID 方式:

curl -G 'http://api.bilibili.com/x/web-interface/archive/related'\
--data-urlencode 'aid=7'

bvID 方式:

curl -G 'http://api.bilibili.com/x/web-interface/archive/related'\
--data-urlencode 'bvid=BV1xx411c7m9'
{
    "code": 0,
    "message": "0",
    "ttl": 1,
    "data": [{
        "aid": 21322566,
        "videos": 1,
        "tid": 124,
        "tname": "趣味科普人文",
        "copyright": 1,
        "pic": "http://i2.hdslb.com/bfs/archive/37f383ac35d386af1fc578108ad643e5952ff66a.jpg",
        "title": "bilibili上市宣传视频",
        "pubdate": 1522205992,
        "ctime": 1522205994,
        "desc": "今天晚上9点30分(北京时间),bilibili将在美国纳斯达克(NASDAQ)证券交易所挂牌上市。",
        "state": 0,
        "attribute": 16768,
        "duration": 155,
        "rights": {
            "bp": 0,
            "elec": 0,
            "download": 0,
            "movie": 0,
            "pay": 0,
            "hd5": 1,
            "no_reprint": 1,
            "autoplay": 1,
            "ugc_pay": 0,
            "is_cooperation": 0,
            "ugc_pay_preview": 0,
            "no_background": 0
        },
        "owner": {
            "mid": 208259,
            "name": "陈睿",
            "face": "http://i2.hdslb.com/bfs/face/8920e6741fc2808cce5b81bc27abdbda291655d3.png"
        },
        "stat": {
            "aid": 21322566,
            "view": 2129084,
            "danmaku": 51108,
            "reply": 18119,
            "favorite": 46524,
            "coin": 85223,
            "share": 16669,
            "now_rank": 0,
            "his_rank": 1,
            "like": 95621,
            "dislike": 0
        },
        "dynamic": "今天晚上9点30分(北京时间),bilibili将在美国纳斯达克(NASDAQ)证券交易所挂牌上市。",
        "cid": 35063529,
        "dimension": {
            "width": 1920,
            "height": 1080,
            "rotate": 0
        },
        "bvid": ""
    }, {
        "aid": 271,
        "videos": 1,
        "tid": 53,
        "tname": "",
        "copyright": 1,
        "pic": "http://i1.hdslb.com/bfs/archive/a5980672f3d03e8292148748a63de99cd45679d3.jpg",
        "title": "弹幕测试专用",
        "pubdate": 1249886475,
        "ctime": 1497344798,
        "desc": "给职人发射弹幕定位用.",
        "state": 0,
        "attribute": 32768,
        "duration": 4558,
        "rights": {
            "bp": 0,
            "elec": 0,
            "download": 0,
            "movie": 0,
            "pay": 0,
            "hd5": 0,
            "no_reprint": 0,
            "autoplay": 1,
            "ugc_pay": 0,
            "is_cooperation": 0,
            "ugc_pay_preview": 0,
            "no_background": 0
        },
        "owner": {
            "mid": 2,
            "name": "碧诗",
            "face": "http://i1.hdslb.com/bfs/face/3e60b20604b6fdc7d081eb6a1ec72aa47c5a3964.jpg"
        },
        "stat": {
            "aid": 271,
            "view": 2532266,
            "danmaku": 699214,
            "reply": 10224,
            "favorite": 34927,
            "coin": 9712,
            "share": 3586,
            "now_rank": 0,
            "his_rank": 182,
            "like": 27257,
            "dislike": 0
        },
        "dynamic": "",
        "cid": 3659795,
        "dimension": {
            "width": 0,
            "height": 0,
            "rotate": 0
        },
        "bvid": ""
    }, {
        "aid": 106,
        "videos": 1,
        "tid": 26,
        "tname": "音MAD",
        "copyright": 2,
        "pic": "http://i2.hdslb.com/bfs/archive/34d8fdf08d1fe28c229dec2fd122815a1d012908.jpg",
        "title": "最终鬼畜蓝蓝路",
        "pubdate": 1350316631,
        "ctime": 1497348932,
        "desc": "sm2057168 把这个音mad的图腾和支柱从UP的怒火中搬出来重新立好,这是我所能做的最后的事情了。",
        "state": 0,
        "attribute": 32768,
        "duration": 318,
        "rights": {
            "bp": 0,
            "elec": 0,
            "download": 0,
            "movie": 0,
            "pay": 0,
            "hd5": 0,
            "no_reprint": 0,
            "autoplay": 1,
            "ugc_pay": 0,
            "is_cooperation": 0,
            "ugc_pay_preview": 0,
            "no_background": 0
        },
        "owner": {
            "mid": 8839,
            "name": "TSA",
            "face": "http://i0.hdslb.com/bfs/face/0ef5daf622bf4789034b3c15147a45e11c48c9b3.jpg"
        },
        "stat": {
            "aid": 106,
            "view": 7607070,
            "danmaku": 212896,
            "reply": 41521,
            "favorite": 200705,
            "coin": 51673,
            "share": 38049,
            "now_rank": 0,
            "his_rank": 22,
            "like": 148550,
            "dislike": 0
        },
        "dynamic": "",
        "cid": 3635863,
        "dimension": {
            "width": 0,
            "height": 0,
            "rotate": 0
        },
        "bvid": ""
    }, {
        "aid": 50025934,
        "videos": 1,
        "tid": 122,
        "tname": "野生技术协会",
        "copyright": 1,
        "pic": "http://i0.hdslb.com/bfs/archive/af534399612085dbd916381b3377b18c765fab2d.png",
        "title": "B站又一位Lv9的up诞生了",
        "pubdate": 1555829289,
        "ctime": 1555829289,
        "desc": "要不关注一下?",
        "state": 0,
        "attribute": 16512,
        "duration": 45,
        "rights": {
            "bp": 0,
            "elec": 0,
            "download": 0,
            "movie": 0,
            "pay": 0,
            "hd5": 0,
            "no_reprint": 1,
            "autoplay": 1,
            "ugc_pay": 0,
            "is_cooperation": 0,
            "ugc_pay_preview": 0,
            "no_background": 0
        },
        "owner": {
            "mid": 174161216,
            "name": "血色红茶Xenomprph",
            "face": "http://i1.hdslb.com/bfs/face/5a5ececb9b7a688751024c60063ba5853bed7e1e.jpg"
        },
        "stat": {
            "aid": 50025934,
            "view": 159595,
            "danmaku": 62,
            "reply": 153,
            "favorite": 301,
            "coin": 1059,
            "share": 55,
            "now_rank": 0,
            "his_rank": 0,
            "like": 1219,
            "dislike": 0
        },
        "dynamic": "",
        "cid": 87577929,
        "dimension": {
            "width": 2560,
            "height": 1440,
            "rotate": 0
        },
        "bvid": ""
    },
    …………
    ]
}

版权属于:Aini99

本文链接:https://bv-av.cn/read/cv10

本站部分内容转载于互联网,目的是为了传达信息。如果有内容侵犯了你的版权,请联系 QQ:1144560054。我们会在审查后第一时间进行修改。


—— 暂无评论 ——

评论已关闭