域名拦截查询
https://api.71ywl.com/api/index.php?qy=check
接口描述
查询自己的域名是否被wechat/企鹅拦截
请求参数
| 参数名 | 类型 | 必填 | 示例 | 说明 |
|---|---|---|---|---|
| ckey | string | 是 | SJKHJDBBDGGE | 后台KEY |
| url | string | 是 | 71ywl.com | 域名 |
请求示例
https://api.71ywl.com/api/index.php?qy=check?url=71ywl.com
响应示例
{"data":"安全中心拦截,请联系qq申诉","reCode":-204}
返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| reCode | number | 返回码:-204表示安全中心拦截,需联系QQ申诉;-203表示微信拦截,需在微信内打开申诉网址;-202表示未拦截 |
| data | string | 拦截提示信息 |
响应码
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功 |
| 203 | 秘钥错误或不存在 |
| 204 | 服务器错误 |
| 211 | 接口不存在 |
| 212 | 当前接口已下架 |
| 213 | 当前接口正处于审核期 |
| 214 | API本地文件不存在,请联系管理员检查 |
| 215 | 管理员设置当前接口必须携带ckey请求! |
| 216 | 付费接口请携带ckey请求! |
| 217 | ckey不存在! |
| 218 | 当前ckey无权限调用此接口,请将此接口添加到ckey调用能力中后重试! |
| 219 | 访问频率超过限制!请稍后重试! |
| 220 | 本地API逻辑错误!请联系管理员检查! |
| 221 | 状态码与管理员配置的状态码不一致,请联系管理员! |
| 222 | 禁止访问!请联系管理员 (已被加入黑名单) |
| 223 | 积分不足!请充值后重试 |
| 224 | 余额不足!请充值后重试 |
| 225 | 您已设置仅白名单ip访问!请将当前ip添加到白名单中 |
代码示例
curl
curl -X GET "https://api.71ywl.com/api/index.php?qy=check?url=71ywl.com" \
-H "Content-Type: application/none" \ -d '{}'
php
<?php $url = "https://api.71ywl.com/api/index.php?qy=check?url=xxx"; $response = file_get_contents($url); echo $response; ?>
python
import requests url = "https://api.71ywl.com/api/index.php?qy=check?url=xxx" response = requests.get(url) print(response.json())
javascript
fetch("https://api.71ywl.com/api/index.php?qy=check?url=xxx")
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));