Sparkle
  1. 能力
Sparkle
  • API
    • BanHistory 封禁历史
      • 查询最近封禁记录
      • 复杂查询封禁记录
    • ClientDiscovery 客户端发现
      • 查询最近新客户端发现记录
      • 复杂查询客户端发现记录
    • Snapshot 快照记录
      • 查询最近快照
      • 复杂查询快照记录
    • UserApplication 用户应用程序
      • 列出我的用户应用程序
      • 获取指定用户应用程序信息
      • 重置指定用户应用程序的 AppSecret
      • 编辑指定用户应用程序
      • 创建新的用户应用程序
      • 删除指定用户应用程序
    • User 用户
      • 用户个人基本信息
      • 读取指定用户个人基本信息
      • 登出会话
    • Github OAuth2 登录
      GET
  • BTN兼容客户端协议通讯
    • 能力
      • 提交 Peers
        GET
      • 提交 Bans
        GET
      • 请求云端规则
        GET
    • 请求 BTN 配置文件
      GET
  1. 能力

请求云端规则

开发中
GET
/ping/rules/retrieve

请求参数

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 'https://btn-prod.ghostchu-services.top/ping/rules/retrieve'

返回响应

🟢200成功
application/json
Body
version
string 
规则版本号
必需
peer_id
object 
PeerID 规则列表
必需
peer_id_exclude
object 
PeerID 规则排除列表
必需
client_name
object 
客户端名称规则列表
必需
client_name_exclude
object 
客户端名称规则排除列表
必需
ip
array[string]
IP/CIDR
必需
port
array[integer]
端口列表
必需
示例
{
    "version": "1981c7af",
    "peer_id": {
        "hp/torrent 新变种": [
            "{\"method\":\"STARTS_WITH\",\"content\":\"-xm\"}"
        ]
    },
    "peer_id_exclude": {},
    "client_name": {
        "hp/torrent 新变种": [
            "{\"method\":\"STARTS_WITH\",\"content\":\"xm/torrent\"}"
        ],
        "BTN-全随机 PeerID (特征识别-粗略)": [
            "{\"method\":\"EQUALS\",\"content\":\"gopeed dev\"}"
        ]
    },
    "client_name_exclude": {},
    "ip": {
        "BTN-多拨下载-2024-06-16": [
            "42.248.192.0/24",
            "..."
        ],
        "BTN-进度回退-2024-06-07": [
            "110.185.22.124/30",
            "..."
        ],
        "多拨黑名单": [
            "101.69.63.0/24",
            "..."
        ],
        "BTN-网段统计-HIT: 21-2024-06-26": [
            "94.140.5.0/24"
        ],
        "BTN-恶意刷流": [
            "115.231.45.0/24"
        ],
        "BTN-进度回退-网段统计-HIT: 59-2024-06-26": [
            "218.21.79.0/24"
        ],
        "BTN-2024-07-09 过量下载": [
            "115.216.192.175"
        ],
        "BTN-吸血IDC/专线": [
            "103.249.120.217",
            "..."
        ],
        "BTN-进度重置-2024-06-16": [
            "101.69.63.0/24"
        ],
        "PCDN": [
            "60.220.182.0/24",
            "61.160.233.0/24"
        ],
        "BTN-多拨-不舍得换IPV6后缀": [
            "240e:660:150c::/47"
        ],
        "BTN-Taipei Torrent 吸血 IP 段": [
            "58.241.210.0/24"
        ],
        "BTN-全随机 PeerID": [
            "218.90.201.2",
            "..."
        ],
        "BTN-进度回退-2024-07-18": [
            "27.227.175.0/17",
            "..."
        ],
        "BTN-自动生成-不受信任IP": [
            "1.55.45.106",
            "..."
        ],
        "BTN-阿里云小水管流量消耗器": [
            "120.79.218.87",
            "..."
        ],
        "BTN-进度回退-2024-06-26": [
            "110.185.22.181",
            "..."
        ],
        "BTN-IDC数据中心恶意行为-进度回退": [
            "115.231.84.130",
            "..."
        ],
        "BTN-多拨进度倒退": [
            "223.90.140.0/24",
            "..."
        ],
        "BTN-马来西亚吸血": [
            "2001:e68::"
        ],
        "BTN-进度回退-网段统计-HIT: 20-2024-06-26": [
            "185.236.42.0/24"
        ],
        "ClientName 不可解析": [
            "62.171.169.210",
            "..."
        ],
        "BTN-紧急推送": [
            "106.58.44.0/24",
            "..."
        ],
        "BTN-24-07-26紧急推送": [
            "110.83.135.0/24",
            "..."
        ],
        "BTN-大面积进度回退": [
            "115.231.45.0/24"
        ],
        "BTN-网段统计-HIT: 20-2024-06-26": [
            "62.76.24.0/24"
        ],
        "BTN-多拨-你段挺多的": [
            "2401:4900:1c00::/40"
        ],
        "BTN-PCDN": [
            "221.205.168.0/23",
            "..."
        ],
        "BTN-进度回退": [
            "106.226.5.38",
            "..."
        ]
    },
    "port": {}
}
🟢204规则暂无更新
修改于 2024-08-17 19:01:36
上一页
提交 Bans
下一页
请求 BTN 配置文件
Built with