选择国家

了解如何定位特定代理位置以及如何使用轮换逻辑。

如果您想访问来自特定位置的 IP,您必须在用户名中提供一个 country – 参数,该参数在用户名中使用两个字母的国家代码。下面是 country 参数的示例。例如,如果您想使用美国的国家参数,请添加 country-US.

在下表中查找受支持国家的完整列表。

按单个 IP 的数据中心受支持国家列表
国家
国家代码

Argentina

country-AR

Australia

country-AU

Austria

country-AT

Belgium

country-BE

Brazil

country-BR

Canada

country-CA

Chile

country-CL

China

country-CN

Colombia

country-CO

Czech Republic

country-CZ

Denmark

country-DK

France

country-FR

Germany

country-DE

India

country-IN

Indonesia

country-ID

Ireland

country-IE

Italy

country-IT

Japan

country-JP

Mexico

country-MX

Netherlands

country-NL

Peru

country-PE

Poland

country-PL

Portugal

country-PT

Romania

country-RO

Singapore

country-SG

Slovakia

country-SK

Spain

country-ES

United Arab Emirates

country-AE

United Kingdom

country-GB

United States

country-US

按流量的数据中心受支持国家列表
国家
国家代码

Argentina

country-AR

Australia

country-AU

Austria

country-AT

Belgium

country-BE

Brazil

country-BR

Canada

country-CA

Chile

country-CL

China

country-CN

Croatia

country-HR

Colombia

country-CO

Denmark

country-DK

Estonia

country-EE

France

country-FR

Germany

country-DE

Greece

country-GR

Hungary

country-HU

India

country-IN

Indonesia

country-ID

Ireland

country-IE

Italy

country-IT

Japan

country-JP

Latvia

country-LV

Lithuania

country-LT

Mexico

country-MX

Netherlands

country-NL

Norway

country-NO

Peru

country-PE

Poland

country-PL

Portugal

country-PT

Romania

country-RO

Singapore

country-SG

Slovakia

country-SK

Slovenia

country-SI

South Korea

country-KR

Spain

country-ES

Sweden

country-SE

Switzerland

country-CH

United Kingdom

country-GB

United States

country-US

例如,如果您只想轮换美国代理池,请在用户名中将 rotating port 8000 与一个参数一起使用 country-US

curl -x dc.oxylabs.io:8000 -U 'user-USERNAME-country-US:PASSWORD' https://ip.oxylabs.io/location

代码示例

curl -x dc.oxylabs.io:8000 -U 'user-USERNAME-country-COUNTRY:PASSWORD' https://ip.oxylabs.io/location

订阅方式之间的差异

按单个 IP 的数据中心 提供 rotating port 和 country 参数的用户将会从其代理列表中收到来自所选国家的 随机 IP 每次新请求时。 按流量的数据中心 提供 rotating port 和 country 参数的用户将会从整个代理池中收到来自所选国家的 随机 IP。

我们使用 MaxMind GeoIP2 数据库来确定 IP 的位置。

最后更新于

这有帮助吗?