GET /v1/summary

The latest snapshot

Returns the most recent sample. Before the first sample it returns 503 with the code not_ready. The response may be cached for five seconds.

Auth. None. Anyone can call this route.

Responses

StatusMeaningBody
200The latest snapshotSummary
429Too many requests from this client address. Retry after the Retry-After seconds.Error
503No sample yetNotReady

Example response

{
  "version": 0,
  "collected_at": "2026-10-11T00:00:00Z",
  "containers": {
    "running": 0,
    "total": 0
  },
  "services": [
    {
      "name": "string",
      "state": "running",
      "cpu_percent": 0,
      "memory_mb": 0,
      "containers": [
        {}
      ]
    }
  ],
  "cpu": {
    "percent": 0,
    "cores": 1
  },
  "memory": {
    "percent": 0,
    "total_mb": 0,
    "used_mb": 0
  },
  "disk": {
    "percent": 0,
    "total_gb": 0,
    "used_gb": 0
  }
}

Code samples

Set KEY to your own token first.

curl

curl \
  "https://api.sasek.org/telemetry/v1/summary"

JavaScript

const res = await fetch("https://api.sasek.org/telemetry/v1/summary", {
});
const data = await res.json();

Python

import json
import os
import urllib.request

request = urllib.request.Request(
    "https://api.sasek.org/telemetry/v1/summary",
    method="GET",
)
with urllib.request.urlopen(request) as response:
    print(json.load(response))