本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 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"}]}}