Skip to content

Latest commit

 

History

History
591 lines (479 loc) · 18.7 KB

开发杂类.md

File metadata and controls

591 lines (479 loc) · 18.7 KB

10. 开发杂类

说明: 一些杂七杂八的都在这里

10.1 QQ昵称和头像

数据来源http://r.qzone.qq.com/fcg-bin/cgi_get_portrait.fcg

必选参数: qq qq账号

接口地址:

        https://api.isoyu.com/qq/qq.asp?qq=               (头像来源qlogo.cn)
        https://api.isoyu.com/qq/qq.jsp?qq=               (头像来源qlogo.cn)
        https://api.isoyu.com/qq/qq.php?qq=               (头像来源qlogo.cn)
        https://api.isoyu.com/qq/qq2.asp?qq=              (头像来源qq.com)
        https://api.isoyu.com/qq/qq2.jsp?qq=              (头像来源qq.com)
        https://api.isoyu.com/qq/qq2.php?qq=              (头像来源qq.com)

调用例子:

        https://api.isoyu.com/qq/qq.asp?qq=10001
        https://api.isoyu.com/qq/qq.jsp?qq=10001
        https://api.isoyu.com/qq/qq.php?qq=10001
        https://api.isoyu.com/qq/qq2.asp?qq=10001
        https://api.isoyu.com/qq/qq2.jsp?qq=10001
        https://api.isoyu.com/qq/qq2.php?qq=10001

返回:

{
	"name": "pony",
	"img": "https://q.qlogo.cn/headimg_dl?dst_uin=10001&spec=100"
}
{
"name":"pony",
"img":"http://qlogo2.store.qq.com/qzone/10001/10001/100"
}

10.2 长网址缩短与还原

可压缩所有网址包括图片、flash、mp3、rar等所有互联网地址,稳定,永久有效!

必选参数:

type t.cn 126.am dwz.cn is.gd

url 需要操作的值

接口地址:

        长网址缩短:
        https://api.isoyu.com/url/create.asp
        https://api.isoyu.com/url/create.jsp
        https://api.isoyu.com/url/create.php
        短网址还原:
        https://api.isoyu.com/url/expand.asp
        https://api.isoyu.com/url/expand.jsp
        https://api.isoyu.com/url/expand.php

长网址缩短例子:

        https://api.isoyu.com/url/create.asp?type=t.cn&url=https://api.isoyu.com/ 
        https://api.isoyu.com/url/create.jsp?type=t.cn&url=https://api.isoyu.com/ 
        https://api.isoyu.com/url/create.php?type=t.cn&url=https://api.isoyu.com/ 

返回:

{
"code":1,
"message":"success",
"data":"http://t.cn/R9erV1d"
}

短网址还原例子:

        https://api.isoyu.com/url/expand.asp?type=t.cn&url=http://t.cn/R9erV1d
        https://api.isoyu.com/url/expand.jsp?type=t.cn&url=http://t.cn/R9erV1d
        https://api.isoyu.com/url/expand.php?type=t.cn&url=http://t.cn/R9erV1d

返回:

{
"code":1,
"message":"success",
"data":"https://api.isoyu.com/"
}

10.3 搜索服务

搜索框引用和实时热门搜索排行,默认http,支持ssl

必选参数:

搜索框引用接口地址:

    http://isoyu.com/?a=code&type=search  

调用例子:

        <iframe src="http://isoyu.com/?a=code&type=search" frameborder="0" scrolling="no" width="500" height="34"></iframe>
        

效果:

姬长信API

实时热门搜索排行接口地址:

    http://isoyu.com/?a=code&type=top  

    https://api.isoyu.com/top.php

调用例子:

        <iframe src="http://isoyu.com/?a=code&type=top" frameborder="0" scrolling="no" width="300" height="300"></iframe>
        

效果:

姬长信API

其他代码: 说明:如果要把搜索集成到其他网站,通过以下接口可以实现搜索 例子:

