# 4.1 获取入口域名池列表

**本API接口对应的会员中心页面版(入口域名池):**

* `https://www.wechaturl.us/user/index.html#business_management/user_short_domain_list`

**说明：**

* 本功能可以方便去获取入口域名池里面的所有域名。
* **注意，本接口不能频繁去获取，请在自己的程序里面去设置频率为数小时。当然你可以通过 “被封异步通知”(下面链接查看)，并让你程序实时知道哪些域名被封，并做出排除或者重新拉取。**<https://www.wechaturl.us/user/index.html#business_management/btm_other_setting_async_notify>

**请求URL：**

* `https://wechaturl.us/api/ShortDomain.json`

**请求方式：**

* POST 或者GET(如果用GET,特殊字符串需要url编码)

**参数：**

| 参数名         | 必选 | 类型     | 说明                                                                                                                                                                                              |
| ----------- | -- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| appid       | 是  | int    | <http://www.wechaturl.us/user/index.html> 去免费获取appid                                                                                                                                            |
| appkey      | 是  | string | <http://www.wechaturl.us/user/index.html> 去免费获取appkey                                                                                                                                           |
| type        | 是  | string | 值:list                                                                                                                                                                                          |
| layer\_type | 否  | string | 目前只支持以下4个值：layer\_top(入口域名),layer\_hide\_1(二级跳转),layer\_hide\_2(三级跳转),layer\_last(四级跳转)                                                                                                         |
| status      | 否  | int    | 注意，默认为空，不是0；具体值请查看[https://wechaturl.gitbook.io/wechaturl/code\_sum](https://wechaturl.gitbook.io/wechaturl/code_summary#url-yu-ming-wei-xin-jian-ce-zhuang-tai-ma-status)  url/域名微信检测状态码status |
| page        | 否  | int    | 当前页面,默认为1                                                                                                                                                                                       |
| rows        | 否  | int    | 每页面获取的条数,默认20,最大是50                                                                                                                                                                             |

**返回示例**

* `https://wechaturl.us/api/ShortDomain.json?type=list&page=1&rows=30&appid=37****15&appkey=a50d38748960******80ae1a725b7c95`

```
 {
  "code": 1,
  "message": "ok.说明:你可以通过layer_type和status进行筛选;如果是拼接网址,请使用layer_type=layer_top",
  "next_get_date": "2020-05-06 12:36:28",
  "next_get_time": 1588739788,
  "data": {
    "count": 4,
    "list": [
      {
        "layer_type": "layer_hide_2",
        "scheme": "http://",
        "domain": "yourdomain1.com",
        "status": "4000",
        "is_monitor": "0",
        "is_wide_resolve": "0"
      },
      {
        "layer_type": "layer_last",
        "scheme": "http://",
        "domain": "yourdomain2.com",
        "status": "4000",
        "is_monitor": "0",
        "is_wide_resolve": "0"
      },
      {
        "layer_type": "layer_hide_1",
        "scheme": "http://",
        "domain": "yourdomain3.com",
        "status": "4000",
        "is_monitor": "0",
        "is_wide_resolve": "0"
      },
      {
        "layer_type": "layer_top",
        "scheme": "http://",
        "domain": "yourdomain4.com",
        "status": "4000",
        "is_monitor": "0",
        "is_wide_resolve": "0"
      }
    ]
  }
}
```

[**查看所有CODE、STATUS值含义**](https://github.com/wanjunlengfeng/WechatUrlCheckPreventingBlockedApi/blob/master/微信防封杀系统api接口详细说明/CODE代码汇总.md)


---

# 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://wechaturl.gitbook.io/wechaturl/shorturl/user_short_domain_list.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.
