每次请求API接口:0.00000 元
接口地址:https://api.xiaotuo.net/api/ip/
返回格式:json
请求方式:GET
请求示例:https://api.xiaotuo.net/api/ip/?apikey=你开通的apikey&ip=要查询的Ip
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
apikey | 是 | string | 你开通的apikey |
ip | 是 | string | 要查询的Ip |
名称 | 类型 | 说明 |
---|---|---|
beginip | int | 中间记录的开始IP地址 |
endip | int | 中间记录的结束IP地址 |
pos | int | 地理位置 |
isp | int | 运营商 |
location.lat | int | 纬度 |
location.lng | int | 经度 |
rectangle | int | 所在城市范围的左下右上对标对 (只有国内 ip 才有) |
ad_info | int | 定位行政区划信息 |
ad_info.nation | int | 国家 |
ad_info.province | int | 省 |
ad_info.city | int | 市 |
ad_info.district | int | 区 |
ad_info.adcode | int | 行政区划代码 |
{"code":200,"msg":"success","data":{"beginip":"127.0.0.1","endip":"127.0.0.1","pos":"保留","isp":"本地环回","location":{"lat":"","lng":""},"rectangle":null,"ad_info":{"nation":"保留","province":"","city":"","district":"","adcode":""},"ip":"127.0.0.1"},"time":1732897113,"usage":0,"log_id":"721156521481527296"}
错误码 | 说明 |
---|---|
100 | 您的apikey值为空! |
101 | 您的apikey值不存在! |
102 | 当前来源地址不在白名单内! |
103 | 当前接口为实名认证后可用,请您先进行实名! |
104 | 当前接口为企业认证后可用,请您先进行企业认证! |
105 | 当前接口未通过审核或已停止运营! |
106 | 您的余额不足,请及时充值! |
107 | 您当前的接口免费期限已过期,请及时开通! |
108 | 您的点数包已过期,请及时续费! |
109 | 您的点数包已用完,请及时充值! |
110 | 您的账号已被封禁,不可使用任何接口! |