ICP备案查询
快速查询域名备案信息

接口地址: http://125.64.3.73:6688/api/icp

返回格式: JSON

请求方式: GET

请求示例: http://125.64.3.73:6688/api/icp?domain=qq.com

请求参数说明:

名称 必填 类型 说明
domain string 域名(不带Http/Https)

返回参数说明:

名称 类型 说明

返回示例:

{
    "icp": "粤B2-20090059-5", 
    "unitName": "深圳市腾讯计算机系统有限公司", 
    "natureName": "企业", 
    "mainLicence": "粤B2-20090059", 
    "serviceLicence": "粤B2-20090059-5", 
    "updateRecordTime": "2022-11-16 09:55:47", 
    "limitAccess": "否", 
    "msg": "查询成功", 
    "result": "1"
}

请求参数设置:

参数名称 参数值


{
    "icp": "粤B2-20090059-5", 
    "unitName": "深圳市腾讯计算机系统有限公司", 
    "natureName": "企业", 
    "mainLicence": "粤B2-20090059", 
    "serviceLicence": "粤B2-20090059-5", 
    "updateRecordTime": "2022-11-16 09:55:47", 
    "limitAccess": "否", 
    "msg": "查询成功", 
    "result": "1"
}

错误码格式说明:

名称 类型 说明

代码示例:

<?php
header("Content-Type:text/json;charset=UTF-8");
$domain = $_GET['domain'];
$api = "http://125.64.3.73:6688/api/icp?domain=" . $domain;
$url = XingJi($api);
echo $url;

function XingJi($url)
{
$ch = curl_init();
$timeout = 30;
$ua= $_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$urls = $http_type . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER,$urls);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.$ip, 'CLIENT-IP:'.$ip));
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$content = curl_exec($ch);
curl_close($ch);
return $content;
}
?>