参数说明
获取秘钥
| 参数 |
必填 |
说明 |
| id | 是 | 接口ID |
| key | 是 | 对接秘钥 |
| name | 是 | 主办单位、域名或ICP备案号 |
返回参数
| 名称 | 说明 |
| status |
1备案;2未备案 |
| count |
该主体备案总数 |
| domain |
域名 |
| xianzhi |
限制接入 |
| type |
单位类型 |
| name |
备案名称 |
| date |
备案日期 |
| icp |
备案号 |
| zhu_icp |
主备案号 |
| code |
200:成功; 计费 |
| user_info |
用户信息; zid:用户ID; cost:单价;rmb:余额; login_time:最近登录; |
返回示例
{
"code": 200,
"msg": "success",
"data": {
"status": 1,
"name": "贵州综信查信息科技有限公司",
"count": 32,
"list": [
{
"domain": "z9nr.cn",
"xianzhi": null,
"type": "企业",
"name": "贵州综信查信息科技有限公司",
"icp": "黔ICP备2024041342号-33",
"zhu_icp": "黔ICP备2024041342号",
"date": "2026-03-03"
},
{
"domain": "szdsgz.com",
"xianzhi": null,
"type": "企业",
"name": "贵州综信查信息科技有限公司",
"icp": "黔ICP备2024041342号-13",
"zhu_icp": "黔ICP备2024041342号",
"date": "2025-06-03"
}
]
},
"user_info": {
"zid": "6",
"rmb": "10244.37237",
"login_time": "2025-03-18 20:09:44"
}
}
PHP代码示例:
<?php
//GET请求记得用:urlencode
//GET请求请用官方浏览器调试,勿在QQ或微信等软件内调试接口,否则可能会出现访问一次实际N次,外部软件的问题,与本平台无关!
$api_url='https://api.yuanxiapi.cn/api/';
$api_id='接口ID';
$key='秘钥';
$post_arr=array('id'=>$api_id,'key'=>$key,'name'=>'qq.cn');
$post=http_build_query($post_arr);
$data=get_curl($api_url,$post);
print_r($data);
function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobaody=0, $addheader=0){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$httpheader[] = "Accept: */*";
$httpheader[] = "Accept-Encoding: gzip,deflate,sdch";
$httpheader[] = "Accept-Language: zh-CN,zh;q=0.8";
$httpheader[] = "Connection: close";
if($addheader){
$httpheader = array_merge($httpheader, $addheader);
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, true);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
}
if($referer){
if($referer==1){
curl_setopt($ch, CURLOPT_REFERER, 'http://m.qzone.com/infocenter?g_f=');
}else{
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
}
if ($ua) {
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
}
else {
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0");
}
if ($nobaody) {
curl_setopt($ch, CURLOPT_NOBODY, 1);
}
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
curl_close($ch);
return $ret; }
?>