For the complete documentation index, see llms.txt. This page is also available as Markdown.

List order resource usage metrics

Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown.

List order resource usage metrics

get

Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
order_idintegerRequired

Agency Plan order ID

Example: 123456
Query parameters
time_frame_hoursinteger · enumOptional

Length of the window in hours, ending now. Bucket size grows with the window.

Default: 24Example: 168Possible values:
Responses
200

Success response

application/json
get/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics
GET /api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "limits": {
    "memory_bytes": 104857600,
    "cpu_percent": 400,
    "processes": 100
  },
  "metrics": [
    {
      "cpu_percent": 15.5,
      "memory_bytes": 125829120,
      "processes": 12,
      "timestamp": 1736325738
    }
  ],
  "websites": [
    {
      "uid": "cvDuwAOvq",
      "domains": [
        "example.com",
        "www.example.com"
      ],
      "metrics": [
        {
          "cpu_percent": 15.5,
          "memory_bytes": 125829120,
          "processes": 12,
          "timestamp": 1736325738
        }
      ]
    }
  ]
}

Last updated

Was this helpful?