API Reference

Usage Data

Get dynamic system usage metrics.

The /api/usage endpoint returns real-time usage data that changes frequently, such as CPU load, memory usage, and temperatures.

Endpoint

MethodURL
GET/api/usage

Example Request

Request
curl http://192.168.1.100:9990/api/usage

Response Schema

Response
{
    "uptime": 86400,
    "cpu": {
        "currentLoad": 12.5,
        "currentSpeed": 5.2
    },
    "memory": {
        "used": 12456789012,
        "free": 21811522540,
        "usedPercent": 36.35
    },
    "gpu": {
        "utilizationGpu": 5,
        "temperatureGpu": 42,
        "vramUsed": 1024
    },
    "disks": [
        {
            "fs": "C:",
            "used": 450000000000,
            "available": 574000000000,
            "usedPercent": 43.95
        }
    ]
}

Field Reference

Root Object

FieldTypeDescription
uptimeintSystem uptime in seconds.
cpuobjectCurrent CPU usage metrics.
memoryobjectCurrent memory usage.
gpuobjectCurrent GPU usage (null if not detected).
disksarrayCurrent disk usage for each drive.

CPU Object

FieldTypeDescription
currentLoadfloatCurrent CPU usage percentage.
currentSpeedfloatCurrent clock speed in GHz.

Memory Object

FieldTypeDescription
usedintUsed RAM in bytes.
freeintFree RAM in bytes.
usedPercentfloatUsage as a percentage.

GPU Object

FieldTypeDescription
utilizationGpuintGPU usage percentage.
temperatureGpuintGPU temperature in °C.
vramUsedintVRAM usage in MB.

Disk Object

FieldTypeDescription
fsstringFilesystem identifier.
usedintUsed space in bytes.
availableintAvailable space in bytes.
usedPercentfloatUsage as a percentage.

Polling Recommendation

For dashboards, poll this endpoint every 2-5 seconds. More frequent polling provides smoother updates but increases network traffic.

On this page