utf8编码的页面URL接口: http://isoyu.com/?q={$q} 

gb2312编码的页面URL接口: http://isoyu.com/?q={$q}&cr=gb2312 

gbk编码的页面URL接口: http://isoyu.com/?q={$q}&cr=gbk 

接口URL中的{$q}代码搜索词
        

10.4 VIP视频解析

基于DASH优化的P2P流媒体视频播放.支持:腾讯,爱奇艺,优酷,乐视,芒果,搜狐,PPTV,华数TV,M1905电影网,暴风影音,风行,CCTV,咪咕视频,天天看看,音悦台,哔哩哔哩,AcFun,美拍,秒拍,土豆,bilibili,龙珠,虎牙直播,NOW直播,YY神曲,一直播,映客直播,360短视频,27盘等资源站,2MM恋恋影视,糖豆,梨视频,FLV,M3U8,MP4

播放器:ckplayer

必选参数: url 视频解析地址

接口地址:

        https://api.isoyu.com/ckplayer/?url= 

调用例子:

        https://api.isoyu.com/ckplayer/?url=https://v.qq.com/x/cover/nilk5fd4bkqdk3a.html

效果: 姬长信API

10.5 抖音去水印

status:请求状态码true/false  
message:提示文本,返回结果错误时会返回地址信息  
nickname:抖音昵称  
awemeId:视频资源Id
info:视频信息 
image:封面图片地址(静态)
headImage:用户头像地址  
video_Url:无水印地址  
music_urls:音乐原声地址 
dynamic_cover:动态封面图  
long_video:长视频 
userId:作者userId
shortId:作者抖音Id
time:时间戳

请注意时间戳,视频不定期失效

必选参数:

url 视频链接

接口地址:

        https://api.isoyu.com/ckplayer/douyin.asp?url= 
        https://api.isoyu.com/ckplayer/douyin.jsp?url=
        https://api.isoyu.com/ckplayer/douyin.php?url=

调用例子:

        https://api.isoyu.com/ckplayer/douyin.asp?url=http://v.douyin.com/rYs9HU
        https://api.isoyu.com/ckplayer/douyin.jsp?url=http://v.douyin.com/rYs9HU
        https://api.isoyu.com/ckplayer/douyin.php?url=http://v.douyin.com/rYs9HU

返回:

{
    "status":true,
    "nickname":"陳奕迅所長",
    "shortId":"85815699",
    "userId":71136311811,
    "awemeId":"6629588912228535555",
    "headImage":"https://p3-dy.byteimg.com/aweme/720x720/c7a50016c177b8d83b6e.jpeg",
    "image":"http://p3-dy.byteimg.com/large/129e100017985e14f90e6.jpeg",
    "dynamic_cover":"https://p3-dy.byteimg.com/obj/129970000efcf6ffee755",
    "video_Url":[
        "http://v3-dy-z.ixigua.com/90e0b2168f0e4a546cc123758e2c5b8a/5cffc2ea/video/m/220f880b47b03d54a789c8caed4897ab5f711610bbb50000474b6680d20e/?rc=anRmbjxrNGxqajMzO2kzM0ApQHRAb0Y0NTs0OTkzNDM3NTQ5PDNAKXUpQGczdSlAZjN2KUBmaHV5cTFmc2hoZGY7NEBgY2hnbl5sYy1fLS1fLS9zczVvI28jPy8uMjQtLi0tLS0vLi0uL2k6Yi5wIzphLXEjOmAwbyNwYmZyaF4ranQ6Iy8uXg%3D%3D",
        "http://v6-dy.ixigua.com/cb8bd094abc2dc146c145f423fd45d0e/5cffc2ea/video/m/220f880b47b03d54a789c8caed4897ab5f711610bbb50000474b6680d20e/",
        "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fb80000bg0gfio1ahq9jkkcfqcg&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0",
        "https://api.amemv.com/aweme/v1/play/?video_id=v0200fb80000bg0gfio1ahq9jkkcfqcg&line=1&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0"
    ],
    "long_video":[

    ],
    "music_urls":[
        "http://p3-dy.byteimg.com/obj/a02a0001f6153c8784e3"
    ],
    "info":{
        "share_desc":"在抖音,记录美好生活",
        "share_title":"#明日之后明日之后 游戏人生,钢琴",
        "bool_persist":0,
        "share_signature_url":"https://tiktokv.com/",
        "share_signature_desc":"TikTok: Make Every Second Count",
        "share_quote":"",
        "share_url":"https://www.iesdouyin.com/share/video/6629588912228535555/?region=CN&mid=6582505245845392141&u_code=k1076kib&titleType=title",
        "share_weibo_desc":"#在抖音,记录美好生活##明日之后明日之后 游戏人生,钢琴",
        "share_title_myself":"",
        "share_title_other":"",
        "share_link_desc":"#在抖音,记录美好生活##明日之后明日之后 游戏人生,钢琴 %s 复制此链接,打开【抖音短视频】,直接观看视频!"
    },
    "time":1560261839
}

