> 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/products/cn/proxies/mobile-proxies/location-settings/asn-targeting.md).

# ASN 定向

按 ASN 定位移动代理并选择特定运营商。了解请求及 ASN 定向限制。

我们的移动代理支持按 ASN 编号进行目标定位，这意味着你可以选择来自特定运营商的代理。你必须在请求中输入所需的 ASN 编号。下面是 T-Mobile 的示例，其在美国的 ASN 编号为 21928：

`customer-username-ASN-21928-sessid-abcde12345:password`

您可以查找 ASN 编号 [**这里**](https://asnlookup.com/)**.**

{% hint style="warning" %}
我们的 ASN 定向对所有用户都可用，不过某些 ASN 保留给已通过 KYC 审核的客户，可能会返回一个 `403 访问被拒绝：受限 ASN` 错误。\
如果您需要访问受限 ASN，请就 KYC 流程联系客服支持或您的客户经理。
{% endhint %}

移动代理池本质上是动态的，因此如果当时该特定 ASN 下没有 IP，你将收到一个 `502 错误网关` 响应代码。在这种情况下，您应尝试另一个 ASN 编号。

{% hint style="info" %}
每个请求您都可以使用 Country 或 ASN 参数。如果同时使用这两个位置参数，则只会应用 Country 参数。
{% endhint %}


---

# 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://developers.oxylabs.io/products/cn/proxies/mobile-proxies/location-settings/asn-targeting.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.
