API endpoint:
POST /api/proxies
POST body
proxy
[JSON object]port
[integer] - Port for the HTTP proxyproxy_type=persist
[string] - Set to "persist" to save proxy into the configuration file.multiply
[integer] - Multiply the port definition given number of timesmultiply_users
[boolean]users
[array] - List of users. This option has to be used along with "multiply_users"user
[string]
ssl
[boolean] - Enable SSL analyzingtls_lib=open_ssl|flex_tls
[string] - SSL libraryiface
[string] - Interface or IP to listen oncustomer
[string] - Customer namezone
[string] - Zone namepassword
[string] - Zone passwordproxy
[string] - Hostname or IP of super proxyproxy_port
[integer] - Super proxy portproxy_connection_type=http|https|socks
[string] - Determines what kind of connection will be used between Proxy Manager and Super Proxyproxy_retry
[integer] - Automatically retry on super proxy failureinsecure
[boolean] - Enable SSL connection/analyzing to insecure hostscountry
[string] - Countrystate
[string] - Statecity
[string] - Cityasn
[string] - ASNip
[string] - Data Center IPvip
[integer] - gIPext_proxies
[array] - A list of proxies from external vendors. Format: [username:password@]ip[:port]proxy
[string]
ext_proxy_username
[string] - Default username for external vendor ipsext_proxy_password
[string] - Default password for external vendor ipsext_proxy_port
[integer] - Default port for external vendor ipsdns=local|remote
[string] - DNS resolvingreverse_lookup_dns
[boolean] - Process reverse lookup via DNSreverse_lookup_file
[string] - Process reverse lookup via filereverse_lookup_values
[array] - Process reverse lookup via valuesession=^[^\.\-]*$
[string] - Session for all proxy requestssticky_ip
[boolean] - Use session per requesting host to maintain IP per hostpool_size
[integer]rotate_session
[boolean] - Session pool sizethrottle
[integer] - Throttle requests above given numberrules={...}
[array] - Proxy request rulesroute_err
[string] - Block or allow requests to be automatically sent through super proxy on errorsmtp
[array]override_headers=[string]
[boolean]os
[string] - Operating System of the Peer IPheaders
[array] - Request headersname
[string]value
[string]
debug=full|none
[string] - Request debug infolpm_auth
[string] - x-lpm-authorization headerconst
[boolean]socket_inactivity_timeout
[integer]multiply_ips
[boolean]multiply_vips
[boolean]max_ban_retries
[integer]preset
[string]ua
[boolean] - Unblocker Mobile UAtimezone
[string] - Timezone ID to be used by the browserresolution
[string] - Browser screen sizewebrtc
[string] - WebRTC plugin behavior in the browserbw_limit
[object] - BW limit paramsdays
[integer]bytes
[integer]renewable
[boolean] - Renew limit of bytes each period or use single period and stop usage once last day of period is reached. Default is true
create_users
[boolean]
Sample response:
{"port":24000,"zone":"YOUR_ZONE","proxy_type":"persist","customer":"YOUR_CUSTOMER_ID","password":"PASSWORD","whitelist_ips":[]}
Shell
curl "http://127.0.0.1:22999/api/proxies" -H "Content-Type: application/json" -d "{\"proxy\":{\"port\":24000,\"zone\":\"ZONE\",\"proxy_type\":\"persist\",\"customer\":\"CUSTOMER\",\"password\":\"PASSWORD\",\"whitelist_ips\":[]}}"
Node.js
#!/usr/bin/env node
require('request-promise')({
method: 'POST',
url: 'http://127.0.0.1:22999/api/proxies',
json: {'proxy':{'port':24000,'zone': 'ZONE','proxy_type':'persist','customer':'CUSTOMER','password':'PASSWORD','whitelist_ips':[]}}
}).then(function(data){ console.log(data); },
function(err){ console.error(err); });
Java
package example; import org.apache.http.HttpHost; import org.apache.http.client.fluent.*; public class Example { public static void main(String[] args) throws Exception {
String body = "{\"proxy\":{\"port\":24000,\"zone\":\"ZONE\",\"proxy_type\":\"persist\",\"customer\":\"CUSTOMER\",\"password\":\"PASSWORD\",\"whitelist_ips\":[]}}"; String res = Executor.newInstance()
.execute(Request.Post("http://127.0.0.1:22999/api/proxies")
.bodyString(body, ContentType.APPLICATION_JSON))
.returnContent().asString();
System.out.println(res) }
}
C#
using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; public class Program { public static async Task Main() { var client = new HttpClient(); var requestMessage = new HttpRequestMessage { Method = HttpMethod.Post,
RequestUri = new Uri("http://127.0.0.1:22999/api/proxies"),
Content = new StringContent(JsonConvert.SerializeObject(new {
proxy = new {
port = 24000, zone = "ZONE", proxy_type = "persist", customer = "CUSTOMER", password = "PASSWORD", whitelist_ips = []
}
}), Encoding.UTF8, "application/json")) }; var response = await client.SendAsync(requestMessage); var responseString = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseString); } }
Python
#!/usr/bin/env python
print('If you get error "ImportError: No module named requests", please install it:\n$ sudo pip install requests');
import requests
data = {'proxy':{'port':24000,'zone': 'ZONE','proxy_type':'persist','customer':'CUSTOMER','password':'PASSWORD','whitelist_ips':[]}}
r = requests.post('http://127.0.0.1:22999/api/proxies', data=data)
print(r.content)
Cloud Proxy Manager:
Shell
curl "https://pmgr-customer-<account_id>.brd.superproxy.io/api/proxies" -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d "{\"proxy\":{\"port\":24000,\"zone\":\"ZONE\",\"customer\":\"account_id\",\"password\":\"<zonepassword>\",\"country\":\"us\",\"state\":\"ny\",\"city\":\"New York\"}}"
Sample response:
{"port":24000,"zone":"YOUR_ZONE","customer":"YOUR_CUSTOMER_ID","password":"PASSWORD", "country":"us","state":"ny","city":"New York",