网络IP 查看地址以及获取网络IP 接口

接口 2021-09-03 阅读数: 719

本站接口

GET 请求 @u不传查询本机IP地址
http://www.xiaotaowl.com/content/templates/xiaotaogit/api/?t=ip&u=网络IP

返回
{"code":"2","msg":{"ip":"000.00.00.00","shen":"省份","shi":"市","xian":"县","add":"某省某市 电信"}}

太平洋接口

GET 请求 @ip不传查询本机IP地址
http://whois.pconline.com.cn/ipJson.jsp?json=true&ip=网络IP

返回
{"ip":"","pro":"省","proCode":"","city":"市","cityCode":"","region":"","regionCode":"0","addr":"某省某市 电信","regionNames":"","err":""}

阿里接口

GET 请求
https://tbip.alicdn.com/api/queryip

返回
{"code":0,"data":{"country":"中国","country_id":"CN","region":"省","region_id":"","city":"市","city_id":"","county":"XX","county_id":"xx","isp":"电信","isp_id":"","ip":"网络IP"}}

文/小涛