NexusPHP
  1. 种子
NexusPHP
  • 说明
  • 用户
    • 用户详情
      GET
  • 种子
    • 种子列表
      GET
    • 种子详情
      GET
    • 发布种子
      POST
  • 发布
    • 分区列表
      GET
  1. 种子

种子列表

开发中
GET
/api/v1/torrents
/torrents 是查看普通分区种子,要查看特别分区,后面跟其分类模式的名字(分区列表接口中的 name 字段),如 /torrents/special

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数
per_page
string 
每页数量
可选
示例值:
5
page
string 
页码
可选
示例值:
1
sorts
string 
可选
排序,多个用英文逗号分割。默认表示由小到大,前面添加 - 表示由大到小,如 size 表示按体积由小到大,-size 按体积由大到小。可用值如下:id(发布先后),comments(评论数), size(体积), seeders(做种数), leechers(下载数), times_completed(完成数)
示例值:
id
filter[source]
string 
可选
根据 source 过滤
示例值:
1
filter[size][gt]
string 
可选
根据体积 > 1024 过滤
示例值:
1024
filter[title]
string 
可选
关键字过滤,会搜索标题和副标题
示例值:
2014
filter_any[source][gt]
string 
可选
过滤source = 1或code = 2的数据
示例值:
1
filter_any[codec][gt]
string 
可选
过滤source = 1或code = 2的数据
示例值:
2
includes
string 
可选
包含关联,同详情接口
示例值:
user,extra
include_fields[torrent]
string 
可选
包含字段,同详情接口
示例值:
has_claimed,has_thanked,has_rewarded,has_bookmarked
include_counts
string 
可选
包含统计,同详情接口
示例值:
claims
Header 参数
Accept
string 
必需
默认值:
application/json
Content-Type
string 
必需
默认值:
application/json
Body 参数multipart/form-data
object {0}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://dev.nexusphp.org/api/v1/torrents?per_page=5&page=1&sorts=id&includes=user,extra&include_fields[torrent]=has_claimed,has_thanked,has_rewarded,has_bookmarked&include_counts=claims' \
--header 'Accept;'

返回响应

🟢200成功
application/json
Body
ret
integer 
必需
结果码,0 成功,其他均失败
msg
string 
文本说明
必需
data
object 
数据包裹层
必需
data
array[object (种子信息) {46}] 
种子列表
必需
links
object (分页链接信息) 
链接信息
必需
meta
object (分页其他信息) 
其他信息
必需
rid
string 
请求 ID
必需
time
number 
响应耗时,单位:秒
必需
示例
{
    "ret": 0,
    "msg": "string",
    "data": {
        "data": [
            {
                "id": 0,
                "name": "string",
                "filename": "string",
                "hash": "string",
                "cover": "string",
                "small_descr": "string",
                "category": 0,
                "category_info": {
                    "id": 0,
                    "name": "string"
                },
                "size": 0,
                "size_human": "string",
                "added": "string",
                "added_human": "string",
                "numfiles": 0,
                "leechers": 0,
                "seeders": 0,
                "times_completed": 0,
                "views": 0,
                "hits": 0,
                "comments": 0,
                "pos_state": "string",
                "pos_state_until": "string",
                "pos_state_until_human": "string",
                "sp_state": 0,
                "sp_state_real": 0,
                "promotion_info": {
                    "text": "string",
                    "up_multiplier": 0,
                    "down_multiplier": 0,
                    "color": "string"
                },
                "hr": 0,
                "pick_type": "string",
                "pick_time": "string",
                "pick_info": {
                    "text": "string",
                    "color": "string"
                },
                "anonymous": "string",
                "last_action": "string",
                "last_action_human": "string",
                "user": {
                    "id": 0,
                    "username": "string",
                    "email": "string",
                    "status": "pending",
                    "enabled": "yes",
                    "added": "string",
                    "added_human": "string",
                    "last_access": "string",
                    "last_access_human": "string",
                    "last_login": "string",
                    "last_login_human": "string",
                    "class": 0,
                    "class_text": "string",
                    "avatar": "string",
                    "invites": 0,
                    "attendance_card": 0,
                    "uploaded": 0,
                    "uploaded_text": "string",
                    "downloaded": 0,
                    "downloaded_text": "string",
                    "bonus": 0,
                    "bonus_human": "string",
                    "seed_points": 0,
                    "seed_points_human": "string",
                    "seedtime": 0,
                    "seedtime_text": "string",
                    "leechtime": 0,
                    "leechtime_text": "string",
                    "share_ratio": "string"
                },
                "extra": {
                    "descr": "string",
                    "media_info": "string",
                    "media_info_summary": {
                        "videos": {
                            "Runtime": "string",
                            "Resolution": "string",
                            "Bitrate": "string",
                            "Bit depth": "string",
                            "Frame rate": "string",
                            "Profile": "string"
                        },
                        "audios": {},
                        "subtitles": {}
                    },
                    "nfo": "string"
                },
                "tags": [
                    {
                        "id": 0,
                        "name": "string",
                        "color": "string",
                        "font_color": "string",
                        "font_size": "string",
                        "padding": "string",
                        "margin": "string",
                        "border_radius": "string",
                        "priority": 0,
                        "created_at": "string",
                        "updated_at": "string"
                    }
                ],
                "thank_users_count": 0,
                "reward_logs_count": 0,
                "claims_count": 0,
                "sub_categories": {
                    "medium": {
                        "label": "string",
                        "value": "string"
                    },
                    "codec": {
                        "label": "string",
                        "value": "string"
                    },
                    "standard": {
                        "label": "string",
                        "value": "string"
                    },
                    "team": {
                        "label": "string",
                        "value": "string"
                    },
                    "source": {
                        "label": "string",
                        "value": "string"
                    },
                    "audiocodec": {
                        "label": "string",
                        "value": "string"
                    },
                    "processing": {
                        "label": "string",
                        "value": "string"
                    }
                },
                "description": [
                    {
                        "type": "text",
                        "data": {
                            "text": "string",
                            "url": "string"
                        }
                    }
                ],
                "images": [
                    "string"
                ],
                "download_url": "string",
                "has_bookmarked": true,
                "has_claimed": true,
                "has_thanked": true,
                "has_rewarded": true
            }
        ],
        "links": {
            "first": "string",
            "last": "string",
            "prev": "string",
            "next": "string"
        },
        "meta": {
            "current_page": 0,
            "last_page": 0,
            "from": 0,
            "to": 0,
            "links": [
                {
                    "url": "string",
                    "label": "string",
                    "active": true
                }
            ],
            "path": "string",
            "per_page": 0,
            "total": 0
        }
    },
    "rid": "string",
    "time": 0
}
修改于 2025-04-16 14:00:27
上一页
用户详情
下一页
种子详情
Built with