bilibili获取视频链接API

bilibili 文章 2020-01-14 17:21 0 560 全屏看文

https://api.bilibili.com/pgc/player/web/playurl?ep_id=38911&fourk=1&fnver=0&fnval=16&type=mp4

返回结果:

{"code":0,"message":"success","result":{"accept_format":"hdmp4,mp4","code":0,"durl":[{"size":245679052,"ahead":"","length":1452209,"vhead":"","backup_url":["https://upos-sz-mirrorks3.bilivideo.com/upgcxcode/37/36/3173637/3173637-1-48.mp4?e=ig8euxZM2rNcNbKghbUVhoMMhbNBhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNo8g2ENvNo8i8o859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859r1qXg8gNEVE5XREto8z5JZC2X2gkX5L5F1eTX1jkXlsTXHeux_f2o859IB_&uipk=5&nbs=1&deadline=1579008037&gen=playurl&os=ks3bv&oi=3657750130&trid=9313d1a43221435fb5d6b7cf81234beep&platform=pc&upsig=c5cd5b3aef1807d2a9c4975bc7a2f876&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mid=0"],"url":"https://upos-sz-mirrorkodo.bilivideo.com/upgcxcode/37/36/3173637/3173637-1-48.mp4?e=ig8euxZM2rNcNbKghbUVhoMMhbNBhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNo8g2ENvNo8i8o859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859r1qXg8gNEVE5XREto8z5JZC2X2gkX5L5F1eTX1jkXlsTXHeux_f2o859IB_&uipk=5&nbs=1&deadline=1579008037&gen=playurl&os=kodobv&oi=3657750130&trid=9313d1a43221435fb5d6b7cf81234beep&platform=pc&upsig=39d52d6c24cfa38da4ec806d8b283253&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mid=0","order":1,"md5":""}],"seek_param":"start","is_preview":0,"no_rexcode":0,"format":"hdmp4","fnval":1,"video_project":true,"fnver":0,"message":"","type":"MP4","accept_quality":[48,16],"bp":0,"quality":48,"timelength":1452209,"result":"suee","seek_type":"second","has_paid":false,"from":"local","video_codecid":7,"accept_description":["高清 720P","流畅 360P"],"status":2}}


-EOF-