描述:IP地址ASN查询,可查询IP地址的ASN归属地址信息,ASN数据库定期自动更新。
接口地址:https://openapi.chinaz.net/v1/1029/asn
返回格式:JSON
请求方式:GET
请求参数:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| url | string | 是 | 查询地址或IP |
| APIKey | string | 是 | 申请接口时获取的APIKey值 |
| ChinazVer | string | 是 | 接口版本号 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| msg | string | 返回msg |
| statu | string | 域名正常返回true,其他返回false |
| ip | string | 查询的IP |
| code | string | 状态码 |
| data | string | ASN数据 |
JSON返回示例:
{
"msg": "查询成功",
"data": {
"asn": 45090,
"organization": "Shenzhen Tencent Computer Systems Company Limited"
},
"statu": "true",
"ip": "https://www.qq.com",
"code": "200"
}| 错误代码 | 说明 |
|---|---|
| 200 | 已接入 |
| 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城市级...
描述:分析公共通信和...