GET /dashboard/service/{id}/dedicated/bandwidth

Get bandwidth usage

Returns bandwidth usage data with time series points for the specified period. Data is clamped to the service creation date.

Parameters

NameTypeInDescription
id*
integerpathThe service ID of the dedicated server
period
day | week | month | yearqueryTime period for bandwidth data
Default: "day"

Response

200
403
404
successboolean
dataobject
pointsarray
monthlyUsageGBnumber

Monthly bandwidth usage in gigabytes

monthlyUsageTBnumber

Monthly bandwidth usage in terabytes

monthlyLimitTBnumbernullable

Monthly bandwidth limit in terabytes

Request

curl -X GET "https://api.royalehosting.net/dashboard/service/{id}/dedicated/bandwidth" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "success": true,
  "data": {
    "points": [
      {
        "time": 1704067200,
        "netin": 1048576,
        "netout": 2097152
      }
    ],
    "monthlyUsageGB": 150.25,
    "monthlyUsageTB": 0.15,
    "monthlyLimitTB": 10
  }
}