NAV Navbar
cURL PHP Python Java C# Ruby
住宅代理

入门指南

本地代理可进行数据收集,无 IP 限制,确保高度匿名性。您可以精确定位任何位置,使用搜索引擎获得精确的本地化数据和详细的运输信息等。

如果您有任何其他的疑问,请联系您的客户经理或我们的支持人员,邮箱为:support@oxylabs.io

如需获取您使用情况的统计数据、所产生的流量、请求计数等更多信息,请登录 https://residential.oxylabs.io。 您还可添加其他用户并单独跟踪他们的统计数据。

单点反向连接入口

pr.oxylabs.io:7777

单点反向连接代理可在用户名中的附加参数选择特定国家/地区或城市代理。该方法还支持会话控制。以下是一个示例凭证结构:

customer-USERNAME-cc-US-city-CITY-sessid-abcde12345:PASSWORD

参数 描述

客户 用户名
customer Username
cc 国家代码,不区分大小写,2 个字母 3166-1 alpha-2 格式
city 城市名称,不区分大小写(英语)。对于名称超过 2 个单词的城市,以 _ 代替空格,如 city-st_petersburgcity-rio_de_janeiro。您可以选择世界上的任何城市,但我们不保证所有城市都有代理。您需要自行提前了解。我们的服务已覆盖各大主要城市,提供多个代理可供选择。您将需要添加 cc 参数以提升准确度,例如 cc-GB-city-london 表示英国伦敦;cc-DE-city-berlin 表示德国柏林。
st 美国州名不区分大小写,以 us_ 开头,如 us_california、us_illinois。如要获取受支持城市完整列表(TXT 格式),请点击此处下载。
sessid 会话 ID 在接下来的查询中保留相同的 IP。会话在 10 分钟后过期,之后将为该 ID 分配一个新 IP。随机字符串;支持 0-9、A-z 字符。
password 密码

中国入口节点

https://a81298871.com:8000 - Hong Kong
https://cnt9t1is.com:8000 - Beijing

为了提高与中国的连接性,我们已在香港和北京地区配置了入口节点。请注意,该节点是一个 HTTPS 代理节点。所有的用户名参数都与常规入口节点相同。

请注意,一些第三方工具目前无法在香港和北京的入口节点上使用。目前,能在上述入口节点上使用的第三方工具有:

  1. Oxylabs Proxy Manager (网络代理管理器)
  2. SwitchyOmega
  3. Shadowrocket
  4. Postern

我们目前正在努力修复其余支持HTTPS协议的集成项目。

如果您正在从中国连接到我们的本地接入网络,在使用提供的入口节点时遇到了任何问题,请发送邮件至 support@oxylabs.io 联系我们,我们将共同努力解决问题。

基本查询

