根据IPv6地址查询
请求Header:
名称 | 值 | |
---|---|---|
Content-Type | application/x-www-form-urlencoded |
请求参数说明:
名称 | 必填 | 类型 | 说明 | |
---|---|---|---|---|
ip | 是 | string | 需要查询的IPv6地址。 | |
key | 是 | string | 在个人中心->我的数据,接口名称上方查看 |
返回参数说明:
名称 | 类型 | 说明 | |
---|---|---|---|
error_code | int | 返回码 | |
reason | string | 返回说明 | |
result | object | 返回结果集 | |
continent | string | 大洲 | |
country | string | 国家 | |
owner | string | 所属机构 | |
isp | string | 运营商 | |
zipcode | string | 邮编 | |
timezone | string | 时区 | |
accuracy | string | 精度 | |
areacode | string | 国家编码,编码对应名称映射表.xlsx | |
adcode | string | 行政编码 | |
asnumber | string | 自治域编码 | |
lat | string | 纬度 | |
lng | string | 经度 | |
radius | string | 定位半径 | |
prov | string | 省份 | |
city | string | 城市 | |
district | string | 区县 |
JSON返回示例:JSON在线格式化工具 >
{
"reason": "查询成功",
"result": {
"continent": "亚洲",
"country": "中国",
"zipcode": "100011",
"timezone": "UTC+8",
"accuracy": "区县",
"owner": "中国教育网",
"isp": "中国教育网",
"source": "数据挖掘",
"areacode": "CN",
"adcode": "110105",
"asnumber": "23910",
"lat": "39.951430",
"lng": "116.509342",
"radius": "17.3476",
"prov": "北京市",
"city": "北京市",
"district": "朝阳区",
"currency_code": "CNY",
"currency_name": "人民币"
},
"error_code": 0
}
服务级错误码参照(error_code):
错误码 | 说明 | |
---|---|---|
272401 | IPv6地址格式不正确 | |
272402 | 查询不到记录 | |
272403 | 数据源网络异常,请重试 | |
272404 | 其他异常,具体请参照reason |
系统级错误码参照:
错误码 | 说明 | 旧版本(resultcode) | |
---|---|---|---|
10001 | 错误的请求KEY | 101 | |
10002 | 该KEY无请求权限 | 102 | |
10003 | KEY过期 | 103 | |
10004 | 错误的OPENID | 104 | |
10005 | 应用未审核超时,请提交认证 | 105 | |
10007 | 未知的请求源 | 107 | |
10008 | 被禁止的IP | 108 | |
10009 | 被禁止的KEY | 109 | |
10011 | 当前IP请求超过限制 | 111 | |
10012 | 请求超过次数限制 | 112 | |
10013 | 测试KEY超过请求限制 | 113 | |
10014 | 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) | 114 | |
10020 | 接口维护 | 120 | |
10021 | 接口停用 | 121 |
错误码格式说明(示例:200201):
2 | 002 | 01 | |
---|---|---|---|
服务级错误(1为系统级错误) | 服务模块代码(即数据ID) | 具体错误代码 |