- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
规则计数器
GET
/api/statistic/rules
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
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/statistic/rules'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object
必需
data
array [object {4}]
必需
dict
object
必需
示例
{
"success": true,
"message": null,
"data": {
"data": [
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "anacrolix/torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 20,
"metadata": {
"rule": "hp/torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 17,
"metadata": {
"rule": "-gt0002"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 61,
"metadata": {
"rule": "-xl"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "-xf"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "torrentstorm"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "dt "
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "-tt"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "flashget"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "go.torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "xfplay"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "github.com/thank423/trafficconsume"
}
},
{
"type": "订阅规则: all-in-one",
"hit": 0,
"query": 60,
"metadata": {
"rule": "all-in-one",
"id": "all-in-one"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 20,
"metadata": {
"rule": "-bn"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "xm "
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "stellarplayer"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "ޭ__"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 43,
"metadata": {
"rule": "taipei-torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 20,
"metadata": {
"rule": "-gt0003"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "qqdownload"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 19,
"metadata": {
"rule": "-xm"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "-dl"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "-qd"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "-ts"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 20,
"metadata": {
"rule": "cacao"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 17,
"metadata": {
"rule": "dt/torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 16,
"metadata": {
"rule": "-sd"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 18,
"metadata": {
"rule": "xunlei"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "-fg"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "tudou"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "xm/torrent"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 20,
"metadata": {
"rule": "-dt"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 21,
"metadata": {
"rule": "hp "
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "ljyun.cn/hangzhou/monitoring"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 17,
"metadata": {
"rule": "-hp"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "qbittorrent/3.3.15"
}
},
{
"type": "匹配开头",
"hit": 0,
"query": 22,
"metadata": {
"rule": "-nx"
}
},
{
"type": "子串匹配",
"hit": 0,
"query": 22,
"metadata": {
"rule": "sp "
}
}
],
"dict": {
"子串匹配": "子串匹配",
"匹配开头": "匹配开头",
"订阅规则: all-in-one": "订阅规则: all-in-one"
}
}
}
🟠429IP地址因频繁失败尝试而被封禁
🟠403未登录或Token错误
🔴500内部服务器错误
修改于 2024-08-23 19:34:00