For AI agents: the complete documentation index is available at https://proxykite.com/docs/llms.txt, the full documentation bundle is available at https://proxykite.com/docs/llms-full.txt, and this page is available as Markdown at https://proxykite.com/docs/api/usage.md.

Usage

Traffic

GET /proxies/{id}/usage

Ability: read · Traffic through the proxy in UTC time buckets.

Query
range24h (hourly buckets, default), 7d (hourly) or 30d (daily). Anything else falls back to 24h
curl
Python
Node.js
PHP
curl 'https://proxykite.com/api/v1/proxies/7/usage?range=7d' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'

Response 200

{
  "data": [
    {"t": "2026-10-09T17:00:00+00:00", "bytes_in": 1048576, "bytes_out": 52428, "requests": 312}
  ],
  "range": "7d",
  "used_bytes": 123456789,
  "quota_bytes": null
}
FieldMeaning
data[].tstart of the bucket (UTC)
bytes_in, bytes_outbytes in and out through the proxy in that bucket, as counted on your node
requestsproxied requests (HTTP requests, CONNECT tunnels, SOCKS5 connections)
used_bytestraffic counted against the quota
quota_bytestraffic quota, null = unlimited. Reaching it disables the proxy (over_quota) and fires quota.exceeded

Uptime

GET /proxies/{id}/uptime

Ability: read · Was the proxy working, and when it was not, why. Built from the panel's state history: every change of the proxy's state (see the proxy object) is recorded, so a downtime always carries its cause. History starts on 2026-11-15 (or when the proxy was first seen, if later); time before that is unknown.

Query
range24h (5-minute buckets, default), 7d (hourly) or 30d (4-hour buckets). Anything else falls back to 24h
curl 'https://proxykite.com/api/v1/proxies/7/uptime?range=24h' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'

Response 200

{
  "data": {
    "range": "24h",
    "from": "2026-11-14T06:15:00+00:00",
    "to": "2026-11-15T06:15:00+00:00",
    "step_seconds": 300,
    "uptime_pct": 97.9,
    "tracked_since": "2026-11-15T04:00:00+00:00",
    "buckets": [
      {"t": "2026-11-15T05:30:00+00:00", "up_ratio": 1.0, "state": "online", "reason": null},
      {"t": "2026-11-15T05:35:00+00:00", "up_ratio": 0.4, "state": "no_internet", "reason": "No internet through the dongle: timeout"}
    ],
    "incidents": [
      {"state": "no_internet", "reason": "No internet through the dongle: timeout",
       "started_at": "2026-11-15T05:38:10+00:00", "ended_at": "2026-11-15T06:02:41+00:00", "seconds": 1471}
    ]
  }
}
FieldMeaning
uptime_pctshare of the tracked time in this range the proxy was online; null when nothing is tracked yet
buckets[].up_ratio0 to 1: how much of the bucket the proxy was online (unknown time is not counted)
buckets[].stateonline, unknown, or the down state that covered most of the bucket's downtime (no_internet, stalled, offline, node_offline, no_data, blocked, over_limit, pending)
buckets[].reasonthe latest cause recorded for that state in the bucket, null for online/unknown
incidentsdown periods overlapping the range, newest first, at most 50. ended_at null = still down; seconds is clipped to the range