Skip to content

Probe API field reference

The probe is enabled in “System Settings → Probe”: disguise the site as a public monitor page, configure title, logo, hidden login, which servers are shown and which metrics (CPU / memory / disk / ping) Agents collect. Region, provider and renewal price shown per server are entered in “Servers → Edit server → Probe display info”.

System Settings Probe tab screenshot

System Settings → Probe: disguised probe switches

Every theme except “Premium Black Gold” uses the layout below for the probe page, including the external probe.

Probe page

The probe page: top metrics and globe, toolbar, server cards

Metric Meaning
Servers Number of servers shown; click to show all
Online Number online
Total down / up Live speed summed across all servers
Traffic today Today’s traffic summed across all servers
Average load Average CPU usage of online servers
Renewals due Servers expiring within 30 days and their total renewal cost (only servers with a renewal price)

When the globe is enabled under “System Settings → Probe”, the six metrics form three columns by two rows on the left and the globe sits on the right. Each region with servers gets a flag and server count next to it on the globe; labels that are too close are shifted apart, and any that still don’t fit are hidden.

  • Search: filter by server name.
  • Region: show one region only.
  • Alerts N: only servers whose CPU, memory, disk or billing usage is above 90%; Renewals due N: only those expiring within 30 days.
  • Sort: default order (as arranged by the admin), name, CPU, memory, speed, traffic, expiry date, latency. Servers without that data go last.
  • By region: group cards by region.
  • Standard / Compact: compact mode keeps only CPU / memory / disk usage, billing usage and speed, fitting more servers on screen.

Sort, grouping and density choices are remembered in the visitor’s own browser. On wide screens the toolbar sticks to the top while scrolling.

  • Specs are written under the progress bars: CPU cores, and used / total memory and disk.
  • The health status is shown in the top-right corner; cards with alerts get a red outline.
  • Offline servers keep only specs, renewal info and “last seen xx minutes ago”.
  • Servers with a recognized provider show the provider logo in the top-right corner of the card (before the name in list mode); it can be turned off under “System settings → Probe”.

The built-in probe uses same-origin browser requests. A protected standalone probe must send X-MMwx-Probe-Token. Disabled probe channels normally return 404.

GET /api/public/probe-serversCurrent state and one-hour latency summary
WS /api/public/probe-wsPushes the same snapshot at the data refresh interval (3 seconds by default, on the same beat as server reports)
GET /api/public/probe-seriesLatency or system metric history
GET /api/public/probe-forwardForward chain structure, per-hop latency, trend, and traffic (same as forward in the snapshot)
GET /api/public/provider-logo/{file}Provider logo image, see "Provider logo" below
Field Type / unit Description
enabled boolean Whether probe data is enabled; the only guaranteed field when disabled
title string Custom probe title
logo string Logo URL or data URI
appearance object Theme metadata: theme, color_mode, and revision
block_login boolean Whether the original login page is blocked
show_name boolean Whether server names are included
show_globe boolean Whether the 3D globe is displayed
license_badge object Optional badge with name and display_name
servers array Servers selected by the administrator
show_forward boolean Whether forward chains are shown
forward array Forward chains, see “Forward chains” below; omitted when there are none or display is off
Field Type / unit Description
name string Server name, controlled by the show-name switch
online boolean Online according to Agent WebSocket or stored status
last_seen string, ISO 8601 Last heartbeat time; only returned for offline servers
region string Region emoji
region_country / region_name / region_city string Country, full region, and city
provider_name / provider_url string Provider name and validated HTTP(S) URL
provider_logo string Provider logo URL (same-origin path on the master, see “Provider logo” below); omitted when the switch is off or no provider is recognized
telecom_paid_peer boolean Provider is marked as Telecom 163 Paid Peer
upload_speed / download_speed integer, B/s Current system-NIC rates; independent of traffic_source/mode
traffic_used / traffic_limit integer, byte Server billing counter and limit; zero means unlimited
traffic_source / traffic_stats_mode string xray/system and both/upload/download/max
traffic_used_scope string configured_period for a valid cycle; counter_since_reset without a calendar cycle
traffic_used_up / traffic_used_down / traffic_used_total integer, byte Raw current-cycle directions and sum when a valid reset day exists
traffic_adjustment integer, byte Cycle reconciliation when valid; only the server offset without a cycle; may be negative
period_start / period_end YYYY-MM-DD Inclusive start and exclusive next reset; omitted without a valid reset day
boot_traffic_up / boot_traffic_down / boot_traffic_scope integer / string Raw Agent NIC totals for the current boot; scope is current_boot
cumulative_up / cumulative_down integer, byte Legacy aliases for boot_traffic, not current-cycle totals
cumulative_traffic_scope string Explicit scope for the compatibility fields; currently current_boot
daily_traffic array Raw daily directions selected by the server traffic source
daily_traffic_scope / daily_traffic_start / daily_traffic_end string / date Returned window and inclusive boundary dates, including zero-filled days
cpu_pct number, % CPU utilization
loadavg string System load text
mem_used / mem_total integer, byte Used and total memory
disk_used / disk_total integer, byte Used and total disk space
uptime integer, second System uptime
cpu_model / cpu_cores / cpu_threads string / integer CPU model, cores, and threads
os / kernel / arch string Operating system, kernel, and architecture
ping array One-hour latency and packet-loss summary
expires_at YYYY-MM-DD Expiry date; may fall back to the next traffic reset
renewal_price / renewal_currency number / string Original renewal price and ISO currency
renewal_cycle string month, quarter, half_year, or year
renewal_price_cny number CNY conversion using license-server rates
return_routes array Three-carrier return-route results

