PeerBanHelper WebAPI
  1. 图表
PeerBanHelper WebAPI
  • API
    • 鉴权
      • 登录
      • 注销登录态
    • 元数据
      • 请求基本清单数据
      • 初始化
    • 基本统计
      • 统计计数器
      • 规则计数器
    • 封禁
      • 获取封禁列表
      • 获取封禁历史记录信息
      • 获取封禁排名
      • 解除封禁
      • (测试接口)手动添加封禁项
    • 下载器
      • 扫描本机设备上的下载器 WebUI
      • 获取下载器列表
      • 获取下载器元数据
      • 获取下载器种子列表
      • 获取下载器指定种子的Peers列表
      • 创建下载器
      • 编辑下载器
      • 测试下载器配置
      • 删除下载器
    • 推送渠道
      • 获取推送渠道列表
      • 获取推送渠道元数据
      • 创建推送渠道
      • 编辑推送渠道
      • 测试通知渠道
      • 删除推送渠道
    • 通用
      • 通用状态查询
      • 创建堆转储文件
      • 检查指定模块是否启用
      • 更改全局设置
      • 获取全局设置
      • 手动触发 JVM 崩溃模拟测试
      • 请求 NAT 类型刷新
      • 配置文件重载
    • 功能模块
      • AutoRangeBan
        • 获取模块内存基本元数据
      • BtnNetworkOnline
        • 获取 BTN 模块状态
      • ClientNameBlackList
        • 获取模块内存基本元数据
      • IPBlackList
        • 获取模块内存基本元数据
        • 测试IP黑名单规则
        • 添加IP黑名单规则
        • 删除IP黑名单规则
        • 添加端口黑名单规则
        • 删除端口黑名单规则
        • 添加ASN黑名单
        • 设置网络类型规则
        • 删除ASN黑名单规则
        • 添加国家/地区代码黑名单规则
        • 添加城市黑名单规则
        • 删除国家/地区代码黑名单规则
        • 删除城市黑名单规则
      • MultiDialingBlocker
        • 获取模块内存基本元数据
      • PeerIdBlacklist
        • 获取模块内存基本元数据
      • ProgressCheatBlocker
        • 获取模块内存基本元数据
        • 获取状态
      • 订阅规则
        • 查询更新间隔
        • 修改更新间隔
        • 新增订阅规则
        • 查询订阅规则
        • 更新订阅规则
        • 保存订阅规则
        • 删除订阅规则
        • 启用禁用规则
        • 订阅规则列表
        • 更新全部订阅规则
        • 查询全部订阅规则更新日志
        • 查询指定订阅规则更新日志
      • Friend
        • 未命名接口
      • Expression Engine
        • 列出所有脚本
        • 获取指定脚本内容
        • 创建/保存脚本
        • 删除指定脚本
        • 是否可编辑给定脚本
      • Laboratory
        • 列出所有实验状态
        • 检查指定实验是否已启用
        • 设置指定实验的开关状态
        • 获取实验室模块配置状态
        • 设置实验室模块配置状态
      • PTRBlacklist
      • SwarmTracking
        • 获取跟踪的 Peers 分页数据
        • 获取跟踪的 Peers 数量
    • 警报
      • 获取警报列表
      • 标记警报为已读
      • 标记警报为全部已读
      • 删除指定警报
    • 程序日志
      • 连接到日志 WebSocket
      • 获取程序日志
    • 统计图表(基础)
      • 封禁趋势统计(迁移自/api/statistic/analysis/date)
      • 统计通用数值查询
      • 统计通用日期归类查询
    • PBH Plus
      • 创建或更新免费 Basic 许可证
      • 获取当前许可证系统状态
      • 安装许可证
      • 卸载许可证
      • 获取免费 Basic 许可证的无交互验证码
    • Torrent
      • 获取PBH种子列表
      • 获取指定种子基本信息
      • 获取指定种子的访问历史列表
      • 获取指定种子的封禁历史列表
    • 图表
      • 区间唯一 IP 会话数量
        GET
      • 区间唯一 IP 会话图表(按日时间分桶)
        GET
      • 会话分析图表
        GET
      • 客户端分析图表
        GET
      • GeoIP
        GET
      • 趋势
        GET
      • 流量
        GET
    • Peer
      • 查询指定 IP 的基本信息
      • 查询指定 IP 的访问历史列表
      • 查询指定 IP 的封禁记录
      • 请求 BTN 接口查询 IP 信息(结构数据返回)
      • 请求 BTN 查询 IP 信息(iframe 地址返回)
    • 工具
      • 批量更换 Tracker
    • 后台任务(未完成)
      • 列出后台任务的有序列表
      • 获取指定任务元数据
      • 获取指定任务日志数据
      • 取消指定任务
    • 自动 STUN
      • 隧道列表
      • 获取指定隧道信息
      • 获取指定隧道连接表
      • 获取状态
      • 请求 NAT 类型刷新
      • 保存 AutoSTUN 配置
      • 强制重新启动 AutoSTUN 服务
    • 异步任务
      • 获取当前的异步任务列表
    • OOBE
      • 提交初始化 OOBE 数据
      • 扫描本机设备上的下载器 WebUI
      • 测试下载器
  • 下载器兼容层
    • IP BanList 提供端点
      GET
    • P2P Guard Plain BanList 提供端点
      GET
    • DAT/Emule BanList 提供端点
      GET
  • test
  • 数据模型
    • [WS] PBH 日志
      • [WS] 客户端通用请求
      • [WS] 客户端登录请求
      • [WS] 客户端历史日志拉取请求
    • Torrent 信息
    • Peer 信息
    • Peer 的 IP 的 ASN 信息
    • GeoData
    • 封禁条目元数据
    • SubRule 信息
    • DraftDownloader
    • BanLogDTO
    • 控制台日志记录
    • TorrentInfoDTO
    • PeerRecordEntity
    • AlertDTO
    • DraftPushProvider
    • PopulatedPeerDTO
    • 通用数值查询结果模型
    • 通用日期查询结果模型
    • PeerFlags
    • 流量日志
    • UserIPRuleAddRequest
    • UserIPTestResult
    • 程序日志条目
    • DownloaderBasicInfo
    • BanLogDTO
    • PeerAddressWrapper
    • IPGeoData
    • BakedBanMetadata
    • BanDTO
    • DownloaderWrapperDTO
    • TorrentWrapper
    • PopulatedPeerDTO
    • DraftDownloader
    • BackgroundTaskDTO
    • TunnelInfo
    • NATType
    • BackgroundTaskStdResp
    • V1License
    • V2License
    • PowCaptchaData
    • NetworkTypeDTO
    • NicTrafficComputedData
    • BTN IP 查询结果
  1. 图表

