IP地址查询

通过输入IP地址,快速、准确地查找IP地址所属的国家、省市、ISP等详细信息

请求参数说明

名称 类型 必填 默认值 说明
ip string - IP地址,每次只能查询一个IP,只支持IPv4

返回参数说明

名称 类型 默认值 说明
code string - 返回编码,SUCCESS为成功,其他为失败
success boolean - 返回是否成功,true为成功,false为失败
message string - 返回说明
data Object - 数据结果
data 数据结果说明
名称 类型 默认值 说明
ip string - 被查询的IP地址
country string - 所属国家
province string - 所属省份
city string - 所属城市
isp string - 运营商

返回示例

{
	"code": "SUCCESS",
	"message": "请求成功",
	"success": true,
	"data": {
		"ip": "175.13.32.54",
		"country": "中国",
		"province": "湖南省",
		"city": "长沙市",
		"isp": "电信"
	}
}