秒拍和虎牙视频解析接口

发布于 / 教程 / 2 条评论

之前秒拍接口应该是发布过一次,换了数据库文章没了,遂重新发布一次。
博主一直很鄙视某些拿着免费或者已经开源的资源来售卖盈利的行为,一个F12都能抓到的接口也能卖到¥50 ?纯粹坑小白吗。

虎牙视频解析接口


https://api.lylares.com/video/huya/?url=

示例:


https://api.lylares.com/video/huya/?url=http://ahuya.duowan.com/play/27389337.html

接口返回:


{
    "basic": {
        "vid": "27389337",
        "video_id": "0",
        "title": "RNGvsFPX_1_2018LPL_第六周DAY1",
        "channel_id": "vhuyalol",
        "source_name": "156123.mp4"
    },
    "vidData": {
        "code": 1,
        "message": "success",
        "result": {
            "vr": false,
            "channel": "vhuyalol",
            "ustime": "1520245475",
            "cover": "http://v-huya-img.huya.com/1810/27389337/3.jpg",
            "items": [
                {
                    "transcode_id": "24685999",
                    "format": "mp4",
                    "definition": "1300",
                    "size": "394734422",
                    "width": "1280",
                    "height": "720",
                    "duration": "3304.285000",
                    "transcode": {
                        "transcode_id": "24685999",
                        "format": "mp4",
                        "definition": "1300",
                        "size": "394734422",
                        "width": "1280",
                        "height": "720",
                        "duration": "3304.285000",
                        "urls": [
                            "http://huya-w6.huya.com/1810/27389337/1300/1d4598ace2069a713f7ea5d41e37d87d.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1300/1d4598ace2069a713f7ea5d41e37d87d.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1300/1d4598ace2069a713f7ea5d41e37d87d.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1300/1d4598ace2069a713f7ea5d41e37d87d.mp4"
                        ]
                    }
                },
                {
                    "transcode_id": "24681989",
                    "format": "mp4",
                    "definition": "1000",
                    "size": "223090470",
                    "width": "960",
                    "height": "540",
                    "duration": "3304.285000",
                    "transcode": {
                        "transcode_id": "24681989",
                        "format": "mp4",
                        "definition": "1000",
                        "size": "223090470",
                        "width": "960",
                        "height": "540",
                        "duration": "3304.285000",
                        "urls": [
                            "http://huya-w6.huya.com/1810/27389337/1000/193f0493db01679ddaf562f814d18e3a.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1000/193f0493db01679ddaf562f814d18e3a.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1000/193f0493db01679ddaf562f814d18e3a.mp4",
                            "http://huya-w6.huya.com/1810/27389337/1000/193f0493db01679ddaf562f814d18e3a.mp4"
                        ]
                    }
                },
                {
                    "transcode_id": "24697715",
                    "format": "mp4",
                    "definition": "yuanhua",
                    "size": "901211729",
                    "width": "1920",
                    "height": "1080",
                    "duration": "3304.061000",
                    "transcode": {
                        "transcode_id": "24697715",
                        "format": "mp4",
                        "definition": "yuanhua",
                        "size": "901211729",
                        "width": "1920",
                        "height": "1080",
                        "duration": "3304.061000",
                        "urls": [
                            "http://huya-w6.huya.com/1810/27389337/yuanhua/ed879c2fb5f9eb0d2c372b4bd702a9c3.mp4",
                            "http://huya-w6.huya.com/1810/27389337/yuanhua/ed879c2fb5f9eb0d2c372b4bd702a9c3.mp4",
                            "http://huya-w6.huya.com/1810/27389337/yuanhua/ed879c2fb5f9eb0d2c372b4bd702a9c3.mp4",
                            "http://huya-w6.huya.com/1810/27389337/yuanhua/ed879c2fb5f9eb0d2c372b4bd702a9c3.mp4"
                        ]
                    }
                },
                {
                    "transcode_id": "24680539",
                    "format": "mp4",
                    "definition": "350",
                    "size": "122344192",
                    "width": "640",
                    "height": "360",
                    "duration": "3304.285000",
                    "transcode": {
                        "transcode_id": "24680539",
                        "format": "mp4",
                        "definition": "350",
                        "size": "122344192",
                        "width": "640",
                        "height": "360",
                        "duration": "3304.285000",
                        "urls": [
                            "http://huya-w6.huya.com/1810/27389337/350/028d96dd89f6ef3c6809ffcfab77302f.mp4",
                            "http://huya-w6.huya.com/1810/27389337/350/028d96dd89f6ef3c6809ffcfab77302f.mp4",
                            "http://huya-w6.huya.com/1810/27389337/350/028d96dd89f6ef3c6809ffcfab77302f.mp4",
                            "http://huya-w6.huya.com/1810/27389337/350/028d96dd89f6ef3c6809ffcfab77302f.mp4"
                        ]
                    }
                }
            ]
        }
    }
}

带参数all=true将返回当前视频相关联视频信息:


https://api.lylares.com/video/huya/?all=true&url=http://ahuya.duowan.com/play/27389337.html

秒拍视频解析接口


https://api.lylares.com/video/miaopai/?url=

示例:


https://api.lylares.com/video/miaopai/?url=http://www.miaopai.com/show/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ__.htm

接口返回:


{
    "msg": "OK",
    "status": 200,
    "basical": {
        "title": "这是完整版,分享给大家看 @湖南卫视 #2017湖南卫视中秋之夜# 祝大家中秋节快乐",
        "pic": "http://imgaliyuncdn.miaopai.com/images/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ___5gn6_4.jpg"
    },
    "videoUrl": {
        "videoUrl": "http://kscdn.miaopai.com/stream/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ__.mp4?ssig=f069a8430420e9c657af33c21feb5260&time_stamp=1522681684347&f=/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ__.mp4",
        "altVideoUrl": "http://wsqncdn.miaopai.com/stream/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ__.mp4?ssig=f069a8430420e9c657af33c21feb5260&time_stamp=1522681684347&f=/1nr0Tqd4drj2gc9aeEWS2CfbCwZi2MEpuR5LTQ__.mp4"
    }
}
转载原创文章请注明,转载自: LYLARES'S BLOG » 秒拍和虎牙视频解析接口
  1. 乌云路人赵日天

    大兄弟问个事,不同清晰度的视频是怎么解析出来的,我直接f12查看,只看到当前播放的mp4文件地址

  2. 乌云路人赵日天

    感谢站长的无私。非常感谢