> For the complete documentation index, see [llms.txt](https://doc.thordata.com/interface-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/interface-documentation/zh-hk/gong-gong-api/di-li-wei-zhi/huo-qu-asn-lie-biao.md).

# 獲取ASN列表

### 基礎信息

**接口說明：**&#x901A;過接口獲取Thordata住宅代理或無限代理伺服器支持的ASN列表

**請求地址：**<https://openapi.thordata.com/api/locations/asn>

**請求方式：**<mark style="color:green;">GET</mark>

### 請求參數

**Params：**

| 參數名稱           | 參數类型   | 是否必須 | 描述                                                                                      |
| -------------- | ------ | ---- | --------------------------------------------------------------------------------------- |
| `token`        | string | 必須   | 請登入[**儀表板 >> 菜單 >> 我的賬戶**](https://dashboard.thordata.com/account-settings)查看您的token參數值 |
| `proxy_type`   | number | 必須   | 選擇代理類型：1是住宅代理，2是無限代理伺服器（默認為1）                                                           |
| `country_code` | string | 必須   | 輸入國家代碼，獲取對應國家的ASN列表                                                                     |

### 響應示例

```json
{
    "code": 200,
    "data": [
        {
            "country_code": "US",
            "asn_code": "AS10796",
            "asn_name": "Charter Communications Inc"
        },
        {
            "country_code": "US",
            "asn_code": "AS11232",
            "asn_name": "Midcontinent Communications"
        },
        {
            "country_code": "US",
            "asn_code": "AS11351",
            "asn_name": "Charter Communications Inc"
        }
    ],
    "msg": "ok"
}
```

{% hint style="info" %}
若返回的code值非200，請查閱[**錯誤碼說明**](/interface-documentation/zh-hk/cuo-wu-ma/cuo-wu-ma-shuo-ming.md)列表並進行修改
{% endhint %}

<table><thead><tr><th width="206">参数名称</th><th>参数类型</th><th>是否必須</th><th>描述</th></tr></thead><tbody><tr><td><code>code</code></td><td>number</td><td>非必須</td><td>-</td></tr><tr><td><code>data</code></td><td>object</td><td>非必須</td><td>-</td></tr><tr><td><code>country_code</code></td><td>string</td><td>必須</td><td>國家代碼</td></tr><tr><td><code>asn_code</code></td><td>string</td><td>必須</td><td>ASN代碼</td></tr><tr><td><code>asn_name</code></td><td>string</td><td>必須</td><td>ASN名稱</td></tr><tr><td><code>msg</code></td><td>string</td><td>非必須</td><td>-</td></tr></tbody></table>
