前台接口

查询辅种

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

接口描述: 返回所有辅种数据 infohash索引

请求协议
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": {
        "a444850638e7a6f6220e2efdde94099c53358159": {
            "torrent": [
                {
                    "sid": 23,
                    "torrent_id": 282511,
                    "info_hash": "1234567890a22042d89a571ea1d83f67c18624c7"
                },
                {
                    "sid": 5,
                    "torrent_id": 205834,
                    "info_hash": "1234567890bb6b8458fbb03c00f5e405cdbe656a"
                },
                {
                    "sid": 15,
                    "torrent_id": 110865,
                    "info_hash": "12345678909976a768c819c16754a17f72af441e"
                },
                {
                    "sid": 11,
                    "torrent_id": 41447,
                    "info_hash": "1234567890da905f58e3563037da398d84753fe3"
                }
            ]
        },
        "cf7d88fd656d10fe5130d13567aec27068b96676": {
            "torrent": [
                {
                    "sid": 10,
                    "torrent_id": 36,
                    "info_hash": "12345678908bf7927ec61a850959bca8405482f5"
                },
                {
                    "sid": 1,
                    "torrent_id": 7233,
                    "info_hash": "12345678901288a30a54ad793fe615f81afdbb2b"
                },
                {
                    "sid": 8,
                    "torrent_id": 5821,
                    "info_hash": "1234567890716982ecceff4b98c532fc538501ae"
                },
                {
                    "sid": 6,
                    "torrent_id": 689,
                    "info_hash": "12345678901cf9c29f479701f26c6235a15c0668"
                },
                {
                    "sid": 14,
                    "torrent_id": 347591,
                    "info_hash": "123456789016ab933c01fcc6ad3c64ddd4a3e19c"
                },
                {
                    "sid": 3,
                    "torrent_id": 227950,
                    "info_hash": "1234567890a65b71a828141a96098fb00653b03d"
                },
                {
                    "sid": 16,
                    "torrent_id": 7021,
                    "info_hash": "1234567890bd0c2638d7e1b54088f0fed2a25869"
                },
                {
                    "sid": 16,
                    "torrent_id": 4206,
                    "info_hash": "12345678902cd26db8af3579640c6880260bd690"
                },
                {
                    "sid": 25,
                    "torrent_id": 32214,
                    "info_hash": "1234567890a525468bb776d9db3fe8fde2c8e785"
                },
                {
                    "sid": 29,
                    "torrent_id": 19356,
                    "info_hash": "1234567890d06501c4424365308091ed3ff9493c"
                },
                {
                    "sid": 40,
                    "torrent_id": 5907,
                    "info_hash": "1234567890649313a465ca1466d403c87d0b36f6"
                },
                {
                    "sid": 15,
                    "torrent_id": 111560,
                    "info_hash": "12345678908e297df95b4469507baee5424d8420"
                }
            ]
        }
    },
    "msg": ""
}

错误列表

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

本文档生成时间:2024-04-26 06:15:02