域名whois查询
应用参数 | 类型 | 是否必填 | 默认值 | 示例值 | 说明 |
en_name | string | true | 必须为 domain.whois | ||
domain | string | true | baidu.com | 要查询的域名 | |
timeout | string | false | 30 | 范围:0-60 | 超时(秒) |
系统参数 | 类型 | 是否必填 | 说明 |
ak | string | true | 开发者密钥 |
{ "success": "1", "result": { "status": "ALREADY_ALEXA", "domain": "163.com", "sitenm": "网易", "webmaster": "http://www.rz173.com", "email": "", "entry_date": "", "country": "cn china", "lange": "", "access_speed": "", "speed_score": "", "backlinks": "", "contact_tel": "", "country_rank": "25", "global_rank": "86", "trends": "-52", "dmoz": "" } }
<?php $ch = curl_init(); $url = 'http://api.liangmlk.cn?ak=xxxx&en_name=domain.whois&domain=xxxx'; curl_setopt($ch,CURLOPT_URL,$url); $res = curl_exec($ch); curl_close($ch); return $res; ?>
import requests url = 'http://api.liangmlk.cn?ak=xxxx&en_name=domain.whois&domain=xxxx' print( requests.get(url).json() )
curl http://api.liangmlk.cn?ak=xxxx&en_name=domain.whois&domain=xxxx