获取外网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"
	}
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章