- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
获取PBH种子列表
开发中
GET
/api/torrent/query
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
page
integer
可选
示例值:
1
pageSize
integer
可选
示例值:
10
keyword
string
搜索关键词,可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9898/api/torrent/query?page=1&pageSize=10&keyword'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object
必需
page
integer
必需
size
integer
必需
total
integer
必需
results
array [object {6}]
必需
示例
{
"success": true,
"message": null,
"data": {
"page": 1,
"size": 10,
"total": 70,
"results": [
{
"id": 1,
"infoHash": "79eb2c0af253b0c2da4e3de26758d3610ceaa383",
"name": "My.Hero.Academia.S07E08.Two.Flashfires.1080p.CR.WEB-DL.AAC2.0.H.264.DUAL-VARYG.mkv",
"size": 1479787441
},
{
"id": 2,
"infoHash": "41bcd8cdcb900b619f796f9b634378f0deaaaaca",
"name": "[Judas] Bokutsuma - S01E02.mkv",
"size": 238470734
},
{
"id": 3,
"infoHash": "875fb061b8dd970116bb4a9ba46c0e4ef0b04e0e",
"name": "My.Hero.Academia.S07E08.720p.CR.WEB-DL.DUAL.AAC2.0.H.264-NanDesuKa.mkv",
"size": 785869430
},
{
"id": 4,
"infoHash": "c859d25526acf195f7eed761505bc710601999e5",
"name": "[Erai-raws] Tensui no Sakuna-hime - 01 [1080p][HEVC][Multiple Subtitle][CFF8113C].mkv",
"size": 322396354
},
{
"id": 5,
"infoHash": "ee9667dafedbcef116fe38d28f8cdc5d1b951864",
"name": "[ASW] Tensui no Sakuna-hime - 01 [1080p HEVC][074F9B44].mkv",
"size": 295377860
},
{
"id": 6,
"infoHash": "e1894df3bcd1c993051a33dc63f68f2373c12877",
"name": "[Judas] Kami wa Game ni Uete Iru (Gods' Games We Play) (Season 01) [1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]",
"size": 5186705812
},
{
"id": 7,
"infoHash": "4c62172783f46a08d92a1b4c11f61b7276d05d69",
"name": "[SubsPlease] Madougushi Dahliya wa Utsumukanai - 01 (720p) [C41C37B6].mkv",
"size": 736809066
},
{
"id": 8,
"infoHash": "5a8196ff560d8847bf3e536b21912f9933f3d7cd",
"name": "Chivalry of a Failed Knight - Volume 02.epub",
"size": 19454962
},
{
"id": 9,
"infoHash": "d03485b96ca82c0ba09cb35c3b2fba87a8bffa96",
"name": "Erased [BD] [AV1] [ItachiUchiha]",
"size": 4341046626
},
{
"id": 10,
"infoHash": "cafb156d5cc766212fec4630834120f3af0e2e93",
"name": "[SubsPlease] Madougushi Dahliya wa Utsumukanai - 01 (480p) [253F7B6F].mkv",
"size": 384029487
}
]
}
}
🟠403未登录或Token错误
🟠429IP地址因频繁失败尝试而被封禁
🔴500内部服务器错误
🟠400通用参数错误
🔵303需要OOBE初始化
修改于 2024-09-23 12:08:15