
免费的 ip 所属地区 api 接口
为找出免费的 ip 所属地区 api 接口,您可以参考以下推荐:
- ip-api.com:该 api 提供详细的 ip 信息,包括国家、地区、城市、时区和 isp。支持多语言显示,样例请求和响应如下:
请求:
http://ip-api.com/json/117.136.12.79?lang=zh-cn
响应:
{
"status": "success",
"country": "中国",
"countrycode": "cn",
"region": "gd",
"regionname": "广东",
"city": "广州市",
"zip": "",
"lat": 23.1181,
"lon": 113.2539,
"timezone": "asia/shanghai",
"isp": "china mobile communications corporation",
"org": "china mobile",
"as": "as56040 china mobile communications corporation",
"query": "117.136.12.79"
}- 百度 ip 定位服务:该 api 由百度提供,返回 ip 所在的省、市、运营商等信息。
请求:
http://opendata.baidu.com/api.php?query=117.136.12.79&co=&res...
响应:
{
"status": "0",
"t": "",
"set_cache_time": "",
"data": [
{
"location": "广东省广州市 移动",
"titlecont": "ip地址查询",
"origip": "117.136.12.79",
"origipquery": "117.136.12.79",
"showlamp": "1",
"showlikeshare": 1,
"shareimage": 1,
"extendedlocation": "",
"originquery": "117.136.12.79",
"tplt": "ip",
"resourceid": "6006",
"fetchkey": "117.136.12.79",
"appinfo": "",
"role_id": 0,
"disp_type": 0
}
]
}- https://ip.useragentinfo.com/api:该 api 提供 ip 所在的国家、省份、城市、运营商等信息。同样具有没有频率限制的特点。
请求:
https://ip.useragentinfo.com/json?ip=117.136.12.79
响应:
{
"country": "中国",
"short_name": "cn",
"province": "广东省",
"city": "",
"area": "",
"isp": "移动",
"net": "手机网络",
"ip": "117.136.12.79",
"code": 200,
"desc": "success"
}- https://api.vore.top/api/ipdata:该 api 提供 ip 所属的省、市、区县、运营商等信息。同样具有自动区分 ipv4 和 ipv6 的特点。
请求:
https://api.vore.top/api/IPdata?ip=117.136.12.79
响应:
{
"code": 200,
"msg": "SUCCESS",
"ipinfo": {
"type": "ipv4",
"text": "117.136.12.79",
"cnip": true
},
"ipdata": {
"info1": "广东省",
"info2": "广州市",
"info3": "",
"isp": "基站"
},
"adcode": {
"o": "广东省广州市 - 基站",
"p": "广东",
"c": "广州",
"n": "广东-广州",
"r": "广东-广州",
"a": "440100",
"i": true
},
"tips": "接口由VORE-API(https://api.vore.top/)免费提供",
"time": 1666772899
}此外,这些 api 的使用方式通常是通过 http get 请求,在请求中附带 ip 地址作为查询参数。您可以根据各自 api 的文档来使用。









