getConfigsJSON()
Returns the full configuration of all forwarded proxies in JSON format.
getConfigsJSON()
Return Value
string – JSON array of proxy configurations.
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 configs = sdk.getConfigsJSON();
console.log(JSON.parse(configs));
Last updated
Was this helpful?