BLT-API
配置管理
获取所有配置
curl -X 'GET' \
'http://ip:port/config/' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取B站相关配置
curl -X 'GET' \
'http://ip:port/config/bilibili' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取Cloudflare配置
curl -X 'GET' \
'http://ip:port/config/cloudflare' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取Server酱配置
curl -X 'GET' \
'http://ip:port/config/server_chan' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
更新B站cookies
curl -X 'POST' \
'http://ip:port/config/bilibili/cookies?cookies=new_cookies_value' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
强制从.env重新加载配置
curl -X 'POST' \
'http://ip:port/config/reload' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
监控管理
获取监控状态
curl -X 'GET' \
'http://ip:port/monitor/status' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取指定UP主的直播状态
curl -X 'GET' \
'http://ip:port/monitor/live/123456789' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取当前监控列表
curl -X 'GET' \
'http://ip:port/monitor/subscribers' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
添加监控用户
curl -X 'POST' \
'http://ip:port/monitor/subscribers/123456789' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
移除监控用户
curl -X 'DELETE' \
'http://ip:port/monitor/subscribers/123456789' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
获取指定用户的详细信息
curl -X 'GET' \
'http://ip:port/monitor/subscribers/123456789' \
-H 'accept: application/json' \
-H 'X-API-Key: key'
默认
健康检查端点(无需鉴权)
curl -X 'GET' \
'http://ip:port/health' \
-H 'accept: application/json'