3.133.157.133: 美国俄亥俄哥伦布 亚马逊
请求接口(GET)
https://ip.zhisg.com/q.php?ip=[ip地址]
返回数据格式(json)
{"errcode":0, "msg":"查询成功", "data":{"country":"中国", "area":"0", "province":"福建省", "city":"莆田市", "isp":"联通", "ip":"175.44.42.241", "v":4}}
jQuery Ajax 调用例子
$.get("https://ip.zhisg.com/q.php?ip=175.44.42.241",
function(dataBody,status){
let ret = JSON.parse(dataBody);
console.log(ret);
});
响应返回值
{"errcode":0, "msg":"success", "data":{"country":"中国", "area":"0", "province":"福建省", "city":"莆田市", "isp":"电信", "ip":"220.161.142.20", "v":4}}