一个API接口,查询IP信息的

感觉不错,推荐
http://ip-api.com/docs/api:json 
例如
{"as":"AS4134 No.31,Jin-rong Street","city":"Shenzhen","country":"China","countryCode":"CN","isp":"China Telecom Guangdong","lat":22.5333,"lon":114.1333,"org":"China Telecom Guangdong","query":"183.17.226.179","region":"GD","regionName":"Guangdong","status":"success","timezone":"Asia/Shanghai","zip":""}
判断是否status及countryCode即可
送香港IP一个:http://ip-api.com/json/203.198.23.198
唯一不爱国的是竟然标注这样:
{"as":"AS4760 PCCW Limited","city":"Mong Kok","country":"Hong Kong","countryCode":"HK","isp":"Netvigator","lat":22.3167,"lon":114.1667,"org":"Netvigator","query":"203.198.23.198","region":"KYT","regionName":"Yau Tsim Mong","status":"success","timezone":"Asia/Hong_Kong","zip":""}
啊,在国外,香港真的不标注为CN
已邀请:

要回复问题请先登录注册