Oxylabs Documentation
English
Search…
⌃K

Select Country

Oxylabs Shared Datacenter Proxies currently offer fifteen different countries to choose from. A random country-specific proxy entry point returns new IP with every new request.
These are the available countries to choose from:
USA dc.us-pr.oxylabs.io:30000
Germany dc.de-pr.oxylabs.io:40000
France dc.fr-pr.oxylabs.io:42000
Netherlands dc.nl-pr.oxylabs.io:44000
United Kingdom dc.gb-pr.oxylabs.io:46000
Romania dc.ro-pr.oxylabs.io:48000
Mexico dc.mx-pr.oxylabs.io:32000
Canada dc.ca-pr.oxylabs.io:34000
Japan dc.jp-pr.oxylabs.io:12000
South Korea dc.kr-pr.oxylabs.io:14000
Hong Kong dc.hk-pr.oxylabs.io:16000
Taiwan dc.tw-pr.oxylabs.io:18000
Vietnam dc.vn-pr.oxylabs.io:20000
Thailand dc.th-pr.oxylabs.io:22000
Malaysia dc.my-pr.oxylabs.io:24000

Code examples

In this example, a query to ip.oxylabs.io is performed from a random IP address in Germany:
cURL
PHP
Python
Java
C#
Ruby
curl -x dc.de-pr.oxylabs.io:40000 -U "customer-USERNAME:PASSWORD" https://ip.oxylabs.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'dc.de-pr.oxylabs.io:40000';
$query = curl_init('https://ip.oxylabs.io');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
echo $output;
?>
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD'
entry = ('http://customer-%s:%[email protected]:40000' %
(username, password))
query = urllib.request.ProxyHandler({
'http': entry,
'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ip.oxylabs.io').read())
package example;
import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;
public class Example {
public static void main(String[] args) throws Exception {
HttpHost entry = new HttpHost("dc.de-pr.oxylabs.io", 40000);
String query = Executor.newInstance()
.auth(entry, "customer-USERNAME", "PASS")
.execute(Request.Get("https://ip.oxylabs.io").viaProxy(entry))
.returnContent().asString();
System.out.println(query);
}
}
using System;
using System.Net;
class Example
{
static void Main()
{
var client = new WebClient();
client.Proxy = new WebProxy("dc.de-pr.oxylabs.io:40000");
client.Proxy.Credentials = new NetworkCredential("customer-USERNAME", "PASSWORD");
Console.WriteLine(client.DownloadString("https://ip.oxylabs.io"));
}
}
require 'uri'
require 'net/http'
uri = URI.parse('https://ip.oxylabs.io/')
proxy = Net::HTTP::Proxy('dc.de-pr.oxylabs.io', 40000, 'customer-USERNAME', 'PASSWORD')
req = Net::HTTP::Get.new(uri.path)
result = proxy.start(uri.host,uri.port) do |http|
http.request(req)
end
puts result.body

Available entry points

dc.pr.oxylabs.io:10000
dc.jp-pr.oxylabs.io:12000
dc.kr-pr.oxylabs.io:14000
dc.hk-pr.oxylabs.io:16000
dc.tw-pr.oxylabs.io:18000
dc.vn-pr.oxylabs.io:20000
dc.th-pr.oxylabs.io:22000
dc.my-pr.oxylabs.io:24000
dc.us-pr.oxylabs.io:30000
dc.mx-pr.oxylabs.io:32000
dc.ca-pr.oxylabs.io:34000
dc.de-pr.oxylabs.io:40000
dc.fr-pr.oxylabs.io:42000
dc.nl-pr.oxylabs.io:44000
dc.gb-pr.oxylabs.io:46000
dc.ro-pr.oxylabs.io:48000