- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
获取指定种子的封禁历史列表
开发中
GET
/api/torrent/{infoHash}/banHistory
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
infoHash
string
必需
示例值:
050C21327D344133B69D596733245A8FADE88192
示例代码
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:9897/api/torrent/050C21327D344133B69D596733245A8FADE88192/banHistory'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object
必需
page
integer
必需
size
integer
必需
total
integer
必需
results
array[object (BanLog) {15}]
必需
示例
{"success":true,"message":null,"data":{"page":1,"size":10,"total":1,"results":[{"banAt":1726817809872,"unbanAt":1727077009872,"peerIp":"112.237.212.143","peerPort":30431,"peerId":"-XL0019-","peerClientName":"XunLei 0019","peerUploaded":65568,"peerDownloaded":0,"peerProgress":0.011,"torrentInfoHash":"c0dbf0b64fd2f16c9fbca08e123edf75eff5582e","torrentName":"zh-cn_windows_11_consumer_editions_version_23h2_updated_sep_2024_x64_dvd_edcefbe4.iso","torrentSize":7183915008,"module":"com.ghostchu.peerbanhelper.module.impl.rule.ClientNameBlacklist","rule":"StringContainsMatcher(super=AbstractJsonMatcher(condition=null), rule=xunlei, hit=TRUE, miss=DEFAULT)","description":"匹配 ClientName (UserAgent): StringContainsMatcher(super=AbstractJsonMatcher(condition=null), rule=xunlei, hit=TRUE, miss=DEFAULT)","downloader":"bbt"}]}}
🟠403未登录或Token错误
🟠429IP地址因频繁失败尝试而被封禁
🔴500内部服务器错误
🟠400通用参数错误
🔵303需要OOBE初始化
修改于 2024-09-23 05:12:35