servers[].provider_logo looks like /api/public/provider-logo/4.c087a73762.png (since v0.6.3-beta.3).

  • Source: the provider recognized automatically or picked manually for the server under “Servers”; the logo comes from the license service. The master downloads it once on first request and serves the cached file afterwards. Visitors’ browsers only ever request the master’s own address, never the license service, so a disguised probe page does not give itself away.
  • Switch: “Provider logo (card top-right, before the name in lists)” under “System settings → Probe”, on by default. When off, provider_logo is no longer returned in the snapshot.
  • Image endpoint: GET /api/public/provider-logo/{file} returns a PNG (most have a transparent background). No login or probe token is needed, and it is cached for a year as immutable (the file name contains a content hash, so a new image gets a new name). Only file names recorded in the master’s database are served; anything else is a 404.
  • External probe: it is on a different origin, so the Worker forwards /api/provider-logo/{file}; the page uses it the same way.
  • Display tip: show it transparent in light themes; in dark themes put it on a white background, otherwise black-text logos are hard to read (both the built-in and the external probe do this).

daily_traffic[]: date (YYYY-MM-DD), uplink, downlink, total (byte). Directions do not apply traffic_stats_mode or traffic_adjustment. daily_traffic_scope is recent_7d or configured_period_and_recent_7d; the latter covers the complete current cycle and at least the latest seven days. Missing dates are zero-filled, so start/end describe the returned window rather than the first or last real sample.

With a valid reset cycle, the API guarantees:

traffic_used = apply(traffic_stats_mode, traffic_used_up, traffic_used_down)
+ traffic_adjustment

Without a valid reset day, cycle directions and period_* are omitted so the latest seven days are never mislabeled as a billing cycle. See Traffic accounting for UI semantics.

ping[]: key, label, isp, current_ms, loss_pct, buckets. The list contains twelve five-minute buckets. ms is average latency, loss is 0–100, and -1 means no data.

return_routes[]: carrier (telecom/unicom/mobile), region, route_type, tested_at (RFC 3339).

Forward chain data comes from two places with the same structure: forward in the snapshot (HTTP and WebSocket), and the separate GET /api/public/probe-forward, which returns { enabled, chains, generated_at }. Under “System settings → Probe”:

  • Forward chain topology and latency: when off, no forward chain data is returned (on by default).
  • Forward chain full-server latency matrix (each server → every server in the next group): when on, every server gets a ups array (off by default, since v0.6.2).

