前台接口

查询辅种

接口地址:http://api.iyuu.cn/index.php?s=App.Api.Hash

接口描述: 返回所有辅种数据 标准json

请求协议
HTTP/HTTPS
请求方式
GET/POST
编码格式
UTF-8
返回格式
JSON

接口参数

参数名字类型是否必须默认值其他说明
sign字符串必须最小:46;最大:60;数据源:POST爱语飞飞Token
timestamp整型必须最小:1625068800;数据源:POST客户端时间戳
version字符串必须数据源:POST客户端版本号
hash字符串JSON格式必须数据源:POST种子info_hash 例:["cf7d88fd656d10fe5130d13567aec27068b96676"]
sha1字符串必须最小:40;数据源:POST字典排序sha1(hash)小写

返回结果

返回字段类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误,详情参见错误列表
data对象/混合类型业务数据,由各自接口指定,通常为对象
data.info_hash字符串可辅种json数据(按info_hash分组)
msg字符串提示信息,失败时的错误提示

在线测试   

参数是否必填
service 必须
sign 必须
timestamp 必须
version 必须
hash 必须
sha1 必须

接口返回示例

{
    "ret": 200,
    "data": [
        {
            "hash": "cf7d88fd656d10fe5130d13567aec27068b96676",
            "torrent": [
                {
                    "sid": 10,
                    "torrent_id": 36,
                    "info_hash": "8bf47a8baa8bf7927ec61a850959bca8405482f5"
                },
                {
                    "sid": 1,
                    "torrent_id": 7233,
                    "info_hash": "07bb8defd21288a30a54ad793fe615f81afdbb2b"
                },
                {
                    "sid": 8,
                    "torrent_id": 5821,
                    "info_hash": "a69b89a8df716982ecceff4b98c532fc538501ae"
                },
                {
                    "sid": 6,
                    "torrent_id": 689,
                    "info_hash": "fb6cfb29c71cf9c29f479701f26c6235a15c0668"
                },
                {
                    "sid": 14,
                    "torrent_id": 347591,
                    "info_hash": "e060bbf60416ab933c01fcc6ad3c64ddd4a3e19c"
                },
                {
                    "sid": 3,
                    "torrent_id": 227950,
                    "info_hash": "3e757ae16ba65b71a828141a96098fb00653b03d"
                },
                {
                    "sid": 16,
                    "torrent_id": 7021,
                    "info_hash": "3ec363fb86bd0c2638d7e1b54088f0fed2a25869"
                },
                {
                    "sid": 16,
                    "torrent_id": 4206,
                    "info_hash": "a7f157c0cc2cd26db8af3579640c6880260bd690"
                },
                {
                    "sid": 25,
                    "torrent_id": 32214,
                    "info_hash": "60adf487e5a525468bb776d9db3fe8fde2c8e785"
                },
                {
                    "sid": 29,
                    "torrent_id": 19356,
                    "info_hash": "18e5ae6a55d06501c4424365308091ed3ff9493c"
                },
                {
                    "sid": 40,
                    "torrent_id": 5907,
                    "info_hash": "840016b7eb649313a465ca1466d403c87d0b36f6"
                },
                {
                    "sid": 15,
                    "torrent_id": 111560,
                    "info_hash": "76426eaf4f8e297df95b4469507baee5424d8420"
                },
                {
                    "sid": 5,
                    "torrent_id": 208468,
                    "info_hash": "ce31f2b15cc38e5312d9eb114c724ad8172fba26"
                }
            ]
        }
    ],
    "msg": "",
    "version": "0.3.1"
}

错误列表

错误状态码错误描述信息
400表示客户端参数错误
404表示接口服务不存在
500表示服务端内部错误

本文档生成时间:2024-04-24 06:24:29