NexusPHP
  1. 种子
NexusPHP
  • 说明
  • 用户
    • 用户详情
      GET
  • 种子
    • 种子列表
      GET
    • 种子详情
      GET
    • 发布种子
      POST
  • 发布
    • 分区列表
      GET
  • 收藏
    • 新增
      POST
    • 删除
      POST
  1. 种子

种子列表

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

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数

Header 参数

Body 参数multipart/form-data

请求示例代码

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&filter[bookmark]=1&filter[visible]=1&includes=user,extra&include_fields[torrent]=has_claimed,has_thanked,has_rewarded,has_bookmarked,active_status&include_counts=claims' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Body

示例
{
    "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,
                "active_status": {
                    "finished": "yes",
                    "progress": 0,
                    "active_status": "inactivity"
                }
            }
        ],
        "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-10-29 09:52:12
上一页
用户详情
下一页
种子详情
Built with