PeerBanHelper WebAPI(v8)
  1. 元数据
PeerBanHelper WebAPI(v8)
  • API
    • 鉴权
      • 登录
      • 注销登录态
    • 元数据
      • 请求基本清单数据
        GET
      • 初始化
        POST
    • 基本统计
      • 统计计数器
    • 封禁
      • 获取封禁列表
      • 获取封禁历史记录信息
      • 获取封禁排名
      • 解除封禁
    • 下载器
      • 获取下载器列表
      • 获取下载器元数据
      • 获取下载器种子列表
      • 获取下载器指定种子的Peers列表
      • 创建下载器
      • 编辑下载器
      • 测试下载器配置
      • 删除下载器
    • 推送渠道
      • 获取推送渠道列表
      • 获取推送渠道元数据
      • 创建推送渠道
      • 编辑推送渠道
      • 测试通知渠道
      • 删除推送渠道
    • 通用
      • 通用状态查询
      • 创建堆转储文件
      • 检查指定模块是否启用
      • 更改全局设置
      • 获取全局设置
      • 配置文件重载
      • 手动触发 JVM 崩溃模拟测试
    • 功能模块
      • AutoRangeBan
        • 获取模块内存基本元数据
      • BtnNetworkOnline
        • 获取 BTN 模块状态
      • ClientNameBlackList
        • 获取模块内存基本元数据
      • IPBlackList
        • 获取模块内存基本元数据
        • 测试IP黑名单规则
        • 添加IP黑名单规则
        • 删除IP黑名单规则
        • 添加端口黑名单规则
        • 删除端口黑名单规则
        • 添加ASN黑名单
        • 删除ASN黑名单规则
        • 添加国家/地区代码黑名单规则
        • 添加城市黑名单规则
        • 删除国家/地区代码黑名单规则
        • 删除城市黑名单规则
      • MultiDialingBlocker
        • 获取模块内存基本元数据
      • PeerIdBlacklist
        • 获取模块内存基本元数据
      • ProgressCheatBlocker
        • 获取模块内存基本元数据
        • 获取状态
      • 订阅规则
        • 查询更新间隔
        • 修改更新间隔
        • 新增订阅规则
        • 查询订阅规则
        • 更新订阅规则
        • 保存订阅规则
        • 删除订阅规则
        • 启用禁用规则
        • 订阅规则列表
        • 更新全部订阅规则
        • 查询全部订阅规则更新日志
        • 查询指定订阅规则更新日志
      • Friend
        • 未命名接口
      • Expression Engine
        • 列出所有脚本
        • 获取指定脚本内容
        • 创建/保存脚本
        • 删除指定脚本
        • 是否可编辑给定脚本
      • Laboratory
        • 列出所有实验状态
        • 检查指定实验是否已启用
        • 设置指定实验的开关状态
        • 获取实验室模块配置状态
        • 设置实验室模块配置状态
      • SwarmTracking
        • 获取跟踪的 Peers 数量
        • 获取跟踪的 Peers 分页数据
    • 警报
      • 获取警报列表
      • 标记警报为已读
      • 标记警报为全部已读
      • 删除指定警报
    • 程序日志
      • 获取程序日志
    • 统计图表(基础)
      • 封禁趋势统计(迁移自/api/statistic/analysis/date)
      • 统计通用数值查询
      • 统计通用日期归类查询
    • PBH Plus
      • 创建或更新免费许可证
      • 验证捐赠密钥状态
      • 设置捐赠密钥
    • Torrent
      • 获取PBH种子列表
      • 获取指定种子基本信息
      • 获取指定种子的访问历史列表
      • 获取指定种子的封禁历史列表
    • 图表
      • GeoIP
      • 趋势
      • 流量
    • Peer
      • 查询指定 IP 的基本信息
      • 查询指定 IP 的访问历史列表
      • 查询指定 IP 的封禁记录
    • 工具
      • 批量更换 Tracker
  • 下载器兼容层
    • IP BanList 提供端点
      GET
    • P2P Guard Plain BanList 提供端点
      GET
    • DAT/Emule BanList 提供端点
      GET
  1. 元数据

请求基本清单数据

GET
http://127.0.0.1:9897/api/metadata/manifest
最后修改时间:2025-06-01 10:43:19
责任人:ghostchu
无需登录

请求参数

无

示例代码

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/metadata/manifest'

返回响应

🟢200成功
application/json
Body
success
boolean 
必需
message
null 
必需
data
object 
必需
installationId
string 
PeerBanHelper 安装 ID
必需
version
object 
版本属性
必需
modules
array [object {2}] 
已加载模块信息
必需
示例
{"success":true,"message":null,"data":{"installationId":"b27978b9-e113-4b8e-8a80-7a98d5aa6242","version":{"version":"7.4.15","os":"Windows 11","branch":"${git.branch}","commit":"${git.commit.id}","abbrev":"${git.commit.id.abbrev}","compileTime":"${git.build.time}"},"modules":[{"className":"com.ghostchu.peerbanhelper.module.impl.rule.IPBlackList","configName":"ip-address-blocker"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.PeerIdBlacklist","configName":"peer-id-blacklist"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.ClientNameBlacklist","configName":"client-name-blacklist"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.ExpressionRule","configName":"expression-engine"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.ProgressCheatBlocker","configName":"progress-cheat-blocker"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.MultiDialingBlocker","configName":"multi-dialing-blocker"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.AutoRangeBan","configName":"auto-range-ban"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.BtnNetworkOnline","configName":"btn"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.BlockListController","configName":"webapi-downloader-cidr-blocklist"},{"className":"com.ghostchu.peerbanhelper.module.impl.rule.IPBlackRuleList","configName":"ip-address-blocker-rules"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHMetricsController","configName":"webapi-metrics"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHBanController","configName":"webapi-downloader"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHMetadataController","configName":"webapi-metadata"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHDownloaderController","configName":"webapi-downloader"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.RuleSubController","configName":"webapi-rule-subscription"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHAuthenticateController","configName":"webapi-authenticate"},{"className":"com.ghostchu.peerbanhelper.module.impl.monitor.ActiveMonitoringModule","configName":"active-monitoring"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHPlusController","configName":"webapi-pbh-plus"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHOOBEController","configName":"webapi-oobe"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHChartController","configName":"webapi-charts"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHGeneralController","configName":"webapi-general"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHTorrentController","configName":"torrent-controller"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHPeerController","configName":"peer-controller"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHAlertController","configName":"webapi-alerts"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHLogsController","configName":"webapi-logs"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHPushController","configName":"webapi-push"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHLabController","configName":"webapi-laboratory"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHEasterEggController","configName":"webapi-easteregg"},{"className":"com.ghostchu.peerbanhelper.module.impl.webapi.PBHUtilitiesController","configName":"webapi-utilities"},{"className":"com.ghostchu.peerbanhelper.module.impl.background.BackgroundModule","configName":"background-sqlite-database-optimizer"}]}}
🔴500内部服务器错误
🟢200成功
修改于 2025-06-01 10:43:19
上一页
注销登录态
下一页
初始化
Built with