Only display names of servers and groups are returned, never IPs, ports, or rules.

Field Type / unit Description
name string Chain name
end_to_end_ms integer, ms Current end-to-end latency
loss_pct number, % Current end-to-end packet loss
groups array Groups in order (entry, relay, exit)
bucket_sec / trend integer / array Last hour of end-to-end trend in 5-minute buckets: { ts, e2e_ms, loss }
availability_24h number | null Availability over the last 24 hours (0–1); null without data
jitter_ms number | null Jitter of the latest sample
cells string 24-hour status strip, 72 characters of 20 minutes each: o ok, d degraded, b broken, n no data
speed_up / speed_down integer | null, B/s Current entry upload / download speed; null if nothing was sampled in the last two minutes
traffic object Daily traffic per server in the period: days, servers[] (name, group, role, daily_gb, total_gb), total_gb
route_hop / route_policy / failover_ms / routes — Only for chains with a route-selection segment, see below
Field Type / unit Description
groups[].name string Group name
groups[].role string entry, mid (relay), or exit
groups[].to_next_ms / loss_pct integer, ms / number, % Latency and loss from this group to the next
groups[].servers[] array Every server in the group
servers[].name string Server display name
servers[].to_next_ms / loss_pct integer, ms / number, % Latency and loss from this server to the next group
servers[].healthy boolean Whether this server reaches the next group
servers[].route string For members of the forking group: the route currently in use
servers[].ups array Pairwise latency matrix: this server to every server in the next group, see below

Returned when the full-server latency matrix is on. For example, with one entry server and seven exit servers, the entry server’s ups has seven items, one per exit server.

Field Type / unit Description
name string Display name of the server in the next group
ms integer | null, ms Current latency; null when unreachable or no data yet
loss_pct number, % Packet loss
healthy boolean | null true reachable, false unreachable, null no data for this pair yet
{
"name": "Guangzhou entry",
"to_next_ms": 64,
"loss_pct": 0,
"healthy": true,
"ups": [
{ "name": "Hong Kong exit A", "ms": 64, "loss_pct": 0, "healthy": true },
{ "name": "Japan exit B", "ms": 71, "loss_pct": 0, "healthy": true },
{ "name": "US exit C", "ms": null, "loss_pct": 0, "healthy": false }
]
}

ups is omitted for the exit group (there is no next group), relay groups, the forking group of a route-selection segment, and branch members that match no server in the next group. Latency between two servers in the same group is not measured and not returned.

For chains with a route-selection segment, route_hop is the index of the forking group in groups, route_policy is lowest_latency, failover, or weighted, and failover_ms is the switch threshold. routes[] lists the parallel routes from the forking group to the next group:

Field Type / unit Description
name string Route name
via array Relay group names passed in order; empty means direct to the next group
latency_ms integer, ms Average latency from the forking group’s servers to the exit via this route; 0 means not measured
loss_pct number, % Packet loss
selected / selected_by boolean / array Whether a server is using this route; names of those servers

Parameters: server is the servers array index (not a database ID); metric is ping (default) or system; range is 1h, 6h, or 24h; target is a ping key; all=1 returns all targets.

Granularity: 1h = 12×5 minutes, 6h = 36×10 minutes, and 24h = 48×30 minutes. Common fields are success, bucket_sec, generated_at, and series; all=1 adds all_series.

metric=system: cpu_pct, mem_used, mem_total, upload_speed, download_speed, cumulative_up, cumulative_down. Each value is an array of { t: Unix seconds, value: number }. The cumulative_* series is also sampled NIC traffic for the current boot.

Most collected metrics are optional. A disabled switch, an older Agent, or missing samples causes the field to be omitted instead of returning zero. Server IDs, IPs, tokens, Agent addresses, hostnames, and Xray configuration are never exposed.