IP地址接口小结

1 百度
http://api.map.baidu.com/location/ip?ak=F454f8a5efe5e577997931cc01de3974&ip=58.67.143.169

{"address":"CN|广东|广州|None|DXTNET|0|0","content":{"address_detail":{"province":"广东省","city":"广州市","district":"","street":"","street_number":"","city_code":257},"address":"广东省广州市","point":{"y":"2629614.08","x":"12613487.11"}},"status":0}

**********************************

2 新浪
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=58.67.143.169

{"ret":1,"start":-1,"end":-1,"country":"中国","province":"广东","city":"广州","district":"","isp":"","type":"","desc":""}

**********************************

3 淘宝
http://ip.taobao.com/service/getIpInfo.php?ip=58.67.143.169

{"code":0,"data":{"country":"中国","country_id":"CN","area":"华南","area_id":"800000","region":"广东省","region_id":"440000","city":"广州市","city_id":"440100","county":"","county_id":"-1","isp":"鹏博士","isp_id":"1000143","ip":"58.67.143.169"}}

**********************************

4 126
http://ip.ws.126.net/ipquery?ip=58.67.143.169
var lo="广东省", lc="广州市"; var localAddress={city:"广州市", province:"广东省"}

上一篇:【C#编程基础学习笔记】6---变量的命名


下一篇:文本处理三剑客之grep&正则表达式