网站Whois查询

最后更新于:2022-04-02 08:19:28

## 网站Whois查询 ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/e5/ea/e5ea5e729131e07845a60516531b9304_169x147.png) > 根据域名返回Whois信息 以及根据电话、邮箱、注册人反查Whois信息(最多100条数据) ## 接口费用( [点击购买](https://market.topthink.com/product/367)) > 最低 0.01元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ## 接口1:Whois查询 根据域名返回Whois信息 ### 请求地址 ``` GET https://api.topthink.com/website/whois ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是|string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | domainName| 是 | string | 域名 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | Host | string | 域名 | | ContactPerson | string | 联系人 | | Registrar | string | 注册商 | | Email | string | 联系邮箱 | | Phone | string | 联系电话 | | CreationDate | string | 创建时间 | | ExpirationDate | string | 过期时间 | | WhoisServer | string | 域名服务器 | | DnsServer | string | DNS | | DomainStatus | string | 状态 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->websiteWhois() ->withDomainName('chinaz.com') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": { "Host": "chinaz.com", "ContactPerson": "", "Registrar": " eName Technology Co., Ltd", "Email": "abuse@ename.com", "Phone": "864000044400", "CreationDate": "2002-12-20 00:00:00", "ExpirationDate": "2023-12-20 00:00:00", "WhoisServer": "whois.ename.com", "DnsServer": "NS1.DNSV5.COM, NS2.DNSV5.COM", "DomainStatus": " clientDeleteProhibit..." } } ~~~ ## 接口2:Whois反查 根据电话、邮箱、注册人反查Whois信息(最多100条数据) ### 请求地址 ``` GET https://api.topthink.com/website/whois_reverse ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是|string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | queryData | 是 | string | 电话 或 邮箱 或 联系人 | | queryType | 是 | string | Phone 或 Email 或 Registrant | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | Host | string | 域名 | | ContactPerson | string | 联系人 | | Registrar | string | 注册商 | | Email | string | 联系邮箱 | | Phone | string | 联系电话 | | CreationDate | string | 创建时间 | | ExpirationDate | string | 过期时间 | | WhoisServer | string | 域名服务器 | | DnsServer | string | DNS | | DomainStatus | string | 状态 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->websiteWhoisReverse() ->withQueryData('邮箱') ->withQueryType('Email') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": { "Host": "chinaz.com", "ContactPerson": "", "Registrar": " eName Technology Co., Ltd", "Email": "abuse@ename.com", "Phone": "864000044400", "CreationDate": "2002-12-20 00:00:00", "ExpirationDate": "2023-12-20 00:00:00", "WhoisServer": "whois.ename.com", "DnsServer": "NS1.DNSV5.COM, NS2.DNSV5.COM", "DomainStatus": " clientDeleteProhibit..." } } ~~~
';