描述:通过使用子域名查询工具,用户可以轻松地找到目标网站的所有子域名和IPV4以及IPV6的相关信息,从而更好地了解其网络结构和潜在的安全风险。
接口地址: https://openapi.chinaz.net/v1/1001/querysubdomain
返回格式:JSON
请求方式:GET
请求示例:https://openapi.chinaz.net/v1/1001/querysubdomain?mainDomain=查询的域名&page=分页
&APIKey=申请接口时获取的APIKey值&ChinazVer=接口版本号
请求参数:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| mainDomain | string | 是 | 查询的域名 |
| page | string | 是 | 分页(默认第1页,可自行选择页码,每页最多10条数据) |
| APIKey | string | 是 | 申请接口时获取的APIKey值 |
| ChinazVer | string | 是 | 接口版本号,取值1.0 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| StateCode | int | 状态码 |
| Reason | string | 状态码说明 |
| Result | object | 具体返回内容 |
| Result.totalCount | int | 总条数 |
| Result.totalPage | int | 总分页数 |
| Result.pageSize | int | 当前页数 |
| Result.pageNo | int | 当前页对应条数(1页最多10条) |
| Result.mainDomain | string | 查询的域名,如果输入的是二级域名需要转化为顶级域名 |
| Result.List.domain | string | 域名 |
| Result.List.cname | string | Cname值 |
| Result.List.ipv4 | string | A值 |
| Result.ipv6 | string | AAAA值 |
JSON返回示例:
{
"StateCode": 1,
"Reason": "成功",
"Result": {
"pageNo": 1,
"mainDomain": "chinaz.com",
"pageSize": 10,
"totalCount": 133,
"totalPage": 14,
"List": [{
"ipv4": "",
"ipv6": "",
"domain": "chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "www.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "tool.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "ping.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "stool.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "d.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "img.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "pic.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "dapp.chinaz.com",
"cname": ""
},
{
"ipv4": "",
"ipv6": "",
"domain": "ip.chinaz.com",
"cname": ""
}
]
}
}
| 错误代码 | 说明 |
|---|---|
| 1 | 成功 |
| -1 | 系统异常 |
| 10005 | 自定义参数错误 |
| 10006 | 暂无数据 |
| 431 | http响应状态码:APIKey缺失,请附带APIKey参数 |
| 432 | http响应状态码:错误的APIkey长度 |
| 433 | http响应状态码:错误的请求key(或者返回状态码10001) |
| 434 | http响应状态码:错误的APIkey类型 |
| 436 | http响应状态码:额度不足,或者APIKey不存在 |
| 437 | http响应状态码:该IP未在白名单内 |
| 531 | http响应状态码:请求过于频繁 |
| 532 | http响应状态码:未知错误,请联系管理员(或者返回533) |
| 内容 | 说明 |
|---|---|
| 客服微信 | ![]() |
描述:查询IP高精准...
描述:查询IP高精准...
描述:查询IP区县级...
描述:查询IP城市级...
描述:分析公共通信和...