# ASN 定位

ASN（自治系统号）定位让你把出口 IP 绑定到特定 ISP——适合目标站点按运营商区别对待、或者你需要网络信誉一致的 IP 时使用。

## 写法

在用户名后追加 `-asn-{number}`，ASN 是十进制整数，**不带 `AS` 前缀**。

```
helo_s1a2b3c4d5e-type-res-region-us-asn-7922
```

美国常见住宅 ASN：

| ASN   | 运营商                |
| ----- | ------------------ |
| 7922  | Comcast            |
| 22773 | Cox                |
| 7018  | AT\&T              |
| 11427 | Charter / Spectrum |
| 20115 | Verizon            |
| 209   | CenturyLink        |

其他国家可在 bgp.tools 等公开注册库查询，或调我们的 API：

```bash
curl -H "Authorization: Bearer API_KEY" \
     "https://api.helodata.com/v1/residential/asns?region=de"
```

## 与其他字段组合

ASN 在国家/州/城市筛选**之后**进一步收紧 IP 池。可用组合：

```
helo_s1a2b3c4d5e-type-res-region-us-asn-7922                          # 美国 Comcast
helo_s1a2b3c4d5e-type-res-region-us-state-ca-asn-7922                 # 加州 Comcast
helo_s1a2b3c4d5e-type-res-region-us-state-ca-city-la-asn-7922         # 洛杉矶地区 Comcast
helo_s1a2b3c4d5e-type-res-region-us-asn-7922-session-x-sesstime-15    # Comcast 粘性会话
```

如果组合筛选后在线 IP 不足 10 个，网关会返回 `522` 并附响应头 `X-Helodata-Insufficient-Pool: true`，**不会**静默回退。请逐步放宽筛选（先去 `city`，再去 `state`，再去 `asn`）。

## 适用场景

* **运营商绑定内容** — 按 ISP 做地理限制的服务（部分流媒体、银行、电信门户）
* **绕过检测** — 把运营商多样性当作 bot 信号的站点
* **可复现性** — 长测试中锁定同一运营商
* **质量控制** — 部分住宅池在头部运营商上质量更高

## 不适用场景

* 一般采集，需要的恰恰是运营商多样性——别设 ASN
* 小市场——即使头部 ASN 也可能瞬时只有不到 100 个在线 IP
* 非 T1 国家叠加 `city`——几乎必然 IP 池不足

## 查看实际 ASN

网关在响应头返回出口 IP 的 ASN：

```
X-Helodata-Exit-ASN: 7922
X-Helodata-Exit-ASN-Name: Comcast Cable Communications, LLC
```

用它校验定位是否准确，并在 `IP 地理位置不匹配` 排错时确认 ASN 所属地理。

## 移动 vs 住宅 ASN

住宅池中的 ASN 都属于固网 ISP。移动运营商 ASN（Verizon Wireless、KDDI、Vodafone……）请使用[移动代理](/helodata-zh/chan-pin/overview-1/asn-targeting.md)（`type-mob`）。


---

# Agent Instructions: 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://docs.helodata.com/helodata-zh/chan-pin/overview/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.
