Skip to main content
GET
/
servers
/
{server}
/
graphs
/
{timeframe}
Get server graphs
curl --request GET \
  --url https://rdp.sh/api/v1/servers/{server}/graphs/{timeframe} \
  --header 'Authorization: <api-key>'
{
  "status": true,
  "metrics": [
    "<string>"
  ],
  "timeframe": "<string>",
  "data": "<array>"
}

Authorizations

Authorization
string
header
required

Path Parameters

server
string
required
timeframe
enum<string>
required

Time range for graph data

Available options:
hour,
day,
week,
month
Example:

"hour"

Response

Server graph data retrieved successfully.

status
boolean
metrics
string[]
Example:
["cpu", "mem", "netin", "netout"]
timeframe
string
data
array