查询客户端UA及IP详细信息的API

发布于 / 教程 / 0 条评论

此API提供详细的Ip地址及客户端UA信息,支持最新的Windows10检测

接口地址


https://api.lylares.com/ipinfo/

请求示例


https://api.lylares.com/ipinfo/?AppKey={$AppKey}&ip={$ip}

ip为非必须参数,默认返回客户端的ip信息。

返回示例

*部分为博主手动打码 O(∩_∩)O~...


{
    "code": 200,
    "data": {
        "Ua": [
            "Google Chrome",
            "chrome",
            "67.0.3396.79",
            "Windows",
            "windows10",
            "10",
            null,
            null,
            null
        ],
        "Ipinfo": {
            "Area": {
                "ip": "74.120.***.***",
                "country": "美国",
                "area": "",
                "region": "弗吉尼亚",
                "city": "***",
                "county": "XX",
                "isp": "XX",
                "country_id": "US",
                "area_id": "",
                "region_id": "***",
                "city_id": "***",
                "county_id": "xx",
                "isp_id": "xx"
            }
        }
    }
}
转载原创文章请注明,转载自: LYLARES'S BLOG » 查询客户端UA及IP详细信息的API