腾讯云优惠券
IP地址归属地查询接口

本站提供的IP地址库查询接口内容来自于大厂,努力提供精准数据,国家 、省(自治区或直辖市)、市(县)、运营商,IP准确度、覆盖度统计达96%以上!

API接口说明
  • 请求协议:http/https
  • 请求方式:get/post
  • 返回类型:json
  • 请求接口:http://api.daicuo.cc/ip/
  • 请求示例:http://api.daicuo.cc/ip/?token=xxxxxx&ip=220.192.164.190
  • 消耗积分:免费
请求参数
参数名 类型 必填 示例值 描述
token string xxxxxx API令牌(登录后会自动获取)
ip string 220.192.164.190 待查询的IP地址
响应参数
参数名 类型 示例值 描述
code number 200 状态码
msg string 成功 返回状态提示
data array [...] 返回的数据结果如下
ip string 220.192.164.190 待查询的IP地址
country string 中国 国家
area string 华北 地区
region string 北京 省份
city string 北京 城市
county string 海淀 区县
isp string 联通 运营商
country_id string 86 国家代码
area_id string 100000 地区代码
region_id string 100000 省份代码
city_id string 110000 城市代码
county_id string 区县代码
isp_id string 100026 运营商代码
状态码说明
状态码 结果 描述
200 成功 接口正常返回数据
199 失败 处理积分失败,需联系管理员
198 失败 积分不足,请充值后再使用
197 失败 Api应用已下线,请勿再使用
194 失败 内部服务器错误,需联系管理员
0 失败 token错误或未填写
响应示例
{
	"code": 200,
	"msg": "成功",
	"time": "1628837117",
	"data":  {
		"ip": "210.75.225.254",
		"country": "中国",
		"area": "华北",
		"region": "北京市",
		"city": "北京市",
		"county": "海淀区",
		"isp": "电信",
		"country_id": "86",
		"area_id": "100000",
		"region_id": "110000",
		"city_id": "110000",
		"county_id": "-1",
		"isp_id": "100017"
	}
}