Port API
Returns the status of specified ports or all ports if 'ports=all' is provided.
Response type 1=txt, 2=json
Specify a port number or use 'all' to check all ports.
Successful response
API response format.
Error status (true if an error occurred, false if successful).
Response message.
GET /api/port_check HTTP/1.1
Accept: */*
Successful response
{
"error": true,
"message": "text",
"data": [
{
"port": 1,
"online": true
}
]
}Returns the status of ports, including their address, city, public IP, and online status.
Response type 1=txt, 2=json
Successful response
API response format.
Error status (true if an error occurred, false if successful).
Response message.
GET /api/port_status HTTP/1.1
Accept: */*
Successful response
{
"error": true,
"message": "text",
"data": [
{
"address": "text",
"city": "text",
"public_ip": "text",
"online": true
}
]
}Configures a range of ports starting from a specified port.
The starting port of the range.
The number of ports in the range.
Response type 1=txt, 2=json
Successful response
API response format.
Error status (true if an error occurred, false if successful).
Response message.
Error response
GET /api/set_port_range HTTP/1.1
Accept: */*
{
"error": true,
"message": "text"
}Returns the status of requested ports.
List of ports to check, separated by commas.
Response type 1=txt, 2=json
Successful response
API response format.
Error status (true if an error occurred, false if successful).
Response message.
GET /api/port_free HTTP/1.1
Accept: */*
Successful response
{
"error": true,
"message": "text"
}Last updated
Was this helpful?