Proxy Rotator - Optional
This service is optional and is not included in the subscription. Instead of connecting to individual IPs, we provide you with a single endpoint to your assigned proxy list. With every request, the endpoint fetches a different IP. Please see the example on the right to learn how to use the endpoint as a proxy.
Proxy Rotator should be used only with port 60000.

Code examples

cURL
PHP
Python
C#
curl -x vm.oxylabs.io:60000 -U user1:pass1 https://ip.oxylabs.io
<?php
$username = 'user1';
$password = 'pass1';
$proxy = 'http://vm.oxylabs.io:60000';
$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, "$username:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
echo $output;
?>
import requests
response = requests.get(
'https://ip.oxylabs.io',
proxies={'http': 'http://user1:[email protected]:60000',
'https: http://user1:[email protected]:60000'}
)
print(response.text)
using System;
using System.Net;
class Example
{
static void Main()
{
var client = new WebClient();
client.Proxy = new WebProxy("http://vm.oxylabs.io:60000");
client.Proxy.Credentials = new NetworkCredential("user1", "pass1");
Console.WriteLine(client.DownloadString("https://ip.oxylabs.io"));
}
}
Copy link