Clash
  • Clash
  • RESTful API
    • Common
    • Proxies
    • Config
Powered by GitBook
On this page
  • 获得当前的流量
  • 获得实时日志
  1. RESTful API

Common

获得当前的流量

GET /traffic

获得实时的上下行 (Byte)

{
    "up": 200,
    "down": 300
}

获得实时日志

GET /logs

获得一个实时的日志流

Query Parameters

Name
Type
Description

level

string

日志等级 (error | warning | info | debug)

{
    "type": "info",
    "payload": "google.com match GEOIP using DIRECT"
}
PreviousRESTful APINextProxies

Last updated 6 years ago