区间唯一 IP 会话图表(按日时间分桶)

将废弃
GET
/api/chart/sessionDayBucket
注意:该接口在性能较差的设备上可能需要一定时间才能返回结果。

请求参数

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

请求示例代码

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/chart/sessionDayBucket?downloader&startAt&endAt' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Body

示例
{
    "success": true,
    "asyncTask": null,
    "message": null,
    "data": [
        {
            "key": 1746633600000,
            "total": 5,
            "incoming": 4
        },
        {
            "key": 1746720000000,
            "total": 8,
            "incoming": 5
        },
        {
            "key": 1746806400000,
            "total": 9,
            "incoming": 6
        },
        {
            "key": 1746892800000,
            "total": 9,
            "incoming": 6
        },
        {
            "key": 1746979200000,
            "total": 10,
            "incoming": 6
        },
        {
            "key": 1747065600000,
            "total": 13,
            "incoming": 9
        },
        {
            "key": 1747152000000,
            "total": 14,
            "incoming": 10
        },
        {
            "key": 1747238400000,
            "total": 14,
            "incoming": 10
        },
        {
            "key": 1747324800000,
            "total": 14,
            "incoming": 10
        },
        {
            "key": 1747411200000,
            "total": 15,
            "incoming": 10
        },
        {
            "key": 1747497600000,
            "total": 15,
            "incoming": 10
        },
        {
            "key": 1747584000000,
            "total": 16,
            "incoming": 11
        },
        {
            "key": 1747670400000,
            "total": 17,
            "incoming": 12
        },
        {
            "key": 1747756800000,
            "total": 18,
            "incoming": 12
        },
        {
            "key": 1747843200000,
            "total": 18,
            "incoming": 12
        },
        {
            "key": 1747929600000,
            "total": 18,
            "incoming": 12
        },
        {
            "key": 1748016000000,
            "total": 19,
            "incoming": 12
        },
        {
            "key": 1748102400000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748188800000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748275200000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748361600000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748448000000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748534400000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748620800000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748707200000,
            "total": 21,
            "incoming": 14
        },
        {
            "key": 1748793600000,
            "total": 23,
            "incoming": 15
        },
        {
            "key": 1748880000000,
            "total": 23,
            "incoming": 15
        },
        {
            "key": 1748966400000,
            "total": 23,
            "incoming": 15
        },
        {
            "key": 1749052800000,
            "total": 23,
            "incoming": 15
        },
        {
            "key": 1749139200000,
            "total": 26,
            "incoming": 18
        },
        {
            "key": 1749225600000,
            "total": 26,
            "incoming": 18
        },
        {
            "key": 1749312000000,
            "total": 26,
            "incoming": 18
        },
        {
            "key": 1749398400000,
            "total": 26,
            "incoming": 18
        },
        {
            "key": 1749484800000,
            "total": 30,
            "incoming": 22
        },
        {
            "key": 1749571200000,
            "total": 30,
            "incoming": 22
        },
        {
            "key": 1749657600000,
            "total": 30,
            "incoming": 22
        },
        {
            "key": 1749744000000,
            "total": 31,
            "incoming": 23
        },
        {
            "key": 1749830400000,
            "total": 32,
            "incoming": 23
        },
        {
            "key": 1749916800000,
            "total": 32,
            "incoming": 23
        },
        {
            "key": 1750003200000,
            "total": 32,
            "incoming": 23
        },
        {
            "key": 1750089600000,
            "total": 32,
            "incoming": 23
        },
        {
            "key": 1750176000000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750262400000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750348800000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750435200000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750521600000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750608000000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750694400000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750780800000,
            "total": 33,
            "incoming": 24
        },
        {
            "key": 1750867200000,
            "total": 34,
            "incoming": 24
        },
        {
            "key": 1750953600000,
            "total": 36,
            "incoming": 25
        },
        {
            "key": 1751040000000,
            "total": 36,
            "incoming": 25
        },
        {
            "key": 1751126400000,
            "total": 39,
            "incoming": 25
        },
        {
            "key": 1751212800000,
            "total": 39,
            "incoming": 25
        },
        {
            "key": 1751299200000,
            "total": 40,
            "incoming": 25
        },
        {
            "key": 1751385600000,
            "total": 41,
            "incoming": 26
        },
        {
            "key": 1751472000000,
            "total": 44,
            "incoming": 27
        },
        {
            "key": 1751558400000,
            "total": 50,
            "incoming": 29
        },
        {
            "key": 1751644800000,
            "total": 54,
            "incoming": 31
        },
        {
            "key": 1751731200000,
            "total": 56,
            "incoming": 32
        },
        {
            "key": 1751817600000,
            "total": 60,
            "incoming": 33
        },
        {
            "key": 1751904000000,
            "total": 64,
            "incoming": 34
        },
        {
            "key": 1751990400000,
            "total": 66,
            "incoming": 35
        },
        {
            "key": 1752076800000,
            "total": 69,
            "incoming": 35
        },
        {
            "key": 1752163200000,
            "total": 73,
            "incoming": 37
        },
        {
            "key": 1752249600000,
            "total": 79,
            "incoming": 41
        },
        {
            "key": 1752336000000,
            "total": 81,
            "incoming": 43
        },
        {
            "key": 1752422400000,
            "total": 85,
            "incoming": 44
        },
        {
            "key": 1752508800000,
            "total": 91,
            "incoming": 46
        },
        {
            "key": 1752595200000,
            "total": 95,
            "incoming": 47
        },
        {
            "key": 1752681600000,
            "total": 97,
            "incoming": 48
        },
        {
            "key": 1752768000000,
            "total": 102,
            "incoming": 50
        },
        {
            "key": 1752854400000,
            "total": 106,
            "incoming": 53
        },
        {
            "key": 1752940800000,
            "total": 108,
            "incoming": 54
        },
        {
            "key": 1753027200000,
            "total": 113,
            "incoming": 56
        },
        {
            "key": 1753113600000,
            "total": 115,
            "incoming": 57
        },
        {
            "key": 1753200000000,
            "total": 118,
            "incoming": 58
        },
        {
            "key": 1753286400000,
            "total": 120,
            "incoming": 60
        },
        {
            "key": 1753372800000,
            "total": 126,
            "incoming": 65
        },
        {
            "key": 1753459200000,
            "total": 132,
            "incoming": 67
        },
        {
            "key": 1753545600000,
            "total": 133,
            "incoming": 68
        },
        {
            "key": 1753632000000,
            "total": 137,
            "incoming": 70
        },
        {
            "key": 1753718400000,
            "total": 143,
            "incoming": 73
        },
        {
            "key": 1753804800000,
            "total": 144,
            "incoming": 74
        },
        {
            "key": 1753891200000,
            "total": 148,
            "incoming": 76
        },
        {
            "key": 1753977600000,
            "total": 157,
            "incoming": 80
        },
        {
            "key": 1754064000000,
            "total": 158,
            "incoming": 81
        },
        {
            "key": 1754150400000,
            "total": 161,
            "incoming": 82
        },
        {
            "key": 1754236800000,
            "total": 164,
            "incoming": 84
        },
        {
            "key": 1754323200000,
            "total": 168,
            "incoming": 87
        },
        {
            "key": 1754409600000,
            "total": 175,
            "incoming": 92
        },
        {
            "key": 1754496000000,
            "total": 204,
            "incoming": 96
        },
        {
            "key": 1754582400000,
            "total": 205,
            "incoming": 96
        },
        {
            "key": 1754668800000,
            "total": 211,
            "incoming": 97
        },
        {
            "key": 1754755200000,
            "total": 220,
            "incoming": 102
        },
        {
            "key": 1754841600000,
            "total": 227,
            "incoming": 104
        },
        {
            "key": 1754928000000,
            "total": 233,
            "incoming": 109
        },
        {
            "key": 1755014400000,
            "total": 236,
            "incoming": 110
        },
        {
            "key": 1755100800000,
            "total": 245,
            "incoming": 116
        },
        {
            "key": 1755187200000,
            "total": 250,
            "incoming": 117
        },
        {
            "key": 1755273600000,
            "total": 256,
            "incoming": 119
        },
        {
            "key": 1755360000000,
            "total": 261,
            "incoming": 122
        },
        {
            "key": 1755446400000,
            "total": 264,
            "incoming": 124
        },
        {
            "key": 1755532800000,
            "total": 269,
            "incoming": 128
        },
        {
            "key": 1755619200000,
            "total": 275,
            "incoming": 133
        },
        {
            "key": 1755705600000,
            "total": 282,
            "incoming": 136
        },
        {
            "key": 1755792000000,
            "total": 285,
            "incoming": 137
        },
        {
            "key": 1755878400000,
            "total": 296,
            "incoming": 144
        },
        {
            "key": 1755964800000,
            "total": 301,
            "incoming": 146
        },
        {
            "key": 1756051200000,
            "total": 304,
            "incoming": 149
        },
        {
            "key": 1756137600000,
            "total": 308,
            "incoming": 152
        },
        {
            "key": 1756224000000,
            "total": 314,
            "incoming": 158
        },
        {
            "key": 1756310400000,
            "total": 316,
            "incoming": 160
        },
        {
            "key": 1756396800000,
            "total": 318,
            "incoming": 162
        },
        {
            "key": 1756483200000,
            "total": 322,
            "incoming": 166
        },
        {
            "key": 1756569600000,
            "total": 323,
            "incoming": 167
        },
        {
            "key": 1756656000000,
            "total": 338,
            "incoming": 180
        },
        {
            "key": 1756742400000,
            "total": 339,
            "incoming": 181
        },
        {
            "key": 1756828800000,
            "total": 344,
            "incoming": 185
        },
        {
            "key": 1756915200000,
            "total": 353,
            "incoming": 191
        },
        {
            "key": 1757001600000,
            "total": 365,
            "incoming": 198
        },
        {
            "key": 1757088000000,
            "total": 374,
            "incoming": 205
        },
        {
            "key": 1757174400000,
            "total": 387,
            "incoming": 214
        },
        {
            "key": 1757260800000,
            "total": 392,
            "incoming": 218
        },
        {
            "key": 1757347200000,
            "total": 403,
            "incoming": 228
        },
        {
            "key": 1757433600000,
            "total": 413,
            "incoming": 235
        },
        {
            "key": 1757520000000,
            "total": 420,
            "incoming": 239
        },
        {
            "key": 1757606400000,
            "total": 421,
            "incoming": 240
        },
        {
            "key": 1757692800000,
            "total": 429,
            "incoming": 248
        },
        {
            "key": 1757779200000,
            "total": 431,
            "incoming": 250
        },
        {
            "key": 1757865600000,
            "total": 473,
            "incoming": 273
        },
        {
            "key": 1757952000000,
            "total": 487,
            "incoming": 279
        },
        {
            "key": 1758038400000,
            "total": 492,
            "incoming": 284
        },
        {
            "key": 1758124800000,
            "total": 500,
            "incoming": 291
        },
        {
            "key": 1758211200000,
            "total": 528,
            "incoming": 302
        },
        {
            "key": 1758297600000,
            "total": 536,
            "incoming": 307
        },
        {
            "key": 1758384000000,
            "total": 540,
            "incoming": 310
        },
        {
            "key": 1758470400000,
            "total": 556,
            "incoming": 317
        },
        {
            "key": 1758556800000,
            "total": 561,
            "incoming": 321
        },
        {
            "key": 1758643200000,
            "total": 567,
            "incoming": 326
        },
        {
            "key": 1758729600000,
            "total": 577,
            "incoming": 333
        },
        {
            "key": 1758816000000,
            "total": 605,
            "incoming": 350
        },
        {
            "key": 1758902400000,
            "total": 619,
            "incoming": 362
        },
        {
            "key": 1758988800000,
            "total": 641,
            "incoming": 378
        },
        {
            "key": 1759075200000,
            "total": 662,
            "incoming": 399
        },
        {
            "key": 1759161600000,
            "total": 675,
            "incoming": 409
        },
        {
            "key": 1759248000000,
            "total": 689,
            "incoming": 419
        },
        {
            "key": 1759334400000,
            "total": 706,
            "incoming": 428
        },
        {
            "key": 1759420800000,
            "total": 716,
            "incoming": 433
        },
        {
            "key": 1759507200000,
            "total": 738,
            "incoming": 451
        },
        {
            "key": 1759593600000,
            "total": 758,
            "incoming": 466
        },
        {
            "key": 1759680000000,
            "total": 780,
            "incoming": 479
        },
        {
            "key": 1759766400000,
            "total": 801,
            "incoming": 494
        },
        {
            "key": 1759852800000,
            "total": 828,
            "incoming": 513
        },
        {
            "key": 1759939200000,
            "total": 858,
            "incoming": 526
        },
        {
            "key": 1760025600000,
            "total": 896,
            "incoming": 552
        },
        {
            "key": 1760112000000,
            "total": 921,
            "incoming": 569
        },
        {
            "key": 1760198400000,
            "total": 948,
            "incoming": 590
        },
        {
            "key": 1760284800000,
            "total": 1002,
            "incoming": 632
        },
        {
            "key": 1760371200000,
            "total": 1074,
            "incoming": 689
        },
        {
            "key": 1760457600000,
            "total": 1132,
            "incoming": 731
        },
        {
            "key": 1760544000000,
            "total": 1190,
            "incoming": 774
        },
        {
            "key": 1760630400000,
            "total": 1263,
            "incoming": 829
        },
        {
            "key": 1760716800000,
            "total": 1333,
            "incoming": 880
        },
        {
            "key": 1760803200000,
            "total": 1396,
            "incoming": 935
        },
        {
            "key": 1760889600000,
            "total": 1472,
            "incoming": 995
        },
        {
            "key": 1760976000000,
            "total": 1547,
            "incoming": 1047
        },
        {
            "key": 1761062400000,
            "total": 1605,
            "incoming": 1093
        },
        {
            "key": 1761148800000,
            "total": 1642,
            "incoming": 1120
        },
        {
            "key": 1761235200000,
            "total": 1721,
            "incoming": 1183
        },
        {
            "key": 1761321600000,
            "total": 1830,
            "incoming": 1274
        },
        {
            "key": 1761408000000,
            "total": 1947,
            "incoming": 1368
        },
        {
            "key": 1761494400000,
            "total": 2076,
            "incoming": 1476
        },
        {
            "key": 1761580800000,
            "total": 2208,
            "incoming": 1575
        },
        {
            "key": 1761667200000,
            "total": 2319,
            "incoming": 1656
        },
        {
            "key": 1761753600000,
            "total": 2434,
            "incoming": 1740
        },
        {
            "key": 1761840000000,
            "total": 2661,
            "incoming": 1931
        },
        {
            "key": 1761926400000,
            "total": 2939,
            "incoming": 2179
        },
        {
            "key": 1762012800000,
            "total": 3353,
            "incoming": 2541
        },
        {
            "key": 1762099200000,
            "total": 8150,
            "incoming": 6860
        },
        {
            "key": 1762185600000,
            "total": 13899,
            "incoming": 12077
        },
        {
            "key": 1762272000000,
            "total": 12770,
            "incoming": 11026
        },
        {
            "key": 1762358400000,
            "total": 12693,
            "incoming": 10752
        },
        {
            "key": 1762444800000,
            "total": 12204,
            "incoming": 10729
        },
        {
            "key": 1762531200000,
            "total": 16701,
            "incoming": 15153
        },
        {
            "key": 1762617600000,
            "total": 20154,
            "incoming": 17708
        },
        {
            "key": 1762704000000,
            "total": 16053,
            "incoming": 14543
        },
        {
            "key": 1762790400000,
            "total": 12835,
            "incoming": 11700
        },
        {
            "key": 1762876800000,
            "total": 5103,
            "incoming": 4237
        }
    ]
}
修改于 2025-11-15 18:22:03
上一页
区间唯一 IP 会话数量
下一页
会话分析图表
Built with