> For the complete documentation index, see [llms.txt](https://docs.ipwo.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipwo.net/kai-fa-zhe-wen-dang/api-shi-yong-zhi-nan/guo-jia-di-qu-can-shu-shuo-ming.md).

# 国家地区参数说明

IPWO 支持通过 **国家/地区参数（Country / Zone）** 来指定代理出口 IP 的地理位置。开发者可以根据业务需求选择不同国家的住宅 IP，用于数据采集、账号运营、广告投放等场景。

***

### 一、什么是国家地区参数？

国家地区参数用于控制代理 IP 的出口位置。

简单理解：

```
US → 美国 IP
UK → 英国 IP
JP → 日本 IP
```

不同国家的 IP 会影响：

* 网站访问内容
* 广告展示区域
* 风控策略判断
* 账号注册成功率

***

### 二、如何指定国家地区？

IPWO 通过 **用户名中的 zone 标识** 或控制台配置来指定国家地区。

***

#### 示例（美国节点）

```
username_custom_zone_us
```

***

#### 示例（日本节点）

```
username_custom_zone_jp
```

***

#### 示例（英国节点）

```
username_custom_zone_uk
```

***

### 三、cURL 使用示例

```bash
curl -x http://us.ipwo.net:7878 \
-U username_custom_zone_us:password \
http://ipinfo.io
```

返回结果中可看到：

```json
{
  "ip": "203.0.113.10",
  "country": "US"
}
```

***

### 四、国家地区选择建议

#### 1. 按业务场景选择

| 业务场景                                                         | 推荐国家         |
| ------------------------------------------------------------ | ------------ |
| [TikTok 运营](/ying-yong-chang-jing/tiktok-yun-ying.md)        | US / UK / JP |
| [Facebook 广告](/ying-yong-chang-jing/facebook-guang-gao.md)   | US / UK      |
| [Amazon 店铺](/ying-yong-chang-jing/amazon-dian-pu-guan-li.md) | US / DE / UK |
| [Google SEO](/ying-yong-chang-jing/seo-jian-kong.md)         | US / IN / BR |
| [数据采集](/ying-yong-chang-jing/shu-ju-cai-ji.md)               | US / 全球轮换    |

***

#### 2. 按目标市场选择

原则：

```
访问哪个国家的用户 → 使用哪个国家 IP
```

例如：

* 做美国市场 → US IP
* 做日本市场 → JP IP
* 做欧洲市场 → UK / DE IP

***

### 五、国家地区与 Session 的关系

国家地区 + Session 组合：

```
zone_us + session_123 → 固定美国 IP
zone_jp + session_456 → 固定日本 IP
```

说明：

* 国家决定 IP 区域
* Session 决定 IP 是否固定

***

### 六、常见问题

#### 1. 国家地区不生效

请检查：

* username 中 zone 是否正确
* 是否拼写错误（us / uk / jp）
* 是否使用了正确的 endpoint

***

#### 2. 返回国家不一致

可能原因：

* 使用了轮换 IP
* Session 未固定
* DNS 缓存未更新

***

#### 3. 为什么 IP 和国家不完全一致？

部分网站判断国家基于：

* IP 数据库
* DNS 解析
* CDN 节点

建议使用多个检测网站验证。

***

### 七、最佳实践

推荐：

* 一个业务固定一个国家
* 不频繁切换国家地区
* 账号长期使用同一国家 IP
* 配合 Session 使用提高稳定性

***

### 八、相关文章

* [Session 使用说明](/kai-fa-zhe-wen-dang/api-shi-yong-zhi-nan/session-shi-yong-shuo-ming.md)
* [什么是轮换 IP](/dai-li-ji-chu-zhi-shi/shen-me-shi-lun-huan-ip.md)
* [如何选择代理协议](/dai-li-ji-chu-zhi-shi/ru-he-xuan-ze-dai-li-xie-yi.md)
* [如何降低账号关联风险](/dai-li-jian-ce-yu-yin-si-an-quan/ru-he-jiang-di-zhang-hao-guan-lian-feng-xian.md)
* [如何检测 IP 地区](/dai-li-jian-ce-yu-yin-si-an-quan/ru-he-jian-ce-ip-di-qu.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ipwo.net/kai-fa-zhe-wen-dang/api-shi-yong-zhi-nan/guo-jia-di-qu-can-shu-shuo-ming.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
