> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/help-center/cn/chan-pin-yu-gong-neng/how-to-select-your-proxy-location.md).

# 如何选择您的代理位置

了解如何通过修改用户名中的位置参数来配置代理的位置。

要更改代理的位置，请修改用户名中的位置参数。这可确保你的请求通过所选位置的 IP 路由。

根据你的代理类型，你可以选择不同级别的地理定位。有关支持的位置设置完整列表，请参阅我们的 [位置设置 FAQ](https://faq.oxylabs.info/en/articles/8832436-location-settings-for-proxies).

### 住宅代理和移动代理 <a href="#h_e4626222e6" id="h_e4626222e6"></a>

通过使用以下方式指定国家： `cc` 参数在你的用户名中。此参数接受两个字母的国家代码（ISO 3166-1 alpha-2 格式）。

这里， `cc-DE` 确保请求通过德国路由：

```
curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ip.oxylabs.io/location 
```

对于其他国家，请将 `DE` 替换为所需的国家代码（例如， `cc-FR` 用于法国，或 `cc-JP` 用于日本）。

你还可以使用其他几种地理定位设置，例如城市、州、大洲、坐标和 ASN 定位。更多详情请参阅：

* [住宅代理](/products/proxies/residential-proxies/location-settings.md)
* [移动代理](/products/proxies/mobile-proxies/location-settings.md)

### 数据中心代理 <a href="#h_dd1f53e232" id="h_dd1f53e232"></a>

要更改国家，请修改 `国家` 用户名中的参数。

这里， `country-US` 确保请求通过位于美国的数据中心 IP 处理：

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

对于其他国家，请将 `country-US` 替换为所需的国家代码（例如， `country-FR` 用于法国，或 `country-JP` 用于日本）。

有关可用位置的更多信息，请参阅：

* [数据中心代理](/products/proxies/datacenter-proxies/select-country.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/help-center/cn/chan-pin-yu-gong-neng/how-to-select-your-proxy-location.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
