
微信扫码关注视频号
名称 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
domains | string | 是 | 需要查询的域名(最多50个,多个用逗号隔开) |
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
taskid | int | 任务ID | |
icp_count | int | 已备案域名 | |
no_icp_count | int | 未备案域名 |
{ "errcode": "200104", "errmsg": "数据分析中", "taskid": xxxxxx, "icp_count": 0, "no_icp_count": 0, "data": [] }
名称 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
taskid | int | 是 | 任务ID |
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
errcode | string | 0 | 返回的错误代码 |
errmsg | string | 返回的错误说明 | |
icp_count | int | 已备案域名 | |
no_icp_count | int | 未备案域名 | |
domain_name | string | 网站根域 | |
company_name | string | 主办单位名称 | |
company_type | string | 单位性质 | |
owner | string | 网站负责人 | |
icp_license | string | 备案主体/许可证号 | |
site_license | string | 网站备案/许可证号 | |
main_page | string | 网站首页地址 | |
site_name | string | 网站名称 | |
site_preconfirm | string | 网站前置审批项 | |
domain_name_list | string | 网站域名 | |
confirm_time | string | 审核通过时间 |
返回的错误代码
{ "errcode": "0", "errmsg": "", "taskid": xxxxxxx, "icp_count": 2, "no_icp_count": 0, "data": [ { "domain_name": "5118.com", "company_name": "珠海市五一一八科技有限公司", "company_type": "企业", "owner": "XXXX", "icp_license": "粤ICP备XXXXXX号", "site_license": "粤ICP备XXXXXX号-1", "main_page": "www.5118.com", "site_name": "珠海市五一一八科技有限公司官方网站", "site_preconfirm": "", "domain_name_list": "5118.com", "confirm_time": "2019-07-17" }, { "domain_name": "kt1.com", "company_name": "XX", "company_type": "XX", "owner": "XX", "icp_license": "粤ICP备XXXX号", "site_license": "粤ICP备XXXX号-1", "main_page": "www.kt1.com", "site_name": "快推易", "site_preconfirm": "", "domain_name_list": "kt1.com", "confirm_time": "2019-12-18" } ] }
错误码 | 说明 |
---|---|
100101 | 调用次数不够,请充值 |
100102 | 服务每秒调用量超限 |
100103 | 服务每小时调用量超限 |
100104 | 服务每天调用量超限 |
100111 | 调用字数不够,请充值 |
100201 | url无法解析 |
100202 | 请求缺少apikey |
100203 | 无效的apikey |
100204 | api不存在 |
100205 | api已经关闭 |
100206 | 服务商响应status非200 |
100207 | 服务商未正确接入 |
100208 | 请求方式不支持 |
100301 | Api商城 内部错误 |
100302 | 请求服务商过程中错误 |
100303 | 系统繁忙稍候再试 |
100403 | 您输入的apikey不正确 |
错误码 | 说明 |
---|---|
200201 | 传进参数为空 |
200202 | 用户ID为空 |
200504 | 出现异常情况 |
2 | 002 | 01 |
---|---|---|
服务器错误(1:为系统级别错误) | 服务模块代码(即数据ID) | 具体错误代码 |
名称 | 价格 | 次数 | 说明 |
---|---|---|---|
试用套餐 | 0.00 | 100 | |
套餐一 | 500.00 | 10000 | |
套餐二 | 3000.00 | 100000 | |
套餐三 | 15000.00 | 1000000 |
<?php
$host = "http://apis.5118.com";
$path = "/icp/domains";
$method = "POST";
$apikey = "你要调用API的apikey";
$headers = array();
array_push($headers, "Authorization:" . $apikey);
//根据API的要求,定义相对应的Content-Type
array_push($headers, "Content-Type".":"."application/x-www-form-urlencoded; charset=UTF-8");
$querys = "";
$bodys = "domains=域名1,域名2,域名3";
$url = $host . $path;
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
if (1 == strpos("$".$host, "https://"))
{
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($curl, CURLOPT_POSTFIELDS, $bodys);
var_dump(curl_exec($curl));
?>