Oxylabs Documentation
English
Search
K

Sticky Proxy Entry Nodes

The country-specific sticky proxy entry point will return the same IP with every new request while you use the same port. IP stickiness works for up to 5 hours. After that, the IP is replaced with a new one.
You do not need to pass any additional parameters, just customer-username:password. Country-specific ports do not support city-level results.
Available sticky entry points - rotating ISP.txt
586B
Text
Random pr.oxylabs.io:10000 - 49999
Belgium be-pr.oxylabs.io:30001 - 39999
Brazil br-pr.oxylabs.io:20001 - 29999
Bulgaria bg-pr.oxylabs.io:14001 - 14999
Canada ca-pr.oxylabs.io:30001 - 39999
Colombia co-pr.oxylabs.io:30001 - 39999
Germany de-pr.oxylabs.io:30001 - 39999
Hungary hu-pr.oxylabs.io:23001 - 23999
Italy it-pr.oxylabs.io:20001 - 29999
Japan jp-pr.oxylabs.io:40001 - 49999
Liechtenstein li-pr.oxylabs.io:27001 - 27999
Lithuania lt-pr.oxylabs.io:28001 - 28999
Netherlands nl-pr.oxylabs.io:20001 - 29999
Norway no-pr.oxylabs.io:34001 - 34999
Romania ro-pr.oxylabs.io:35001 - 35999
Spain es-pr.oxylabs.io:10001 - 19999
Thailand th-pr.oxylabs.io:20001 - 29999
Great Britain gb-pr.oxylabs.io:20001 - 29999
US us-pr.oxylabs.io:10001 - 19999
Vietnam
vn-pr.oxylabs.io:45001:45999

Code examples

In this example, we run a query from a Thailand IP to ip.oxylabs.io. The same IP will stay for up to 10 minutes. We have chosen port 30001. However, Thailand's sticky entry points cover ports from 20001 to 29999.
cURL
PHP
Python
Java
C#
Ruby
curl -x th-pr.oxylabs.io:20001 -U "customer-USERNAME:PASSWORD" https://ip.oxylabs.io/location
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'th-pr.oxylabs.io:20001';
$query = curl_init('https://ip.oxylabs.io/location');
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]:20001' %
(username, password))
query = urllib.request.ProxyHandler({
'http': entry,
'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ip.oxylabs.io/location').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("th-pr.oxylabs.io", 20001);
String query = Executor.newInstance()
.auth(entry, "customer-USERNAME", "PASS")
.execute(Request.Get("http://ip.oxylabs.io/location").viaProxy(entry))
.returnContent().asString();
System.out.println(query);
}
}
using System;
using System;
using System.Net;
class Example
{
static void Main()
{
var client = new WebClient();
client.Proxy = new WebProxy("th-pr.oxylabs.io:20001");
client.Proxy.Credentials = new NetworkCredential("customer-USERNAME", "PASSWORD");
Console.WriteLine(client.DownloadString("https://ip.oxylabs.io/location"));
}
}
require 'uri'
require 'net/http'
uri = URI.parse('https://ip.oxylabs.io/location')
proxy = Net::HTTP::Proxy('th-pr.oxylabs.io', 20001, '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 sticky entry points
pr.oxylabs.io:10000 - 49999
be-pr.oxylabs.io:30001 - 39999
br-pr.oxylabs.io:20001 - 29999
bg-pr.oxylabs.io:14001 - 14999
ca-pr.oxylabs.io:30001 - 39999
co-pr.oxylabs.io:30001 - 39999
de-pr.oxylabs.io:30001 - 39999
hu-pr.oxylabs.io:23001 - 23999
it-pr.oxylabs.io:20001 - 29999
jp-pr.oxylabs.io:40001 - 49999
li-pr.oxylabs.io:27001 - 27999
lt-pr.oxylabs.io:28001 - 28999
nl-pr.oxylabs.io:20001 - 29999
no-pr.oxylabs.io:34001 - 34999
ro-pr.oxylabs.io:35001 - 35999
es-pr.oxylabs.io:10001 - 19999
th-pr.oxylabs.io:20001 - 29999
gb-pr.oxylabs.io:20001 - 29999
us-pr.oxylabs.io:10001 - 19999
vn-pr.oxylabs.io:45001 - 45999