10.6 isbn查询

说明:数据来源谷歌&豆瓣

每首次查询新的数据会存储至数据库,此后会变快

必选参数: isbn isbn

接口地址:

        https://api.isoyu.com/books/isbn/

调用例子:

        https://api.isoyu.com/books/isbn/?isbn=9787562404507

返回:

{
    "code":1,
    "kind":"books#volumes",
    "totalItems":1,
    "title":"汽车电器及电子设备",
    "author":[
        {
            "name":"未知"
        }
    ],
    "logo":"https://img1.doubanio.com/view/subject/l/public/s8920467.jpg",
    "publisher":"未知",
    "published":" 2004-8",
    "page":" 336",
    "price":" 26.00元",
    "designed":"未知",
    "description":"《汽车电器及电子设备(第4版)》主要内容包括:蓄电池、交流发电机及调节器、起动机、汽车点火系、照明与信号、汽车仪表及信息显示系统、汽车空调系统、车身电器设备、发动机的电子控制系统、传动系统的电子控制、底盘电子控制技术、汽车电气设备总线路共十二章。《汽车电器及电子设备(第4版)》可作为高等院校汽车运用工程专业的试用教材,也可供高等院校汽车设计专业师生及汽车制造厂、汽车修理厂、汽车运输部门的工程技术人员、工人参考。"
}

10.7 百度逆向link

说明:无

必选参数: bdurl bdurl

接口地址:

        https://api.isoyu.com/baidu/?bdurl=

调用例子:

        https://api.isoyu.com/baidu/?bdurl=https://api.isoyu.com

返回:

{
	"code": 1,
	"message": "success",
	"url": "https://api.isoyu.com",
	"baidurl": "http://www.baidu.com/link?url=a3f48d30fc293c5e471ef23de092fddc99ebd1966804aae435d0c78aea96"
}

10.8 云盘移植

说明:移植https://pan.isoyu.com/uploads,提升限制100M大小.

**请勿上传违反中国大陆和香港法律的文件,违者后果自负!本站有权向公安举报协助净化网络环境.

**因上传前所有文件都会经腾讯云自动审查,违规文件被删后,无法找回,请保护好个人重要隐私文件!

**上传无格式限制,图片类无水印,原图保存.支持代码、图片、文本文件即时预览,音视频播放.游客上传最大支持100M,密匙上传无限制,均支持断点续传!

必选参数:

  `aup`    pre_upload 上传文件 表单数据: {filename:filename} / complete_upload 完成上传返回值 表单数据: {id: predata.id},id为 pre_upload返回的id值
  
  `appCode`  授权码
  
  `auturl`  授权网站

接口地址:

        https://api.isoyu.com/upload/api.jsp
	

