求免费的ip所属地区的api接口?

求免费的ip所属地区接口?

求大哥们给推荐几个,感谢!

阅读 1.8k
2 个回答
  1. ip-api.com ,可切换显示语言
    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"
    }
  2. 百度
    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
直接调用即可【没有频率限制】: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"
}
  1. https://api.vore.top/api/IPdata
    直接调用即可【没有频率限制,自动区分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
    }
    

用纯真IP库,完全免费,毫秒级返回

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
极客观点
子站问答
访问
宣传栏