在以下示例中,从随机 IP 执行对 ipinfo.io 的查询:

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ipinfo.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:%s@pr.oxylabs.io:7777' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.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("pr.oxylabs.io", 7777);
        String query = Executor.newInstance()
            .auth(entry, "customer-USERNAME", "PASS")
            .execute(Request.Get("http://icanhazip.com").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("pr.oxylabs.io:7777");
        client.Proxy.Credentials = new NetworkCredential("customer-USERNAME", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('pr.oxylabs.io', 7777, '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

基本查询只需要传递 customerpassword。不需要其他任何参数。此类查询中,将请求设为从随机 IP 地址发出。

选择国家/地区

在以下示例中,从德国的一个随机 IP 地址执行对 ipinfo.io 的查询:

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$country = 'DE';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ipinfo.io');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username-cc-$country:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
    echo $output;
?>
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD'
country = 'DE'
entry = ('http://customer-%s-cc-%s:%s@pr.oxylabs.io:7777' %
    (username, country, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.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("pr.oxylabs.io", 7777);
        String query = Executor.newInstance()
            .auth(entry, "customer-USERNAME-cc-DE", "PASS")
            .execute(Request.Get("http://icanhazip.com").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("pr.oxylabs.io:7777");
        client.Proxy.Credentials = new NetworkCredential("customer-USERNAME-cc-DE", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('pr.oxylabs.io', 7777, 'customer-USERNAME-cc-DE', 'PASSWORD')

req = Net::HTTP::Get.new(uri.path)

result = proxy.start(uri.host,uri.port) do |http|
    http.request(req)
end

puts result.body

向授权头添加 cc 标志,可指定使用哪个国家/地区的 IP 处理请求。例如, cc-DE 表示将使用德国的代理处理该查询。请参阅示例了解详情。

选择城市

在以下示例中,从德国慕尼黑的一个随机 IP 地址执行对 ipinfo.io 的查询:

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE-city-munich:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$country = 'DE';
$city = 'munich';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ipinfo.io');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username-cc-$country-city-$city:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
    echo $output;
?>
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD'
country = 'DE'
city = 'munich'
entry = ('http://customer-%s-cc-%s-city-%s:%s@pr.oxylabs.io:7777' %
    (username, country, city, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.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("pr.oxylabs.io", 7777);
        String query = Executor.newInstance()
            .auth(entry, "customer-USERNAME-cc-DE-city-munich", "PASS")
            .execute(Request.Get("http://icanhazip.com").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("pr.oxylabs.io:7777");
        client.Proxy.Credentials = new NetworkCredential("customer-USERNAME-cc-DE-city-munich", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('pr.oxylabs.io', 7777, 'customer-USERNAME-cc-DE-city-munich', 'PASSWORD')

req = Net::HTTP::Get.new(uri.path)

result = proxy.start(uri.host,uri.port) do |http|
    http.request(req)
end

puts result.body

向授权头添加 city 参数,可指定使用哪个城市的 IP 处理请求。例如,添加 cc-DE-city-munich 表示将使用德国慕尼黑的代理处理该查询。如果所请求的城市中没有代理,系统将返回错误 502。我们支持全球所有城市,只需添加 cc 参数即可。

会话控制

第一个请求将选择德国 IP,后续的新查询保持相同的 IP(会话控制):

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE-sessid-abcde12345:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$country = 'DE';
$session = mt_rand();
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://ipinfo.io');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "customer-$username-cc-$country-sessid-$session:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
    echo $output;
?>
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD'
country = 'DE'
city = 'munich'
session = random.random()
entry = ('http://customer-%s-cc-%s-city-%s-sessid-%s:%s@pr.oxylabs.io:7777' %
    (username, country, city, session, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.io').read())
package example;

import java.io.*;
import java.util.Random;
import org.apache.http.HttpHost;
import org.apache.http.auth.*;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.fluent.Request;
import org.apache.http.client.methods.*;
import org.apache.http.impl.client.*;
import org.apache.http.impl.conn.BasicHttpClientConnectionManager;
import org.apache.http.util.EntityUtils;

class Client {
    public static final String username = "USERNAME";
    public static final String password = "PASSWORD";
    public String session_id = Integer.toString(new Random().nextInt(Integer.MAX_VALUE));
    public CloseableHttpClient client;

    public Client(String country) {
        String login = "customer-"+username+(country!=null ? "-cc-"+country : "")
            +"-sessid-" + session_id;
        HttpHost entry_node = new HttpHost("pr.oxylabs.io:7777");
        CredentialsProvider credentials_provider = new BasicCredentialsProvider();
        credentials_provider.setCredentials(new AuthScope(entry_node),
            new UsernamePasswordCredentials(login, password));
        client = HttpClients.custom()
            .setConnectionManager(new BasicHttpClientConnectionManager())
            .setProxy(entry_node)
            .setDefaultCredentialsProvider(credentials_provider)
            .build();
    }

    public String request(String url) throws IOException {
        HttpGet request = new HttpGet(url);
        CloseableHttpResponse response = client.execute(request);
        try {
            return EntityUtils.toString(response.getEntity());
        } finally { response.close(); }
    }

    public void close() throws IOException { client.close(); }
}

public class Example {
    public static void main(String[] args) throws IOException {
        Client client = new Client("de");
        try {
            System.out.println(client.request("https://ipinfo.io"));
        } finally { client.close(); }
    }
}
using System;
using System.Net;

class Client : WebClient
{
    public static string username = "USERNAME";
    public static string password = "PASSWORD";
    public string session_id = new Random().Next().ToString();

    public Client(string country_iso = null)
    {
        this.Proxy = new WebProxy("pr.oxylabs.io:7777");
        var login = "customer-"+username+(country_iso != null ? "-cc-"+country_iso : "")
            +"-sessid-"+session_id;
        this.Proxy.Credentials = new NetworkCredential(login, password);
    }

    protected override WebRequest GetWebRequest(Uri address)
    {
        var request = base.GetWebRequest(address) as HttpWebRequest;
        request.ConnectionGroupName = session_id;
        return request;
    }
}

class Example
{
    static void Main()
    {
        var client = new Client("de");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'
require 'net/https'

entry_node = 'pr.oxylabs.io'
entry_port = '7777'
username = 'USERNAME'
password = 'PASSWORD'
session_id = Random.rand(1000000)

uri = URI.parse("https://ipinfo.io/")
headers = {
    'Accept-Encoding' => 'gzip'
}

proxy = Net::HTTP::Proxy(entry_node, entry_port, "#{username}-cc-DE-sessid-#{session_id}", password)
http = proxy.new(uri.host,uri.port)

if uri.scheme == 'https'
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

req = Net::HTTP::Get.new(uri.path, headers)

result = http.start do |con|
    con.request(req)
end

puts result.body

添加 sessid 标志以启用会话控制。这表示在后续请求中,IP 不会改变。以下示例显示了会话控制的工作方式:

只要存在活动,系统就会保持将会话 ID 与相同 IP 关联。60 秒不活动后,该 IP 会自动更改。

标准会话时间为 10 分钟。时间可延长。请联系您的客户经理了解更多信息。

参数优先级

如果您在用户名中添加了多个参数,系统将忽略其他的所有参数,只有一个除外。因此,您必须要了解哪些参数要优先处理。层次结构如下:

  1. city
  2. state
  3. cc

例如,如果您的查询带有参数 customer-username-cc-US-city-paris-st-us_california,您将获得 美国巴黎 的代理。

具体国家/地区的入口

随机代理入口点

在以下示例中,从一个随机的土耳其 IP 执行对 ipinfo.io 的查询:

curl -x tr-pr.oxylabs.io:30000 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'tr-pr.oxylabs.io:30000';
$query = curl_init('https://ipinfo.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:%s@tr-pr.oxylabs.io:30000' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.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("tr-pr.oxylabs.io", 30000);
        String query = Executor.newInstance()
            .auth(entry, "customer-USERNAME", "PASS")
            .execute(Request.Get("http://icanhazip.com").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("tr-pr.oxylabs.io:30000");
        client.Proxy.Credentials = new NetworkCredential("customer-USERNAME", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
#!/usr/bin/ruby

require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('tr-pr.oxylabs.io', 30000, '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
pr.oxylabs.io:7777
us-pr.oxylabs.io:10000
ca-pr.oxylabs.io:30000
gb-pr.oxylabs.io:20000
de-pr.oxylabs.io:30000
fr-pr.oxylabs.io:40000
es-pr.oxylabs.io:10000
it-pr.oxylabs.io:20000
se-pr.oxylabs.io:30000
gr-pr.oxylabs.io:40000
pt-pr.oxylabs.io:10000
nl-pr.oxylabs.io:20000
be-pr.oxylabs.io:30000
ru-pr.oxylabs.io:40000
ua-pr.oxylabs.io:10000
pl-pr.oxylabs.io:20000
il-pr.oxylabs.io:20000
tr-pr.oxylabs.io:30000
au-pr.oxylabs.io:40000
my-pr.oxylabs.io:10000
th-pr.oxylabs.io:20000
kr-pr.oxylabs.io:30000
jp-pr.oxylabs.io:40000
ph-pr.oxylabs.io:10000
sg-pr.oxylabs.io:20000
cn-pr.oxylabs.io:30000
hk-pr.oxylabs.io:40000
tw-pr.oxylabs.io:10000
in-pr.oxylabs.io:20000
pk-pr.oxylabs.io:30000
ir-pr.oxylabs.io:40000
id-pr.oxylabs.io:10000
az-pr.oxylabs.io:20000
kz-pr.oxylabs.io:30000
ae-pr.oxylabs.io:40000
mx-pr.oxylabs.io:10000
br-pr.oxylabs.io:20000
ar-pr.oxylabs.io:30000
cl-pr.oxylabs.io:40000
pe-pr.oxylabs.io:10000
ec-pr.oxylabs.io:20000
co-pr.oxylabs.io:30000
za-pr.oxylabs.io:40000
eg-pr.oxylabs.io:10000
sa-pr.oxylabs.io:44000
dk-pr.oxylabs.io:19000
ao-pr.oxylabs.io:40000
cm-pr.oxylabs.io:41000
cf-pr.oxylabs.io:42000
td-pr.oxylabs.io:43000
bj-pr.oxylabs.io:44000
et-pr.oxylabs.io:45000
dj-pr.oxylabs.io:46000
gm-pr.oxylabs.io:47000
gh-pr.oxylabs.io:48000
ci-pr.oxylabs.io:49000
ke-pr.oxylabs.io:10000
lr-pr.oxylabs.io:11000
mg-pr.oxylabs.io:12000
ml-pr.oxylabs.io:13000
mr-pr.oxylabs.io:14000
mu-pr.oxylabs.io:15000
ma-pr.oxylabs.io:16000
mz-pr.oxylabs.io:17000
ng-pr.oxylabs.io:18000
sn-pr.oxylabs.io:19000
sc-pr.oxylabs.io:20000
zw-pr.oxylabs.io:21000
ss-pr.oxylabs.io:22000
sd-pr.oxylabs.io:23000
tg-pr.oxylabs.io:24000
tn-pr.oxylabs.io:25000
ug-pr.oxylabs.io:26000
zm-pr.oxylabs.io:27000
af-pr.oxylabs.io:28000
bh-pr.oxylabs.io:29000
bd-pr.oxylabs.io:30000
am-pr.oxylabs.io:31000
bt-pr.oxylabs.io:32000
mm-pr.oxylabs.io:33000
kh-pr.oxylabs.io:34000
ge-pr.oxylabs.io:36000
iq-pr.oxylabs.io:37000
jo-pr.oxylabs.io:38000
lb-pr.oxylabs.io:39000
mv-pr.oxylabs.io:40000
mn-pr.oxylabs.io:41000
om-pr.oxylabs.io:42000
qa-pr.oxylabs.io:43000
sa-pr.oxylabs.io:44000
vn-pr.oxylabs.io:45000
tm-pr.oxylabs.io:46000
uz-pr.oxylabs.io:47000
ye-pr.oxylabs.io:48000
al-pr.oxylabs.io:49000
ad-pr.oxylabs.io:10000
at-pr.oxylabs.io:11000
ba-pr.oxylabs.io:13000
bg-pr.oxylabs.io:14000
by-pr.oxylabs.io:15000
hr-pr.oxylabs.io:16000
cy-pr.oxylabs.io:35000
cz-pr.oxylabs.io:18000
dk-pr.oxylabs.io:19000
ee-pr.oxylabs.io:20000
fi-pr.oxylabs.io:21000
hu-pr.oxylabs.io:23000
is-pr.oxylabs.io:24000
ie-pr.oxylabs.io:25000
lv-pr.oxylabs.io:26000
li-pr.oxylabs.io:27000
lt-pr.oxylabs.io:28000
lu-pr.oxylabs.io:29000
mt-pr.oxylabs.io:30000
mc-pr.oxylabs.io:31000
md-pr.oxylabs.io:32000
me-pr.oxylabs.io:33000
no-pr.oxylabs.io:34000
ro-pr.oxylabs.io:35000
rs-pr.oxylabs.io:36000
sk-pr.oxylabs.io:37000
si-pr.oxylabs.io:38000
ch-pr.oxylabs.io:39000
mk-pr.oxylabs.io:40000
bs-pr.oxylabs.io:41000
bz-pr.oxylabs.io:42000
vg-pr.oxylabs.io:43000
cr-pr.oxylabs.io:44000
cu-pr.oxylabs.io:45000
dm-pr.oxylabs.io:46000
ht-pr.oxylabs.io:47000
hn-pr.oxylabs.io:48000
jm-pr.oxylabs.io:49000
aw-pr.oxylabs.io:10000
pa-pr.oxylabs.io:11000
pr-pr.oxylabs.io:12000
tt-pr.oxylabs.io:13000
fj-pr.oxylabs.io:14000
nz-pr.oxylabs.io:15000
bo-pr.oxylabs.io:16000
py-pr.oxylabs.io:17000
uy-pr.oxylabs.io:18000
ve-pr.oxylabs.io:19000

Oxylabs 本地接入网几乎覆盖了全球所有国家/地区。具体国家/地区的随机代理入口点将为每个新请求返回新的 IP。

您无需传递任何其他参数,只需传递 customer-username:password 即可。如果您有白名单 IP,您无需传递登录凭证。具体国家/地区的入口不支持城市层面的结果。

请参见入口点信息的仪表板或点击此处下载 XLS 格式的随机入口点完整列表。

Random
pr.oxylabs.io:7777
USA
us-pr.oxylabs.io:10000
Canada
ca-pr.oxylabs.io:30000
GB
gb-pr.oxylabs.io:20000
Germany
de-pr.oxylabs.io:30000
France
fr-pr.oxylabs.io:40000
Spain
es-pr.oxylabs.io:10000
Italy
it-pr.oxylabs.io:20000
Sweden
se-pr.oxylabs.io:30000
Greece
gr-pr.oxylabs.io:40000
Portugal
pt-pr.oxylabs.io:10000
Netherlands
nl-pr.oxylabs.io:20000
Belgium
be-pr.oxylabs.io:30000
Russia
ru-pr.oxylabs.io:40000
Ukraine
ua-pr.oxylabs.io:10000
Poland
pl-pr.oxylabs.io:20000
Israel
il-pr.oxylabs.io:20000
Turkey
tr-pr.oxylabs.io:30000
Australia
au-pr.oxylabs.io:40000
Malaysia
my-pr.oxylabs.io:10000
Thailand
th-pr.oxylabs.io:20000
South Korea
kr-pr.oxylabs.io:30000
Japan
jp-pr.oxylabs.io:40000
Philippines
ph-pr.oxylabs.io:10000
Singapore
sg-pr.oxylabs.io:20000
China
cn-pr.oxylabs.io:30000
Hong Kong
hk-pr.oxylabs.io:40000
Taiwan
tw-pr.oxylabs.io:10000
India
in-pr.oxylabs.io:20000
Pakistan
pk-pr.oxylabs.io:30000
Iran
ir-pr.oxylabs.io:40000
Indonesia
id-pr.oxylabs.io:10000
Azerbaijan
az-pr.oxylabs.io:20000
Kazakhstan
kz-pr.oxylabs.io:30000
UAE
ae-pr.oxylabs.io:40000
Mexico
mx-pr.oxylabs.io:10000
Brazil
br-pr.oxylabs.io:20000
Argentina
ar-pr.oxylabs.io:30000
Chile
cl-pr.oxylabs.io:40000
Peru
pe-pr.oxylabs.io:10000
Ecuador
ec-pr.oxylabs.io:20000
Colombia
co-pr.oxylabs.io:30000
South Africa
za-pr.oxylabs.io:40000
Egypt
eg-pr.oxylabs.io:10000
Angola
ao-pr.oxylabs.io:40000
Cameroon
cm-pr.oxylabs.io:41000
Central African Republic
cf-pr.oxylabs.io:42000
Chad
td-pr.oxylabs.io:43000
Benin
bj-pr.oxylabs.io:44000
Ethiopia
et-pr.oxylabs.io:45000
Djibouti
dj-pr.oxylabs.io:46000
Gambia
gm-pr.oxylabs.io:47000
Ghana
gh-pr.oxylabs.io:48000
Côte d'Ivoire
ci-pr.oxylabs.io:49000
Kenya
ke-pr.oxylabs.io:10000
Liberia
lr-pr.oxylabs.io:11000
Madagascar
mg-pr.oxylabs.io:12000
Mali
ml-pr.oxylabs.io:13000
Mauritania
mr-pr.oxylabs.io:14000
Mauritius
mu-pr.oxylabs.io:15000
Morocco
ma-pr.oxylabs.io:16000
Mozambique
mz-pr.oxylabs.io:17000
Nigeria
ng-pr.oxylabs.io:18000
Senegal
sn-pr.oxylabs.io:19000
Seychelles
sc-pr.oxylabs.io:20000
Zimbabwe
zw-pr.oxylabs.io:21000
South Sudan
ss-pr.oxylabs.io:22000
Sudan
sd-pr.oxylabs.io:23000
Togo
tg-pr.oxylabs.io:24000
Tunisia
tn-pr.oxylabs.io:25000
Uganda
ug-pr.oxylabs.io:26000
Zambia
zm-pr.oxylabs.io:27000
Afghanistan
af-pr.oxylabs.io:28000
Bahrain
bh-pr.oxylabs.io:29000
Bangladesh
bd-pr.oxylabs.io:30000
Armenia
am-pr.oxylabs.io:31000
Bhutan
bt-pr.oxylabs.io:32000
Myanmar
mm-pr.oxylabs.io:33000
Cambodia
kh-pr.oxylabs.io:34000
Georgia
ge-pr.oxylabs.io:36000
Iraq
iq-pr.oxylabs.io:37000
Jordan
jo-pr.oxylabs.io:38000
Lebanon
lb-pr.oxylabs.io:39000
Maldives
mv-pr.oxylabs.io:40000
Mongolia
mn-pr.oxylabs.io:41000
Oman
om-pr.oxylabs.io:42000
Qatar
qa-pr.oxylabs.io:43000
Saudi Arabia
sa-pr.oxylabs.io:44000
Vietnam
vn-pr.oxylabs.io:45000
Turkmenistan
tm-pr.oxylabs.io:46000
Uzbekistan
uz-pr.oxylabs.io:47000
Yemen
ye-pr.oxylabs.io:48000
Albania
al-pr.oxylabs.io:49000
Andorra
ad-pr.oxylabs.io:10000
Austria
at-pr.oxylabs.io:11000
Bosnia and Herzegovina
ba-pr.oxylabs.io:13000
Bulgaria
bg-pr.oxylabs.io:14000
Belarus
by-pr.oxylabs.io:15000
Croatia
hr-pr.oxylabs.io:16000
Cyprus
cy-pr.oxylabs.io:35000
Czech Republic
cz-pr.oxylabs.io:18000
Denmark
dk-pr.oxylabs.io:19000
Estonia
ee-pr.oxylabs.io:20000
Finland
fi-pr.oxylabs.io:21000
Hungary
hu-pr.oxylabs.io:23000
Iceland
is-pr.oxylabs.io:24000
Ireland
ie-pr.oxylabs.io:25000
Latvia
lv-pr.oxylabs.io:26000
Liechtenstein
li-pr.oxylabs.io:27000
Lithuania
lt-pr.oxylabs.io:28000
Luxembourg
lu-pr.oxylabs.io:29000
Malta
mt-pr.oxylabs.io:30000
Monaco
mc-pr.oxylabs.io:31000
Moldova
md-pr.oxylabs.io:32000
Montenegro
me-pr.oxylabs.io:33000
Norway
no-pr.oxylabs.io:34000
Romania
ro-pr.oxylabs.io:35000
Serbia
rs-pr.oxylabs.io:36000
Slovakia
sk-pr.oxylabs.io:37000
Slovenia
si-pr.oxylabs.io:38000
Switzerland
ch-pr.oxylabs.io:39000
Macedonia
mk-pr.oxylabs.io:40000
Bahamas
bs-pr.oxylabs.io:41000
Belize
bz-pr.oxylabs.io:42000
British Virgin Islands
vg-pr.oxylabs.io:43000
Costa Rica
cr-pr.oxylabs.io:44000
Cuba
cu-pr.oxylabs.io:45000
Dominica
dm-pr.oxylabs.io:46000
Haiti
ht-pr.oxylabs.io:47000
Honduras
hn-pr.oxylabs.io:48000
Jamaica
jm-pr.oxylabs.io:49000
Aruba
aw-pr.oxylabs.io:10000
Panama
pa-pr.oxylabs.io:11000
Puerto Rico
pr-pr.oxylabs.io:12000
Trinidad and Tobago
tt-pr.oxylabs.io:13000
Fiji
fj-pr.oxylabs.io:14000
New Zealand
nz-pr.oxylabs.io:15000
Bolivia
bo-pr.oxylabs.io:16000
Paraguay
py-pr.oxylabs.io:17000
Uruguay
uy-pr.oxylabs.io:18000
Venezuela
ve-pr.oxylabs.io:19000

粘性代理入口点

在以下示例中,从土耳其 IP 执行对 ipinfo.io 的查询,每个请求的 IP 会保留 10 分钟。 我们选择了端口 30001,其实土耳其粘性入口点覆盖了端口 30001 - 39999。

curl -x tr-pr.oxylabs.io:30001 -U "customer-USERNAME:PASSWORD" https://ipinfo.io
<?php
$username = 'USERNAME';
$password = 'PASSWORD';
$proxy = 'tr-pr.oxylabs.io:30001';
$query = curl_init('https://ipinfo.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:%s@tr-pr.oxylabs.io:30001' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://ipinfo.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("tr-pr.oxylabs.io", 30001);
        String query = Executor.newInstance()
            .auth(entry, "customer-USERNAME", "PASS")
            .execute(Request.Get("http://icanhazip.com").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("tr-pr.oxylabs.io:30001");
        client.Proxy.Credentials = new NetworkCredential("customer-USERNAME", "PASSWORD");
        Console.WriteLine(client.DownloadString("https://ipinfo.io"));
    }
}
require 'uri'
require 'net/http'

uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('tr-pr.oxylabs.io', 30001, '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
pr.oxylabs.io:10000 - 49999
us-pr.oxylabs.io:10001 - 19999
ca-pr.oxylabs.io:30001 - 39999
gb-pr.oxylabs.io:20001 - 29999
de-pr.oxylabs.io:30001 - 39999
fr-pr.oxylabs.io:40001 - 49999
es-pr.oxylabs.io:10001 - 19999
it-pr.oxylabs.io:20001 - 29999
se-pr.oxylabs.io:30001 - 39999
gr-pr.oxylabs.io:40001 - 49999
pt-pr.oxylabs.io:10001 - 19999
nl-pr.oxylabs.io:20001 - 29999
be-pr.oxylabs.io:30001 - 39999
ru-pr.oxylabs.io:40001 - 49999
ua-pr.oxylabs.io:10001 - 19999
pl-pr.oxylabs.io:20001 - 29999
il-pr.oxylabs.io:20001 - 29999
tr-pr.oxylabs.io:30001 - 39999
au-pr.oxylabs.io:40001 - 49999
my-pr.oxylabs.io:10001 - 19999
th-pr.oxylabs.io:20001 - 29999
kr-pr.oxylabs.io:30001 - 39999
jp-pr.oxylabs.io:40001 - 49999
ph-pr.oxylabs.io:10001 - 19999
sg-pr.oxylabs.io:20001 - 29999
cn-pr.oxylabs.io:30001 - 39999
hk-pr.oxylabs.io:40001 - 49999
tw-pr.oxylabs.io:10001 - 19999
in-pr.oxylabs.io:20001 - 29999
pk-pr.oxylabs.io:30001 - 39999
ir-pr.oxylabs.io:40001 - 49999
id-pr.oxylabs.io:10001 - 19999
az-pr.oxylabs.io:20001 - 29999
kz-pr.oxylabs.io:30001 - 39999
ae-pr.oxylabs.io:40001 - 49999
mx-pr.oxylabs.io:10001 - 19999
br-pr.oxylabs.io:20001 - 29999
ar-pr.oxylabs.io:30001 - 39999
cl-pr.oxylabs.io:40001 - 49999
pe-pr.oxylabs.io:10001 - 19999
ec-pr.oxylabs.io:20001 - 29999
co-pr.oxylabs.io:30001 - 39999
za-pr.oxylabs.io:40001 - 49999
eg-pr.oxylabs.io:10001 - 19999
sa-pr.oxylabs.io:44001 - 44999
dk-pr.oxylabs.io:19001 - 19999

在您使用相同的端口时,具体国家/地区的粘性代理入口点将为每个新请求返回相同的 IP。IP 粘性持续时间为 10 分钟。之后,系统会将该 IP 替换为新的 IP。

您无需传递任何其他参数,只需传递 customer-username:password 即可。如果您有白名单 IP,无需传递登录凭证。具体国家/地区的入口不支持城市层面的结果。

请在仪表板中查看参见入口点信息,或点击此处下载 XLS 格式的粘性入口点完整列表。

Random
pr.oxylabs.io:10000 - 49999
USA
us-pr.oxylabs.io:10001 - 19999
Canada
ca-pr.oxylabs.io:30001 - 39999
Great Britain
gb-pr.oxylabs.io:20001 - 29999
Germany
de-pr.oxylabs.io:30001 - 39999
France
fr-pr.oxylabs.io:40001 - 49999
Spain
es-pr.oxylabs.io:10001 - 19999
Italy
it-pr.oxylabs.io:20001 - 29999
Sweden
se-pr.oxylabs.io:30001 - 39999
Greece
gr-pr.oxylabs.io:40001 - 49999
Portugal
pt-pr.oxylabs.io:10001 - 19999
Netherlands
nl-pr.oxylabs.io:20001 - 29999
Belgium
be-pr.oxylabs.io:30001 - 39999
Russia
ru-pr.oxylabs.io:40001 - 49999
Ukraine
ua-pr.oxylabs.io:10001 - 19999
Poland
pl-pr.oxylabs.io:20001 - 29999
Israel
il-pr.oxylabs.io:20001 - 29999
Turkey
tr-pr.oxylabs.io:30001 - 39999
Australia
au-pr.oxylabs.io:40001 - 49999
Malaysia
my-pr.oxylabs.io:10001 - 19999
Thailand
th-pr.oxylabs.io:20001 - 29999
South Korea
kr-pr.oxylabs.io:30001 - 39999
Japan
jp-pr.oxylabs.io:40001 - 49999
Philippines
ph-pr.oxylabs.io:10001 - 19999
Singapore
sg-pr.oxylabs.io:20001 - 29999
China
cn-pr.oxylabs.io:30001 - 39999
Hong Kong
hk-pr.oxylabs.io:40001 - 49999
Taiwan
tw-pr.oxylabs.io:10001 - 19999
India
in-pr.oxylabs.io:20001 - 29999
Pakistan
pk-pr.oxylabs.io:30001 - 39999
Iran
ir-pr.oxylabs.io:40001 - 49999
Indonesia
id-pr.oxylabs.io:10001 - 19999
Azerbaijan
az-pr.oxylabs.io:20001 - 29999
Kazakhstan
kz-pr.oxylabs.io:30001 - 39999
UAE
ae-pr.oxylabs.io:40001 - 49999
Mexico
mx-pr.oxylabs.io:10001 - 19999
Brazil
br-pr.oxylabs.io:20001 - 29999
Argentina
ar-pr.oxylabs.io:30001 - 39999
Chile
cl-pr.oxylabs.io:40001 - 49999
Peru
pe-pr.oxylabs.io:10001 - 19999
Ecuador
ec-pr.oxylabs.io:20001 - 29999
Colombia
co-pr.oxylabs.io:30001 - 39999
South Africa
za-pr.oxylabs.io:40001 - 49999
Egypt
eg-pr.oxylabs.io:10001 - 19999
Saudi Arabia
sa-pr.oxylabs.io:44001 - 44999
Denmark
dk-pr.oxylabs.io:19001 - 19999

资源

城市

我们支持全球所有城市。

US States

点击此处下载支持的美国各州名单(TXT 格式)。

响应代码

这些是您在使用我们的本地代理池时可能会收到的最常见响应代码。如果您收到了任何其他的响应代码,请联系您的专属客户经理获得更多信息。

响应 描述
400 Bad Request 如果请求中未包含要连接的主机,或解析 HTTP 请求时出现了通用错误,代理服务器会返回此错误代码。请确保您的请求格式正确,在请求中需要包含 URL 后再次尝试。
407 Proxy Authentication Required 请求缺少代理身份验证信息或者用户名或密码无效。您的请求中包含代理授权头,确保您的用户名和密码格式正确,然后再次尝试。
500 Internal Server Error 代理服务器出现内部错误。请稍后重试请求。
502 Bad Gateway 代理服务器收到上游服务器的无效响应。请重试请求。响应代码 502 显示分配给您的会话 ID 的 IP 不再可用。这个错误有两种解决方法。第一种方法是等待 1 分钟,系统将自动为您的会话 ID 分配新的 IP 地址。另一种方法切换到新的会话 ID(即更改 sessid 参数),这样您会收到一个新的 IP 地址。
522 Timeout 代理服务器没有及时收到上游服务器的响应。请重试请求。
525 No Exit Found 自定义 HTTP 状态代码,这表示代理无法找到可满足请求的退出节点。请更改请求筛选器参数或稍后再次尝试。

反向连接入口 IP

如果您打算使用自己的反向连接入口节点 DNS 名称,可以将您的子域/域指向我们的入口节点。为此,您需要添加一条 DNS CNAME 记录,以 pr.oxylabs.io 为目标。以 entry 子域的 Cloudflare DNS 管理器设置为例:

如需更多信息,请发送邮件至 support@oxylabs.io 或联系您的客户经理。

URL 受限

为避免滥用活动和不明活动,我们的本地代理网络对一些网站进行了限制。限制名单包括但不限于以下网站:所有 Google 域名网站,包括 Play、linkedin.com、sonyentertainmentnetwork.com;所有的 Apple 域名网站,包括 iTunes、discord.com、twitch.tv、neflix.com,以及其他网站等。

公共 API

本文件也提供了 OpenAPI 格式.

第三方插件

请注意,在访问中国入口节点时,您必须使用HTTPS协议,以使第三方工具正常运行。

Oxylabs Proxy Manager (网络代理管理器)

Oxylabs 网络代理管理器是一款适用于 Chrome 的网络代理管理扩展程序。该管理器不仅免费,而且还可以在您选择的任何网络代理上运行。无需通过设置和菜单选项即可启用您的网络代理。该扩展程序有一个附加功能,专门设计在 Oxylabs 住宅代理上使用,无需编辑您的用户名即可轻松改变 Oxylabs 住宅代理会话。此处下载 Chrome 网络商店扩展程序图标

此外,您还可以使用特定国家/地区的入口。例如,如果将 us-pr.oxylabs.io 放在 Proxy server IP(代理服务器 IP)下,并将 10001 放在端口下,您将收到带有粘滞会话(sticky session)的美国出口节点。

如果您已将自己的 IP 加入白名单,则可以跳过此步骤。

SwitchyOmega

SwitchyOmega 是一款功能强大且可靠的代理管理器,可在许多通用的浏览器上使用。根据 Oxylabs 多年经验,它是最好的代理插件之一。我们极力推荐在我们的代理服务器上使用 SwitchyOmega 。要这样做,首先,您需要获得这个插件。对于 Chrome,请单击此处,对于 Firefox,请单击此处。在您安装后,您应:

如果您已将自己的 IP 加入白名单,则无须执行此步骤。

Dianvs

Dianvs 是一个代理管理器,能在 Windows 和 iOS 上运行。首先,您需要下载 Dianvs。点击 此处下载 Dianvs。

安装 Dianvs 到您的计算机上后,按照以下步骤设置您的网络代理:

同意其服务协议后,按下红色按钮购买(可通过微信支付)

Shadowrocket

如果您想通过 Shadowrocket 使用我们的 Oxylabs 住宅代理,可以遵循下列指示轻松进行:

您也可以使用特定国家的入口。例如,如果将 us-pr.oxylabs.io 放在 Host (主机)下, 并将 10001 放在 Port (端口)下,您将收到带有粘滞会话的美国出口节点。

Proxifier

如果您想通过 Proxifier 使用我们的 Oxylabs 住宅代理,可以遵循下列简单指示进行:

您会看到提示窗,询问 if you want Proxifier to use this proxy by default (您是否希望 Proxifier 默认使用此代理)?这表示此设置将用于您所有的浏览器。这将由您自行决定。如果您选择 Yes,您就完成了设置。如果您只想对特定的浏览器使用代理,请遵循以下步骤。

Multilogin

功能强大的浏览器配合 Oxylabs 的代理可以实现更多操作。那么如何在 Multilogin 里配置 Oxylabs 代理呢? 设置很容易,下面小 Oxylabs 就来一步步给大家讲解。

Multilogin 通过不同的配置能实现更多不同用途的操作,也不仅仅用于以上的那些功能。如果对 Multilogin 或 Oxylabs 代理设置还有任何其他问题,欢迎大家在微信上留言,也可以点击阅读原文前往我们的网站查看更多相关信息和操作介绍。

Postern

Postern 是 Android 系统里一款非常流行的代理/ 虚拟专用网络管理程序,是一个 Android 下的全局代理工具,可以说是安卓版 surge,它可以添加规则,屏蔽广告。

Postern 支持的代理协议有: • SSH 隧道 • Shadowsocks • SOCKS5 代理 • HTTPS/HTTP CONNECT method 隧道 • gfw.press

您可以在 Google Play 商店里找到这款软件。下面就分步告诉大家 Postern 上配置住宅代理的方法:

您还可以使用特定国家入口。例如,如果在服务器地址下输入 us-pr.oxylabs.io, 服务器端口下输入 10001, 您将收到带有粘性会话的美国入口节点。

Postern 可以实现的功能远不止这些,除了 Postern 以外,还有很多更强大的工具。如果大家感兴趣,可以关注小 Oxy 的公众号,小 Oxy 会不定期的介绍一些实用的工具给大家。

GoLogin

GoLogin 是一款适用于 Windows、Linux 和 Mac 的多重登录浏览器管理应用程序。如欲下载 GoLogin,请点击此处访问官方网站。此处提供分步指南,说明如何在适用于 Windows 的 GoLogin 上配置住宅代理。

您也可以使用特定国家的入口。例如,如果将 us-pr.oxylabs.io 和 10001 放在 Proxy Host(代理主机)或 Port(端口)下,您将收到带有粘滞会话(sticky session)的美国出口节点。

Kameleo

Kameleo 是一款适用于 Windows 和 Android 的多重登录浏览器管理应用程序。如欲下载 Kameleo,请点击此处访问官方网站。此处提供分步指南,说明如何在适用于 Windows 的 Kameleo 上配置住宅代理。

在下面的窗口,在 Global proxy settings (全局代理设置)下输入所需的代理信息。在 Upstream Proxy Type (上行代理类型)选择 Http。接着,在 Proxy IP (代理 IP)或 hostname (主机名)中填入 pr.oxylabs.io。在 Proxy Port (代理端口)下输入 7777。最后,在 Username(用户名)和 Password (密码)下输入您的登录凭据。关闭窗口以保存设置

您也可以使用特定国家的入口。例如,如果将 us-pr.oxylabs.io 放在 Proxy IP (代理 IP)或 hostname (主机名)下,并将 10001 放在*代理端口下,您将收到带有粘滞会话 (sticky session) 的美国出口节点。

ClonBrowser

ClonBrowser 是另一款适用于 Windows 和 Mac 的多重登录浏览器管理应用程序。如欲下载 ClonBrowser,请点击此处访问官方网站。此处提供分步指南,说明如何在适用于 Windows 的 ClonBrowser 上配置住宅代理。

您也可以使用特定国家的入口。例如,如果将 us-pr.oxylabs.io 放在 Proxy IP(代理 IP)或 hostname(主机名)下,并将 10001 放在*代理端口下,您将收到带有粘滞会话(sticky session)的美国出口节点。

您可以通过单击 Connection test(连接测试)检查代理是否正常工作。如果一切正常,单击 Create profile(创建用户资料)。

AdsPower

AdsPower 是一款适用于 Windows 和 Android 的多重登录浏览器管理应用程序。如欲下载 AdsPower,请点击此处.访问官方网站。此处提供分步指南,说明如何在适用于 Windows 的 AdsPower 上配置住宅代理:

此外,您还可以使用特定国家/地区的入口。例如,如果将 u*s-pr.oxylabs.io* 放在 Proxy IP(代理 IP),并将 10001 放在 Proxy Port(代理端口)下,您将收到带有粘滞会话(sticky session)的美国出口节点。

您可以通过单击 Check Proxy(检查代理)来检查代理能否正常工作。如果一切正常,单击 Create profile(创建用户资料)。

VMLogin

Virtual Multi Login(即VMLogin)是一款创建虚拟浏览器配置文件的工具,能够帮助控制浏览器指纹、设置业务工作流和开发Web自动化等其他功能。要将VMLogin与Oxylabs住宅代理配合使用,请点击此处下载VMLogin的最新版本