调用例子:

        https://api.isoyu.com/upload/api.jsp?aup=pre_upload&appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com
        
        https://api.isoyu.com/upload/api.jsp?aup=complete_upload&appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com

返回:

{"code":0,"data":{"id":"133a4f05-2609-4fd8-a13c-6f75dc1c9449","cdnDomain":"api.isoyu.com","signature":"IqlVa7znINFicteYetzmDz3RtKw=","policy":"eyJleHBpcmF0aW9uIjoiMjAyMS0wOS0xM1QxMDo0MjowNi44OTlaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU7NjAwXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsIlZLQ0VZVUdVLWNjOGNmMDhmLTQ5ZjUtNGZjNS04M2MzLWVkMmE7ODM3MDRkNC82OGJlNGFjNC00Njg1LTQxOWYtOTI0Ny0zZDM2ZWYyNWI4N2EuanBnIl1dfQ==","accessKeyId":"LTAIupaslTlUlspm","ossPath":"VKCEYUGU-cc8cf08f-49f5-4fc5-83c3-ed2a67777d4\/68be4ac4-4685-419f-9247-3d36ef25b87a.jpg","host":"pan.cdn.isoyu.com"}}

{"code":0,"msg":"完成文件上传","auturl":"api.isoyu.com"}

示范代码部分:

