原帖地址:https://hostloc.com/thread-1177912-1-1.html
非常感谢 @种植业生产人员 分享的北岸查询接口。
抄了一份
接口地址:https://api-v3.lanluo.cn/tools/icp_info_domain
参数:domain
可用get或post请求
get请求如:https://api-v3.lanluo.cn/tools/icp_info_domain?domain=qq.com
前端测试https://tool.lanluo.cn/#/dev/icp
PHP代码:
use GuzzleHttp\Client;- $url = 'https://cgi.urlsec.qq.com/index.php'; $headers = [ "Referer" =>"https://guanjia.qq.com" ]; $params = [ 'm'=>'check', 'a'=>'check', 'url'=>$domain ]; $client = new Client(); $res = $client->request('GET',$url,['query' => $params,'headers'=>$headers]); $resContent = json_decode(substr($res->getBody()->getContents(),1,-1))->data; if($resContent->retcode==0){ $this->ok($resContent->results); }else{ $this->fail('接口异常'); }
复制代码 |