参数说明
名称 |
必填 |
类型 |
说明 |
apiKey
|
是
|
后台申请
|
接口秘钥
|
return
|
否
|
string
|
输出类型
|
url |
是 |
string |
单位名称或域名或备案号 |
返回数据
{
"code": 200,
"msg": "success",
"data": {
"name": "深圳市腾讯计算机系统有限公司",
"nature": "企业",
"icp": "粤B2-20090059-5",
"sitename": "腾讯网",
"index": "www.qq.com",
"review_time": "2022-11-16",
"limit": "否"
}
}
示例代码
<?php
header("Content-Type:text/html;charset=UTF-8");
date_default_timezone_set("PRC");
$url=$_REQUEST["url"];
$result = file_get_contents("https://api.wya6.cn/api/icp?url=".$url);
$arr=json_decode($result,true);
if ($arr['code'] == 200) {
echo $arr;
} else {
echo $arr['msg'];
}
?>