0
点赞
收藏
分享

微信扫一扫

获取外网IP地址API


1、获取外网IP地址

地址:

​​http://pv.sohu.com/cityjson?ie=utf-8​​

返回结果:

var returnCitySN = {"cip": "39.***.***.***", "cid": "370000", "cname": "山东省"};

2、获取IP地址详细信息

地址:

​​http://ip.taobao.com/service/getIpInfo.php?ip=39.***.***.***​​

返回结果:

{
"code": 0,
"data": {
"ip": "39.***.***.***",
"country": "中国",
"area": "",
"region": "山东",
"city": "青岛",
"county": "XX",
"isp": "联通",
"country_id": "CN",
"area_id": "",
"region_id": "370000",
"city_id": "370200",
"county_id": "xx",
"isp_id": "100026"
}
}


举报

相关推荐

0 条评论