Getting Started

To use our API you need an account on CreateProxy.com, to Register visit this link.
Once you are registered, login to Create Proxy Manager and click on Profile where you can find your API key which is required for all API methods.
We have created examples in some mayor programming languages, but you can use any programming language to use our API, just convert our code and make sure that you use $_POST method.

#1 Get Profiles method

Before you start creating Proxy Servers you need to know Profile ID, this can be easly found in CreateProxy Manager->My Profiles, but If you want you can call API to GET list of all your active profiles.

Remember!

Profiles cannot be created via API, to Add Profiles you have to visit CreateProxy Manager and select provider you want to Add Profile(s) for, once you have profiles this method will return them.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "get_profiles";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your accounts array is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "get_profiles";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}

#2.1 Create Google Cloud Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) on Google Cloud.

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

For Google Cloud we are offering additional security option, you can restrict access to this Proxy Server on IP address - so only access from specific IP will be allowed - in this case squid PASSWORD and USERNAME will be ignored and you do not need to pass this variables in your request.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

Google Cloud available zones

For this method is required to pass ZONE variable, please select datacenter zone where you want to deploy your Google Cloud servers.


[
'region' => 'us-east1',
'location' => 'Moncks Corner, South Carolina, USA',
'zones' => ['us-east1-b', 'us-east1-c', 'us-east1-d']
],
[
'region' => 'us-east4',
'location' => 'Ashburn, Virginia, USA',
'zones' => ['us-east4-a', 'us-east4-b', 'us-east4-c' ]
],
[
'region' => 'us-west1',
'location' => 'The Dalles, Oregon, USA',
'zones' => ['us-west1-a', 'us-west1-b', 'us-west1-c']
],
[
'region' => 'us-west2',
'location' => 'Los Angeles, California, USA',
'zones' => ['us-west2-a', 'us-west2-b', 'us-west2-c']
],
[
'region' => 'us-central1',
'location' => 'Council Bluffs, Iowa, USA',
'zones' => ['us-central1-a', 'us-central1-b', 'us-central1-c', 'us-central1-f']
],
[
'region' => 'southamerica-east1',
'location' => 'São Paulo, Brazil',
'zones' => ['southamerica-east1-a', 'southamerica-east1-b', 'southamerica-east1-c']
],
[
'region' => 'northamerica-northeast1',
'location' => 'Montréal, Canada',
'zones' => ['northamerica-northeast1-a', 'northamerica-northeast1-b', 'northamerica-northeast1-c']
],
[
'region' => 'europe-west1',
'location' => 'St. Ghislain, Belgium',
'zones' => ['europe-west1-b', 'europe-west1-c', 'europe-west1-d']
],
[
'region' => 'europe-west2',
'location' => 'London, U.K',
'zones' => ['europe-west2-a', 'europe-west2-b', 'europe-west2-c']
],
[
'region' => 'europe-west3',
'location' => 'Frankfurt, Germany',
'zones' => ['europe-west3-a', 'europe-west3-b', 'europe-west3-c']
],
[
'region' => 'europe-west4',
'location' => 'Eemshaven, Netherlands',
'zones' => ['europe-west4-a', 'europe-west4-b', 'europe-west4-c']
],
[
'region' => 'europe-north1',
'location' => 'Hamina, Finland',
'zones' => ['europe-north1-a', 'europe-north1-b', 'europe-north1-c']
],
[
'region' => 'asia-east1',
'location' => 'Changhua County, Taiwan',
'zones' => ['asia-east1-a', 'asia-east1-b', 'asia-east1-c']
],
[
'region' => 'asia-northeast1',
'location' => 'Tokyo, Japan',
'zones' => ['asia-northeast1-a', 'asia-northeast1-b', 'asia-northeast1-c']
],
[
'region' => 'asia-south1',
'location' => 'Mumbai, India',
'zones' => ['asia-south1-a', 'asia-south1-b', 'asia-south1-c']
],
[
'region' => 'asia-southeast1',
'location' => 'Jurong West, Singapore',
'zones' => ['asia-southeast1-a', 'asia-southeast1-b', 'asia-southeast1-c']
],
[
'region' => 'asia-east2',
'location' => 'Hong Kong',
'zones' => ['asia-east2-a', 'asia-east2-b', 'asia-east2-c']
],
[
'region' => 'australia-southeast1',
'location' => 'Sydney, Australia',
'zones' => ['australia-southeast1-a', 'australia-southeast1-b', 'australia-southeast1-c']
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_google";
$profile_id = "YOUR-PROFILE-ID";
$zone_id = "europe-west3-b"; // -> Frankfurt, Germany to list all google zones visit https://cloud.google.com/compute/docs/regions-zones/
$machine_name = "f1-micro"; // to list all machines available visit https://cloud.google.com/compute/docs/machine-types
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
$restriction = "YOUR-IP-TO-ALLOW-ACCESS"; // leave blank or remove to use SQUID USERNAME and SQUID PASSWORD for security
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$zone_id&instance=$machine_name&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping&restrictions=$restriction";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


Usefull links

#2.2 Create Amazon AWS Cloud Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) on Amazon AWS.

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

For Amazon AWS we are offering additional security option, you can restrict access to this Proxy Server on IP address - so only access from specific IP will be allowed - in this case squid PASSWORD and USERNAME will be ignored and you do not need to pass this variables in your request.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

Amazon AWS available regions

For this method is required to pass REGION variable, please select datacenter where you want to deploy your Amazon AWS servers.

[
'region_api_id' => '0',
'region' => 'us-east-1',
'location' => 'US East (N. Virginia)'
],
[
'region_api_id' => '1',
'region' => 'us-east-2',
'location' => 'US East (Ohio)'
],
[
'region_api_id' => '2',
'region' => 'us-west-1',
'location' => 'US West (N. California)'
],
[
'region_api_id' => '3',
'region' => 'us-west-2',
'location' => 'US West (Oregon)'
],
[
'region_api_id' => '4',
'region' => 'ca-central-1',
'location' => 'Canada (Central)'
],
[
'region_api_id' => '5',
'region' => 'eu-west-1',
'location' => 'EU (Ireland)'
],
[
'region_api_id' => '6',
'region' => 'eu-central-1',
'location' => 'EU (Frankfurt)'
],
[
'region_api_id' => '7',
'region' => 'eu-west-2',
'location' => 'EU (London)'
],
[
'region_api_id' => '8',
'region' => 'eu-west-3',
'location' => 'EU (Paris)'
],
[
'region_api_id' => '9',
'region' => 'ap-south-1',
'location' => 'Asia Pacific (Mumbai)'
],
[
'region_api_id' => '10',
'region' => 'ap-northeast-2',
'location' => 'Asia Pacific (Seoul)'
],
[
'region_api_id' => '11',
'region' => 'ap-southeast-1',
'location' => 'Asia Pacific (Singapore)'
],
[
'region_api_id' => '12',
'region' => 'ap-southeast-2',
'location' => 'Asia Pacific (Sydney)'
],
[
'region_api_id' => '13',
'region' => 'ap-northeast-1',
'location' => 'Asia Pacific (Tokyo)'
],
[
'region_api_id' => '14',
'region' => 'sa-east-1',
'location' => 'South America (São Paulo)'
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_amazon";
$profile_id = "YOUR-PROFILE-ID";
$region_api_id = "4"; // -> mean Canada (Central) - to view list of a available regions visit https://createproxy.com/api/#amazonaws
$instance = "t2.nano"; // to list all instances available visit https://aws.amazon.com/ec2/instance-types/
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
$restriction = "YOUR-IP-TO-ALLOW-ACCESS"; // leave blank or remove to use SQUID USERNAME and SQUID PASSWORD for security
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$region_api_id&instance=$instance&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping&restrictions=$restriction";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


Usefull links

#2.3 Create DigitalOcean Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) on Digital Ocean.

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

Digital Ocean available regions and available instance sizes

Please note that API will verify if selected combination INSTANCE and REGION exist, because this data in documentation are not updated!

NOTE: If you are getting error, you can always login to CreateProxy Manager->Create DigitalOcean and check ID for regions by selection!

[
    {
	"region_api_id": "0",
        "slug": "nyc1",
        "name": "New York 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "1",
        "slug": "sgp1",
        "name": "Singapore 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-16gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb",
            "gd-2vcpu-8gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "2",
        "slug": "lon1",
        "name": "London 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "3",
        "slug": "nyc3",
        "name": "New York 3",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb",
            "gd-2vcpu-8gb",
            "m-2vcpu-16gb",
            "m3-2vcpu-16gb",
            "m6-2vcpu-16gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "4",
        "slug": "ams3",
        "name": "Amsterdam 3",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb",
            "gd-2vcpu-8gb",
            "m-2vcpu-16gb",
            "m3-2vcpu-16gb",
            "m6-2vcpu-16gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "5",
        "slug": "fra1",
        "name": "Frankfurt 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb",
            "gd-2vcpu-8gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "6",
        "slug": "tor1",
        "name": "Toronto 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "7",
        "slug": "sfo2",
        "name": "San Francisco 2",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb",
            "g-2vcpu-8gb",
            "gd-2vcpu-8gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    },
    {
	"region_api_id": "8",
        "slug": "blr1",
        "name": "Bangalore 1",
        "sizes": [
            "32gb",
            "16gb",
            "2gb",
            "1gb",
            "4gb",
            "8gb",
            "512mb",
            "64gb",
            "48gb",
            "s-1vcpu-3gb",
            "c-2",
            "c-4",
            "m-1vcpu-8gb",
            "m-16gb",
            "m-32gb",
            "m-64gb",
            "m-128gb",
            "m-224gb",
            "s-1vcpu-1gb",
            "s-1vcpu-2gb",
            "s-2vcpu-2gb",
            "s-3vcpu-1gb",
            "s-2vcpu-4gb",
            "s-4vcpu-8gb",
            "s-6vcpu-16gb",
            "s-8vcpu-32gb",
            "s-12vcpu-48gb",
            "s-16vcpu-64gb",
            "s-20vcpu-96gb",
            "s-24vcpu-128gb",
            "s-32vcpu-192gb"
        ],
        "available": true,
        "features": [
            "private_networking",
            "backups",
            "ipv6",
            "metadata",
            "install_agent",
            "storage",
            "image_transfer"
        ]
    }
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_digitalocean";
$profile_id = "YOUR-PROFILE-ID";
$region_api_id = "7"; // -> San Francisco 2 to view list of regions visit https://createproxy.com/api/#digitalocean
$instance_size = "512mb"; // to view list of instance sizes visit https://createproxy.com/api/#digitalocean
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$region_api_id&instance=$instance_size&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


#2.4 Create 100tb Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) by 100TB.com.

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

100TB regions:
[
    {
        "id": "3",
        "title": "Salt Lake City - H, US"
    },
    {
        "id": "4",
        "title": "London - M, UK"
    },
    {
        "id": "5",
        "title": "Los Angeles - A, US"
    },
    {
        "id": "6",
        "title": "Salt Lake City - K, US"
    },
    {
        "id": "7",
        "title": "Toronto - A, CA"
    },
    {
        "id": "8",
        "title": "Amsterdam - B, NL"
    },
    {
        "id": "9",
        "title": "London - P, UK"
    },
    {
        "id": "10",
        "title": "Miami - A, US"
    },
    {
        "id": "11",
        "title": "Chicago - C, US"
    },
    {
        "id": "12",
        "title": "Dallas - B, US"
    },
    {
        "id": "13",
        "title": "Vancouver - A, CA"
    },
    {
        "id": "14",
        "title": "London - R, UK"
    },
    {
        "id": "15",
        "title": "London - K, UK"
    },
    {
        "id": "16",
        "title": "Phoenix - A, US"
    },
    {
        "id": "17",
        "title": "Seattle - B, US"
    },
    {
        "id": "18",
        "title": "Atlanta - G, US"
    },
    {
        "id": "19",
        "title": "London - Q, UK"
    },
    {
        "id": "20",
        "title": "New York City - C, US"
    }
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_100TB";
$profile_id = "YOUR-PROFILE-ID";
$region = "16"; // PHOENIX - change ID if you want use different datacenter
$plan_id = "2446"; // do not change unless you know what you are doing (2446 ID of not public cheapest plan)
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$region&instance=$plan_id&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


#2.5 Create Rackspace Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) by Rackspace.com.

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

Rackspace regions:
[
    {
	"region_api_id": "0",
        "region": "DFW",
        "name": "Dallas-Fort Worth, TX, US (DFW)"
    },
    {
	"region_api_id": "1",
        "region": "IAD",
        "name": "Northern Virginia, US (IAD)"
    },
    {
	"region_api_id": "2",
        "region": "ORD",
        "name": "Chicago, US (ORD)"
    },
    {
	"region_api_id": "3",
        "region": "HKG",
        "name": "Hong Kong (HKG)"
    },
    {
	"region_api_id": "4",
        "region": "SYD",
        "name": "Sydney, Australia (SYD)"
    }
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_rackspace";
$profile_id = "YOUR-PROFILE-ID";
$region_api_id = "2"; // Chicago - change ID if you want use different datacenter
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$region_api_id&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


#2.6 Create VULTR Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) by vultr.com

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

VULTR regions:
{
    "1": {
        "DCID": "1",
        "name": "New Jersey",
        "country": "US",
        "continent": "North America",
        "state": "NJ",
        "ddos_protection": true,
        "block_storage": true,
        "regioncode": "EWR"
    },
    "2": {
        "DCID": "2",
        "name": "Chicago",
        "country": "US",
        "continent": "North America",
        "state": "IL",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "ORD"
    },
    "3": {
        "DCID": "3",
        "name": "Dallas",
        "country": "US",
        "continent": "North America",
        "state": "TX",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "DFW"
    },
    "4": {
        "DCID": "4",
        "name": "Seattle",
        "country": "US",
        "continent": "North America",
        "state": "WA",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "SEA"
    },
    "5": {
        "DCID": "5",
        "name": "Los Angeles",
        "country": "US",
        "continent": "North America",
        "state": "CA",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "LAX"
    },
    "6": {
        "DCID": "6",
        "name": "Atlanta",
        "country": "US",
        "continent": "North America",
        "state": "GA",
        "ddos_protection": false,
        "block_storage": false,
        "regioncode": "ATL"
    },
    "7": {
        "DCID": "7",
        "name": "Amsterdam",
        "country": "NL",
        "continent": "Europe",
        "state": "",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "AMS"
    },
    "8": {
        "DCID": "8",
        "name": "London",
        "country": "GB",
        "continent": "Europe",
        "state": "",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "LHR"
    },
    "9": {
        "DCID": "9",
        "name": "Frankfurt",
        "country": "DE",
        "continent": "Europe",
        "state": "",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "FRA"
    },
    "12": {
        "DCID": "12",
        "name": "Silicon Valley",
        "country": "US",
        "continent": "North America",
        "state": "CA",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "SJC"
    },
    "19": {
        "DCID": "19",
        "name": "Sydney",
        "country": "AU",
        "continent": "Australia",
        "state": "",
        "ddos_protection": false,
        "block_storage": false,
        "regioncode": "SYD"
    },
    "22": {
        "DCID": "22",
        "name": "Toronto",
        "country": "CA",
        "continent": "North America",
        "state": "",
        "ddos_protection": false,
        "block_storage": false,
        "regioncode": "YTO"
    },
    "24": {
        "DCID": "24",
        "name": "Paris",
        "country": "FR",
        "continent": "Europe",
        "state": "",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "CDG"
    },
    "25": {
        "DCID": "25",
        "name": "Tokyo",
        "country": "JP",
        "continent": "Asia",
        "state": "",
        "ddos_protection": false,
        "block_storage": false,
        "regioncode": "NRT"
    },
    "39": {
        "DCID": "39",
        "name": "Miami",
        "country": "US",
        "continent": "North America",
        "state": "FL",
        "ddos_protection": true,
        "block_storage": false,
        "regioncode": "MIA"
    },
    "40": {
        "DCID": "40",
        "name": "Singapore",
        "country": "SG",
        "continent": "Asia",
        "state": "",
        "ddos_protection": false,
        "block_storage": false,
        "regioncode": "SGP"
    }
}

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_vultr";
$profile_id = "YOUR-PROFILE-ID";
$DCID = "25"; // TOKYO - change ID if you want use different datacenter
$plan_id = "29"; // do not change unless you know what you are doing (29 = 512 MB RAM,10 GB SSD,0.50 TB BW (Cheapest)) - for more plans go to CreateProxy Manager
$num_proxies = "10"; // number of servers you want to create by this call

/* this fields are optional if not filled will be set default from your account */
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$DCID&instance=$plan_id&num_proxies=$num_proxies&ping=$ping";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


#2.6 Create Linode Proxy Servers

Once you know your API key and Profile ID you can send request to create Proxy Server(s) by linode.com

This method will create specific number of servers on specific machine in specific datacenter location, after that this API method will install operation system and squid proxy server on each of the server and also will setup PORT to listen requests from and squid PASSWORD and USERNAME for security.

Remember!

Once you create server, it always take from 2 - 10 minutes before your servers are installed and ready for use or when can be requested by Get Proxy List Method. If you want automate your tasks you can use $ping variable, where inserted URL will be automatically executed after all servers from this task will be ready for use.

Linode regions:

[
    {
	"region_api_id": "frankfurt",
    },
    {
	"region_api_id": "newark",
    },
    {
	"region_api_id": "singapore",
    },
    {
	"region_api_id": "fremont",
    },
    {
	"region_api_id": "mum1",
    }
	   {
	"region_api_id": "london",
    },
	   {
	"region_api_id": "shinagawa1",
    },
	   {
	"region_api_id": "tor1",
    },
	   {
	"region_api_id": "dallas",
    }
]

$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "create_linode";
$profile_id = "YOUR-PROFILE-ID";
$region_api_id = "dallas"; // Dallas - change ID if you want use different datacenter
$plan_id = "nanode1GB"; // -> for more plans go to CreateProxy Manager
$num_proxies = "10"; // number of servers you want to create by this call


/* this fields are optional if not filled will be set default from your account */
$port = "3128"; // use ports 500 to 10000 to be safe or leave blank for port 3128
$username = "YOUR-SQUID-USERNAME"; // don't use special chars or space or leave blank
$password = "YOUR-SQUID-PASSWORD"; // don't use special chars or space or leave blank
$ping = "YOUR-URL-TO-PING-ON-FINISH"; // after proxy servers will be ready we can ping your URL so we can execute next proccesses on your side automatically or leave blank
$restriction = "YOUR-IP-TO-ALLOW-ACCESS"; // for Linode you should specify also IP address from which you will use tho proxy
/* end optional fields */

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id&region=$region_api_id&instance=$plan_id&num_proxies=$num_proxies&port=$port&username=$username&password=$password&ping=$ping&restrictions=$restriction";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// $returndata will confirm that request has been proceed OR will return error with reason.
echo $returndata;


#3.1 Get list of your Proxy Servers

This method will give you list and login details for all your proxies, great for saving output to database or TXT file.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "get_proxies";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your accounts array is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "get_proxies";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}

#3.2 Get Random Single Proxy IP

This method will give you random Proxy IP from your Proxy Server list.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "get_proxy";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your accounts array is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "get_proxy";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}

#4.1 Delete All Proxy servers at once

This method will go through all your accounts and terminate all your servers one by one.

Important!

It is required by all Providers and also by us, you must always check in your provider account console, that all servers has been successfully terminated.
We are not resposible for any running servers and we have no access to your provider account to verify, that there are no servers RUNING.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "delete_all";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your accounts array is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "delete_all";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}

#4.2 Delete All Proxy servers by Profile ID

This method will terminate all your server created by single Profile ID. (So you can delete some servers -> keep running other servers and create new servers to get new fresh IP's)

Important!

It is required by all Providers and also by us, you must always check in your provider account console, that all servers has been successfully terminated.
We are not resposible for any running servers and we have no access to your provider account to verify, that there are no servers RUNING.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "delete_single";
$profile_id = "YOUR-PROFILE-ID";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&profile_id=$profile_id";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your accounts array is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "delete_single";
string profile_id = "YOUR-PROFILE-ID";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type"&profile_id=" + profile_id;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}

#4.2 Solve Captcha API

This method will solve any CAPTCHA, just send captcha URL image you need to solve and this API will return string to continue task.

Why CAPTCHA SOLVING API?

If your task facing to CAPTCHA verification and you ignore solving captcha image, then you probably get your Proxy IP banned.
So instead of running hundrets of Proxy Servers to avoid BAN you can instead solve captcha by passing your image URL to our API.


$api_url = "https://createproxy.com/apis";
$api_key = "YOUR-API-KEY";
$api_type = "solve_captcha";
$image_url = "https://mywebsite/uploads/mycaptchatosolve.jpg";

$cookie=tempnam("/tmp","CURLCOOKIE");
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
$ch = curl_init();

$data = "api_key=$api_key&api_type=$api_type&imageurl=$image_url";
curl_setopt($ch, CURLOPT_URL,"$api_url");
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch,CURLOPT_ENCODING,"gzip,deflate");
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*"));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_REFERER, "https://webm.cz");
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$data");
$returndata=curl_exec($ch);
$lastUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);

// your captcha key is now $returndata
print_r(json_decode($returndata,true));


using System;
using System.Diagnostics;
using System.Net;
using System.IO;

class Program
{
static void Main(string[] args)
{
string api_key = "YOUR-API-KEY";
string api_type = "solve_captcha";
string image_url = "https://mywebsite/uploads/mycaptchatosolve.jpg";
string serviceUri = "https://createproxy.com/apis";

string post_data = "api_key=" + api_key + "&api_type=" + api_type"&imageurl=" + image_url;

// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(serviceUri);
request.Method = "POST";

// turn our request string into a byte stream
byte[] postBytes = System.Text.Encoding.ASCII.GetBytes(post_data);

// this is important - make sure you specify type this way
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();

// now send it
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();

// grab te response and print it out to the console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.ReadLine();
}
}