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

# 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 Access denied: restricted ASN` 错误。\
如果你需要访问受限的 ASN，请就 KYC 流程联系客户支持或你的客户经理。
{% endhint %}

移动代理池本质上是动态的，因此如果当时该特定 ASN 下没有 IP，你将收到 `502 Bad Gateway` 响应代码。在这种情况下，你应尝试另一个 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:

```
GET https://developers.oxylabs.io/products/cn/dai-li/mobile-proxies/location-settings/asn-targeting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