$.ajax({
				type : "POST",
				url : "https://api.isoyu.com/upload/api.jsp?aup=pre_upload&appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com",
				data : {filename:filename},
				dataType : 'json',
				success : function(data) {
					if(data.code == 0){
						predata = data.data;
						

$.ajax({
				type : "POST",
				url : "https://api.isoyu.com/upload/api.jsp?aup=complete_upload&appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com",
				data : {id: predata.id},
				dataType : 'json',
				success : function(data) {
					if(data.code == 0){
						

10.9 bilibili直播间抢红包列表

必选参数: "num":获取1-9条, "lot_id":红包抽奖id, "ruid":up主, "room_id":直播间房号, "runame":"昵称", "face":"up头像"

接口地址:

        https://api.isoyu.com/bili/GetRedpocketPlaying/

调用例子:

        https://api.isoyu.com/bili/GetRedpocketPlaying/?appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com&num=9

返回:

{
    "code":"200",
    "msg":"Success",
    "appCode":"B586A14C4EC466D33682F8626CCB3794",
    "data":{
        "list":[
            {
                "lot_id":1051686,
                "ruid":606293627,
                "room_id":22625077,
                "runame":"月兮Channel",
                "face":"http://i2.hdslb.com/bfs/face/4d0d614800d74147add12db1bd2ddc23879a45c4.jpg"
            },
            {
                "lot_id":1058707,
                "ruid":396822361,
                "room_id":21333440,
                "runame":"阿光v2",
                "face":"http://i1.hdslb.com/bfs/face/bbc0df283afe917d8b214d93b760c80927bb4f8b.jpg"
            },
            {
                "lot_id":1065737,
                "ruid":319865031,
                "room_id":10766901,
                "runame":"千寻要吃小饼干",
                "face":"http://i0.hdslb.com/bfs/face/73d2697b94722436c7c1a3641235b33c5e28749c.jpg"
            },
            {
                "lot_id":1065159,
                "ruid":507642729,
                "room_id":22800243,
                "runame":"黎柚Riyu",
                "face":"http://i0.hdslb.com/bfs/face/78b9e404eac26d5be636216fcb4f5382376b949c.jpg"
            },
            {
                "lot_id":1065731,
                "ruid":411509507,
                "room_id":23601423,
                "runame":"晚月不能emo",
                "face":"http://i2.hdslb.com/bfs/face/56c0baeca32f478b36ec0bffa3201bf3625c91d3.jpg"
            },
            {
                "lot_id":1048834,
                "ruid":24237164,
                "room_id":15009406,
                "runame":"轻音体软阿喵喵",
                "face":"http://i2.hdslb.com/bfs/face/ee8ce1869aa83b30b113106396f20a6ae0656e98.jpg"
            },
            {
                "lot_id":1065138,
                "ruid":1785859890,
                "room_id":24304652,
                "runame":"芮绮_",
                "face":"http://i0.hdslb.com/bfs/face/95efcda68e34771ab14d364a643c2409d52b96fa.jpg"
            },
            {
                "lot_id":1050287,
                "ruid":282994,
                "room_id":47377,
                "runame":"泠鸢yousa",
                "face":"http://i1.hdslb.com/bfs/face/28f95c383f2805dbed32e93007c91ccfda28775f.jpg"
            },
            {
                "lot_id":1065926,
                "ruid":2370004,
                "room_id":293260,
                "runame":"亢奋的远山",
                "face":"http://i1.hdslb.com/bfs/face/f59fea1ff8525158093bac505f94c45521269f8c.jpg"
            }
        ]
    },
    "auturl":"api.isoyu.com",
    "time":"1647793982"
}

延伸

/**
     * @use 创建抽奖任务
     * @param array $raffles
     * @return array
     */
    protected static function createLottery(array $raffles): array
    {
        $url = 'https://api.live.bilibili.com/xlive/lottery-interface/v1/popularityRedPocket/RedPocketDraw';
        $tasks = [];
        foreach ($raffles as $raffle) {
            $payload = [
                'ruid' => $raffle['ruid'],
                'room_id' => $raffle['room_id'],
                'lot_id' => $raffle['lot_id'],
                'spm_id' => '444.8.red_envelope.extract',
                'jump_from' => '',
                'session_id' => '',
                'csrf_token' => getCsrf(),
                'csrf' => getCsrf(),
                'visit_id' => ''
            ];
            // {"code":0,"message":"0","ttl":1,"data":{"join_status":1}}
            $tasks[] = [
                'payload' => Sign::common($payload),
                'source' => [
                    'room_id' => $raffle['room_id'],
                    'raffle_id' => $raffle['raffle_id'],
                    'raffle_name' => $raffle['raffle_name']
                ]
            ];
        }
        // print_r($results);
        return Curl::async('app', $url, $tasks);
    }

10.10 域名备案查询实时

查询域名在工信部备案信息,备案主体、审核时间等 通过域名查询备案信息,返回ICP证号、备案名称、备案性质等,数据100%准确。

status /备案状态 ALREADY_BEIAN:已备案;NOT_BEIAN:未备案;WAIT_PROCESS:等待系统处理/

必选参数:

domain 要查询的域名 如:qq.com

接口地址:

        https://api.isoyu.com/beian/

调用例子:

        https://api.isoyu.com/beian/?appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com&domain=qq.com
        
        https://api.isoyu.com/beian/?appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com&domain=qqq.com

返回:

{
    "code":"200",
    "status":"ALREADY_BEIAN",
    "domain":"qq.com",
    "icpno":"粤B2-20090059-5",
    "organizers":"深圳市腾讯计算机系统有限公司",
    "organizers_type":"企业"
}

{
    "code":"200",
    "status":"NOT_BEIAN",
    "domain":"qqq.com",
    "icpno":null,
    "organizers":null,
    "organizers_type":null
}

10.11 13位,毫秒时间戳接口

必选参数:

接口地址:

        https://api.isoyu.com/time/SysTime/

调用例子:

        https://api.isoyu.com/time/SysTime/?appCode=B586A14C4EC466D33682F8626CCB3794&auturl=api.isoyu.com&num=13
        

返回:

{
	"code": "200",
	"msg": "Success",
	"appCode": "B586A14C4EC466D33682F8626CCB3794",
	"currentTime": "2022-05-16 11:54:51",
	"currentTime2": "1652673291281",
	"auturl": "api.isoyu.com",
	"time": "1652673291"
}