Documentation has been updated: see help center and changelog in one place.

选择国家

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

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

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

阿根廷

country-AR

澳大利亚

country-AU

奥地利

country-AT

比利时

country-BE

巴西

country-BR

加拿大

country-CA

智利

country-CL

中国

country-CN

哥伦比亚

country-CO

捷克共和国

country-CZ

丹麦

country-DK

法国

country-FR

德国

country-DE

印度

country-IN

印度尼西亚

country-ID

爱尔兰

country-IE

意大利

country-IT

日本

country-JP

墨西哥

country-MX

荷兰

country-NL

秘鲁

country-PE

波兰

country-PL

葡萄牙

country-PT

罗马尼亚

country-RO

新加坡

country-SG

斯洛伐克

country-SK

西班牙

country-ES

阿拉伯联合酋长国

country-AE

英国

country-GB

美国

country-US

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

阿根廷

country-AR

澳大利亚

country-AU

奥地利

country-AT

比利时

country-BE

巴西

country-BR

加拿大

country-CA

智利

country-CL

中国

country-CN

克罗地亚

country-HR

哥伦比亚

country-CO

丹麦

country-DK

爱沙尼亚

country-EE

法国

country-FR

德国

country-DE

希腊

country-GR

匈牙利

country-HU

印度

country-IN

印度尼西亚

country-ID

爱尔兰

country-IE

意大利

country-IT

日本

country-JP

拉脱维亚

country-LV

立陶宛

country-LT

墨西哥

country-MX

荷兰

country-NL

挪威

country-NO

秘鲁

country-PE

波兰

country-PL

葡萄牙

country-PT

罗马尼亚

country-RO

新加坡

country-SG

斯洛伐克

country-SK

斯洛文尼亚

country-SI

韩国

country-KR

西班牙

country-ES

瑞典

country-SE

瑞士

country-CH

英国

country-GB

美国

country-US

例如,如果您只想轮换美国代理池,请与轮换端口一起使用 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 的数据中心 提供轮换端口和 国家 参数的用户将接收一个 来自其代理列表中所选国家的随机 IP 用于每个新请求。 按流量的数据中心 提供轮换端口和 国家 参数的用户将从整个代理池接收 来自所选国家的随机 IP。

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

最后更新于

这有帮助吗?