域名高级查询

域名高级查询,获取域名的历史Whois信息、域名历史解析IP信息。

调用脚本
Run In Postman
请求方法
请求地址: https://api.threatbook.cn/v3/domain/adv_query

请求方式:POSTGET

请求参数说明
序号参数名称必选类型描述
1apikeystringAPI请求的身份识别标识。
2resourcestring域名,目前支持单个查询。
3exclude可选string可根据实际使用场景排除以下参数,返回结果信息,多个参数请以逗号分隔(注意不要有空格)。
  • history_ips:域名历史解析IP信息。
  • history_whoises:域名历史whois信息。
4lang可选string返回结果语言。不输入该参数时,默认返回英文。
取值二者选其一:
  • zh:所有返回结果内容中文显示。
  • en:所有返回结果内容英文显示。
响应参数说明
序号参数名称类型描述
1response_codeint响应正常会返回"0"。
其他Response code及对应msg描述参见"响应Code和Msg对照表"
2verbose_msgstring响应正常会返回"Ok"。
其他Response code及对应msg描述参见"响应Code和Msg对照表"
3domainstring查询的域名。
4history_ipsarray域名的历史上解析的ip信息,是一个JSON数组,每个item均是JSON对象,包含字段说明如下:
  • date: 历史ip的时间
  • ips: 是一个JSON数组,每个item均是JSON对象,字段说明如下:
    • ip: ip值
    • carrier:运营商/服务商。
    • location: ip对应的位置信息,json对象,字段说明如下:
      • country: 国家
      • cuntry_code: 国家代码
      • province: 省
      • city: 城市
      • lng: 经度
      • lat: 纬度
5history_whoisesarray域名的历史whois信息,是一个JSON数组,每个item均是JSON对象,字段说明如下:
  • date: 历史whois的时间
  • whois: 是一个JSON对象,字段说明如下:
    • registrar_name: 域名服务商
    • name_server: 域名服务器(以|分隔)
    • registrant_name: 注册者
    • registrant_email: 注册邮箱
    • registrant_company: 注册机构
    • registrant_address: 地址
    • registrant_phone: 电话
    • cdate: 注册时间
    • udate: 更新时间
    • edate: 过期时间
    • alexa: Alexa排名
6permalinkstring域名对应的情报查询结果页链接
请求示例

微步在线云API支持cURL、Python、PHP、Java、Go语言的请求,以Python为例:

Python
import requests

url = "https://api.threatbook.cn/v3/domain/adv_query"

query = {
  "apikey":"请替换apikey",
  "resource":"agenciav3.com"
}

response = requests.request("GET", url, params=query)

print(response.json())
响应示例(JSON)
{
  "data": {
    "domain": "agenciav3.com",
    "history_whoises": [
      {
        "date": "2019-10-18",
        "whois": {
          "cdate": "2013-12-18 00:00:00",
          "edate": "2019-12-18 00:00:00",
          "udate": "2019-10-09 00:00:00",
          "alexa": "",
          "registrar_name": "Internet Domain Service BS Corp.",
          "name_server": "ns1.modig.com.br|ns2.modig.com.br",
          "registrant_name": "Domain Admin",
          "registrant_email": "54221dfff5k9lt0v@5225b4d0pi3627q9.whoisprivacycorp.com",
          "registrant_company": "Whois Privacy Corp.",
          "registrant_address": "",
          "registrant_phone": "+1.5163872248"
        }
      }
    ],
    "history_ips": [
      {
        "date": "2015-11-07",
        "ips": [
          {
            "ip": "198.167.143.12"
          }
        ]
      }
    ],
    "permalink": "https://x.threatbook.com/v5/domain/agenciav3.com"
  },
  "response_code": 0,
  "verbose_msg": "OK"
}
云API是北京微步在线科技有限公司旗下产品了解微步在线《用户服务条款》《数据保护政策》联系我们:api@threatbook.cn