B站视频解析
解析哔哩哔哩的视频直链,本接口只能解析出1080P

接口地址 https://api.aag.moe/api/bzspjx

请求方式 GET

返回格式 JSON

HTTP/HTTPS HTTPS

请求示例 https://api.aag.moe/api/bzspjx?url=https://www.bilibili.com/video/BV1TECdYnEH8

温馨提示 防止恶意爬虫所以会识别浏览器的自然语言请求标头,如果调用返回511状态码,请尝试添加请求标头"Accept-Language",例子"Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7",如果仍然无法解决请联系我

参数说明

参数 必填 说明
url视频链接
p指定分段视频

返回说明

参数 说明
code状态码
message状态信息
title视频标题
videocoverurl视频封面链接
stat_view视频播放量
stat_danmu视频弹幕量
stat_dianzan视频点赞量
stat_toubi视频投币量
stat_shoucang视频收藏量
stat_zhuanfa视频转发量
total视频当前观看人数
quality视频分辨率
videourl视频直链
video_encoding视频编码
audiourl音频直链

调用返回数据示范

{"code":"0","message":"成功","title":"“突然从梦中醒来的空旷感简直是绝杀”","videocoverurl":"http://i0.hdslb.com/bfs/archive/96d74a8d3e66f365d42cd5962b75db3c42c40d65.jpg","stat_view":"325579","stat_danmu":"133","stat_dianzan":"73313","stat_toubi":"4891","stat_shoucang":"62195","stat_zhuanfa":"1111","total":"2","quality":"1440×1080","videourl":"https://upos-hz-mirrorakam.akamaized.net/upgcxcode/55/21/26366512155/26366512155-1-100113.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&uipk=5&nbs=1&deadline=1733594083&gen=playurlv2&os=akam&oi=793524493&trid=259edb62f7ea4c29bc456e3e26d14485T&mid=2102334115&platform=html5&og=cos&upsig=f14a4805a8f263af8fde250e1aa24066&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform,og&hdnts=exp=1733586883~hmac=be4902b4a01817886528a177e916fb33502861d11b4156035461525e9b5d0d9a&bvc=vod&nettype=0&bw=33914&orderid=0,2&buvid=&build=0&mobi_app=&f=T_0_0&logo=80000000","video_encoding":"HEVC","audiourl":"https://upos-hz-mirrorakam.akamaized.net/upgcxcode/55/21/26366512155/26366512155-1-30232.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&uipk=5&nbs=1&deadline=1733594083&gen=playurlv2&os=akam&oi=793524493&trid=259edb62f7ea4c29bc456e3e26d14485T&mid=2102334115&platform=html5&og=cos&upsig=7dd1094d51f54505a19f802e48bdeee8&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform,og&hdnts=exp=1733586883~hmac=a8b8d2fed84c0a84104c03b4c88f8f926a8e23e4b025a3d2b7b0946949f73ff6&bvc=vod&nettype=0&bw=13382&orderid=0,2&buvid=&build=0&mobi_app=&f=T_0_0&logo=80000000"}