特别说明:本教程适合0基础小白朋友,开发大牛请忽略,需要使用电脑,没有电脑的童鞋还是使用现成接口的好。

已获得查看权限

注册pastebin账号


  • 明白为什么要注册pastebin账号?
    • 因为要做接口,一般来说需要有服务器,但是成本太高不划算,而pastebin恰好解决这个问题,不仅可以免费使用,而且接口24小时在线
  • 点击注册地址去注册

下载TVBOX助手


  • 这个助手有什么作用?
    • 由于一些大佬不愿意公开接口代码,所以有一些接口是无法通过浏览器正常打开的,把接口放进去这个助理里就可以进行解密。
  • 下载地址
  • 下载完成,解压即可用

找到你喜欢大佬接口


  • 比如:http://饭太硬.top/tv,先把接口放到TVBOX里面,去电视上看看哪个站点是没有用的,读不到数据的,自己记着哪个站点(影视库)是无效的,后面需要根据这些信息去删除无效站点。
  • 这时再把接口复制进去TVBOX助手进行解密,会得到接口代码,例如下面的

  • 这时候可以把代码先拷贝到记事本,或者其他文本编辑工具为了能让大家容易看懂,我删减了很多站点,如下:
{
"spider": "https://files.zohopublic.com.cn/public/workdrive-public/download/uyv0t678c488189af47bb91dc108484d17431;md5;d65c6f3f30d78e020e48588d511f2bfe",
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
"sites": [
{ "key": "77", "name": "七七┃App", "type": 3, "api": "csp_Kunyu77", "searchable": 1, "quickSearch": 1, "changeable": 1 }, 
{ "key": "cc", "name": "请勿相信视频中任何广告", "type": 3, "api": "csp_XPath", "searchable": 0, "quickSearch": 0 } ], 
"parses": [ 
{ "name": "聚合1", "type": 3, "url": "Demo" }, 
{ "name": "再找来", "type": 1, "url": "http://xiaoxin.1080p.fun/home/api?type=ys&uid=91198&key=bhntuwyAJLMTUY1478&url=" } ],
 "rules": [ { "name": "lz", "hosts": [ "vip.lz", "hd.lz", "v.cdnlz" ], 
"lives": [ { "name": "live", "type": 0, "url": "https://agit.ai/fantaiying/0/raw/branch/main/tvlive.txt", 
"playerType": 1, "ua": "okhttp/3.15", "epg": "http://epg.112114.xyz/?ch={name}&date={date}", "logo": "https://epg.112114.xyz/logo/{name}.png" } ], 
"flags": [ "youku", "优酷", "优 酷", "优酷视频", "哔 哩 哔 哩" ], 
"ads": [ "wan.51img1.com", "iqiyi.hbuioo.com", "vip.ffzyad.com", "https://lf1-cdn-tos.bytegoofy.com/obj/tos-cn-i-dy/455ccf9e8ae744378118e4bd289288dd" ] }

3、划重点,其他什么都不用动,也不要动,动了可能就用不了,我们能动的范围只有"sites"(站点里面)的中括号[ ]里面的东西,也就是下面这部分:

"sites": [

 

{
 "key": "77",
 "name": "七七┃App",
 "type": 3,
 "api": "csp_Kunyu77",
 "searchable": 1,
 "quickSearch": 1,
 "changeable": 1
 }, 
 {
 "key": "cc",
 "name": "请勿相信视频中任何广告",
 "type": 3,
 "api": "csp_XPath",
 "searchable": 0,
 "quickSearch": 0
 }
 ],

 

  • 比如说这个77是无效的想要删除,那么我们就可以把整个花括号{ }连同后面那个逗号 , 都要删除,注意不要删错了。也就是下面这块:

 

{
 "key": "77",
 "name": "七七┃App",
 "type": 3,
 "api": "csp_Kunyu77",
 "searchable": 1,
 "quickSearch": 1,
 "changeable": 1
 },

 

4、当把失效的站点都删除完之后,就把剩余代码保存好备用

把处理好的代码拷贝到pastebin


  • 打开https://pastebin.com/,并登录你的账号
  • 新建一个psate,就是页面中间绿色那个大按钮

  • 把处理好代码粘贴进去,直接拉到页面最底下,其他不用设置,点击创建

  • 进入那个刚才建好的paste,点击菜单上的【raw】按钮,这是会跳转到另一个页面

  • 这时把浏览器上的地址复制好,就是你自己做的接口
  • 就可以把接口放进TVBOX看看能不能用,如果能用,说明你DIY成功了,如果不能用,说明中间删除错了东西,重新再来一遍就好。

如何往接口添加站点

  • 以下是已知很稳定的接口,直接拿来用就好

 


{"key":"U酷资源","name":"U酷资源","type":1,"api":"https://api.ukuapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"爱酷影视","name":"爱酷影视","type":1,"api":"https://www.zhanlangbu.com/api.php/provide/vod/","searchable":0,"quickSearch":0}, 
{"key":"乐活影视","name":"乐活影视","type":1,"api":"https://lehootv.com/api.php/provide/vod/","searchable":0,"quickSearch":0}, 
{"key":"TOM资源","name":"TOM资源","type":1,"api":"https://api.tomcaiji.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"快车资源","name":"快车资源","type":1,"api":"https://caiji.kczyapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"松鼠资源","name":"松鼠资源","type":1,"api":"https://m3u8.songshuzy.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"FOX资源","name":"FOX资源","type":1,"api":"https://api.foxzyapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"番茄资源","name":"番茄资源","type":1,"api":"http://api.fqzy.cc/api.php/provide/vod/","playUrl":"https://dp.fqplayer.com/dplayer/?url=","searchable":1,"quickSearch":1}, 
{"key":"卧龙资源","name":"卧龙资源","type":1,"api":"https://collect.wolongzyw.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"mtv_pc_奥特影视","name":"奥特影视","type":3,"api":"csp_Auete","searchable":1,"quickSearch":1,"filterable":1}, 
{"key":"csp_biubiu_速搜影视","name":"速搜影视","type":3,"api":"csp_XBiubiu","searchable":1,"quickSearch":1,"filterable":0,"ext":"http://maoyingshi.cc/tvbox/云星日记/sh/MaooXB/速搜影视.json"}, 
{"key":"新浪资源","name":"新浪资源","type":1,"api":"http://api.xinlangapi.com/xinlangapi.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"乐活影视","name":"乐活影视","type":1,"api":"https://lehootv.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"闪电资源","name":"闪电资源","type":1,"api":"http://sdzyapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"量子资源","name":"量子资源","type":1,"api":"http://cj.lziapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"天堂资源","name":"天堂资源","type":1,"api":"http://vipmv.cc/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key": "csp_xml_taopian","name": "淘片","type": 0,"api": "https://taopianzy.com/home/cjapi/as/mc10/vod/xml/m3u8","categories": []},  
{"key":"悟空影院","name":"悟空影院","type":3,"api":"csp_AppYs","searchable":0,"quickSearch":0,"filterable":0,"ext":"http://dapi.pntao.com/api.php/v1.vod"}, 
{"key":"天堂资源","name":"天堂资源","type":1,"api":"http://vipmv.cc/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"红牛资源","name":"红牛资源","type":1,"api":"https://www.hongniuzy2.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"天翼资源","name":"天翼资源","type":0,"api":"https://www.911ysw.top/tianyi.php/provide/vod/at/xml","playUrl":"","searchable":1,"quickSearch":1}, 
{"key":"干饭影视","name":"干饭影视","type":0,"api":"http://124.220.183.81:83/api.php/provide/vod/at/xml","playUrl":"","searchable":1,"quickSearch":1}, 
{"key": "ff9","name": "ff9资源","type": 0,"api": "https://www.ff9.top/api.php/provide/vod/at/xml","playUrl": "","searchable":1,"quickSearch":1}, 
{"key": "PH2","name": "飘花影院","type": 0,"api": "http://www.ahjiuman.com/api.php/provide/vod/at/xml","playUrl": "","searchable":1,"quickSearch":1}, 
{"key":"csp_appysv2_热剧天堂TV","name":"热剧天堂TV","type":3,"api":"csp_AppYsV2","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://175.178.7.35:2020/api.php/Sntv/vod/"}, 
{"key":"韩剧资源","name":"韩剧资源","type":1,"api":"http://www.hanjuzy.com/inc/apijson_vod.php","searchable":0,"quickSearch":0}, 
{"key":"龙腾资源","name":"龙腾资源","type":1,"api":"http://175.178.7.35:2020/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"热剧天堂","name":"热剧天堂","type":1,"api":"http://175.178.7.35:2020/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"无尽","name":"无尽","type":1,"api":"https://api.wujinapi.cc/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"快车资源","name":"快车资源","type":1,"api":"https://caiji.kczyapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"量子资源","name":"量子资源","type":1,"api":"http://cj.lziapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"红牛资源","name":"红牛资源","type":1,"api":"https://www.hongniuzy2.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"闪电资源","name":"闪电资源","type":1,"api":"http://sdzyapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"飞速资源","name":"飞速资源","type":1,"api":"https://www.feisuzy.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"光速资源","name":"光速资源","type":1,"api":"https://api.guangsuapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"韩剧资源","name":"韩剧资源","type":1,"api":"http://www.hanjuzy.com/inc/apijson_vod.php","searchable":0,"quickSearch":0}, 
{"key":"77韩剧","name":"77韩剧","type":1,"api":"https://www.77hanju.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"FF9资源","name":"FF9资源","type":1,"api":"https://www.ff9.top/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"U酷资源","name":"U酷资源","type":1,"api":"https://api.ukuapi.com/api.php/provide/vod/","searchable":1,"quickSearch":1}, 
{"key":"6U资源","name":"6U资源","type":1,"api":"http://zy.ataoju.com/inc/apijson_vod.php","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"八戒资源","name":"八戒资源","type":1,"api":"http://cj.bajiecaiji.com/inc/apijson_vod.php","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"天空资源","name":"天空资源","type":1,"api":"http://api.tiankongapi.com/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"天堂资源","name":"天堂资源","type":1,"api":"http://vipmv.cc/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"闪电资源","name":"闪电资源","type":1,"api":"http://sdzyapi.com/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"百度资源","name":"百度资源","type":1,"api":"https://api.apibdzy.com/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]}, 
{"key":"飘花电影","name":"飘花电影","type":1,"api":"http://www.zzrhgg.com/api.php/provide/vod/","playUrl":"","searchable":1,"quickSearch":0,"categories":[]},

 

往接口添加站点,我们依然是只能往"sites"里面添加,记得花括号和后面逗号一起复制,最好往已有接口上面去加,注意:这有一个规则(划重点):最后一个站点的最后一个花括号后面是没有逗号,多试几次就熟练了。也就是如下面这样的:

"sites": [{
"key": "77",
"name": "七七┃App",
"type": 3,
"api": "csp_Kunyu77",
"searchable": 1,
"quickSearch": 1,
"changeable": 1
},
{
"key": "cc",
"name": "最后一个站点的花括号后面没有逗号",
"type": 3,
"api": "csp_XPath",
"searchable": 0,
"quickSearch": 0
}
],	
| 直播源格式互转工具   | M3U8在线播放器 | 港澳台超清直播源【会员专属】  | 央卫超清直播源【会员专属】