getConfigJSON(port)
Returns the configuration of a single forwarded proxy (bound to the specified port) in JSON format.
getConfigJSON(port)
Parameters
port (number) – Port to query.
Return Value
string – JSON object of the proxy configuration.
Example JSON structure:
// JSON structure
{
"proxy_id": "677e2c4517f247bc89dd66a4",
"plan": "1",
"country_code": "HK",
"address": "127.0.0.1:60000",
"binding_type": "ip",
"Index": 60000,
"client_country_code": "US",
"is_online": true,
"city": "Hongkong",
"public_ip": "1.2.3.4",
"origin_id": "677e2c4537f244bc29dd66a2",
"server_id": "6775221517f231bc29df2624",
"last_refresh": 1692705600,
"count_refresh": 12,
"prepare_start_date": 1692600000,
"manual": false,
"action_type": 1,
"streams": 5,
"bw": {
"id": "677e1c4517f227a229de67c5",
"bw_up": 2048000,
"bw_down": 10485760,
"session_time": 3600,
"bytes_write": 5242880,
"bytes_read": 7340032
}
}
Example
// example
const j = sdk.getConfigJSON(10001);
console.log(JSON.parse(config));
Last updated
Was this helpful?