- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
查询指定 IP 的访问历史列表
开发中
GET
/api/peer/{ip}/accessHistory
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
ip
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/peer//accessHistory'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object
必需
page
integer
必需
size
integer
必需
total
integer
必需
results
array[object (主动监测记录) {13}]
必需
示例
{
"success": true,
"message": null,
"data": {
"page": 1,
"size": 10,
"total": 4,
"results": [
{
"id": 707,
"address": "133.106.62.7",
"torrent": {
"id": 31,
"infoHash": null,
"name": null,
"size": null
},
"downloader": "myqb",
"peerId": "-BT7b0W-",
"clientName": "BitTorrent 7.11",
"uploaded": 0,
"uploadedOffset": 0,
"downloaded": 1701108,
"downloadedOffset": 231917,
"lastFlags": "D ? I H",
"firstTimeSeen": 1722010351524,
"lastTimeSeen": 1722011099635
},
{
"id": 92,
"address": "133.106.62.7",
"torrent": {
"id": 2,
"infoHash": null,
"name": null,
"size": null
},
"downloader": "myqb",
"peerId": "-BT7b0W-",
"clientName": "BitTorrent 7.11",
"uploaded": 0,
"uploadedOffset": 0,
"downloaded": 17102663,
"downloadedOffset": 583770,
"lastFlags": "D ? I H",
"firstTimeSeen": 1722009032016,
"lastTimeSeen": 1722011099575
},
{
"id": 1871,
"address": "133.106.62.7",
"torrent": {
"id": 5,
"infoHash": null,
"name": null,
"size": null
},
"downloader": "myqb",
"peerId": "-BT7b0W-",
"clientName": "BitTorrent 7.11",
"uploaded": 0,
"uploadedOffset": 0,
"downloaded": 502,
"downloadedOffset": 502,
"lastFlags": "D ? I H P",
"firstTimeSeen": 1722010907697,
"lastTimeSeen": 1722011099562
},
{
"id": 409,
"address": "133.106.62.7",
"torrent": {
"id": 1,
"infoHash": null,
"name": null,
"size": null
},
"downloader": "myqb",
"peerId": "-BT7b0W-",
"clientName": "BitTorrent 7.11",
"uploaded": 0,
"uploadedOffset": 0,
"downloaded": 0,
"downloadedOffset": 0,
"lastFlags": "K ? I H",
"firstTimeSeen": 1722010331424,
"lastTimeSeen": 1722010331424
}
]
}
}
🟠403未登录或Token错误
🟠429IP地址因频繁失败尝试而被封禁
🔴500内部服务器错误
🟠400通用参数错误
🔵303需要OOBE初始化
修改于 2024-08-23 19:34:00