【客户端信息ip】接口


接口地址

https://api.cenguigui.cn/api/UserInfo/

返回格式

JSON

请求方式:

GET

请求示例:

https://api.cenguigui.cn/api/UserInfo/?ip=101.88.133.75

参数说明

名称 必填 类型 说明
ipstring输入IP地址

返回数据

{
    "code": 200,
    "msg": "请求成功",
    "data": {
        "ip": "223.104.79.187",
        "country": "中国",
        "addr": "",
        "city": "",
        "district": "",
        "isp": "移动/数据上网公共出口",
        "location": "",
        "area": "移动/数据上网公共出口",
        "os": "Windows 10",
        "browser": "谷歌浏览器"
    }
}

调用实例

接口二:https://api.cenguigui.cn/api/UserInfo/ipinfo/?ip=223.104.79.187
不加ip自动定位
返回参数如下:
{
    "code": 200,
    "msg": "请求成功-精确地ip地址查询",
    "data": {
        "ip": "223.104.79.187",
        "ip_int": 3748155323,
        "location": "中国广东深圳南山",
        "continent": "亚洲",
        "country": "中国",
        "country_code": "CN",
        "province": "广东",
        "city": "深圳",
        "district": "南山",
        "street": "",
        "isp": "移动",
        "latitude": "22.53291",
        "longitude": "113.93029",
        "area_code": "440305",
        "zip_code": "518000",
        "time_zone": "Asia/Shanghai",
        "street_history": [
            "广东深圳南山高新中一道"
        ],
        "risk": {
            "risk_score": 0,
            "risk_level": "无风险",
            "is_proxy": "否",
            "proxy_type": "",
            "risk_tag": ""
        }
    },
    "time": "2025-03-22 21:23:24",
    "tips": "笒鬼鬼api:api.cenguigui.cn"
}

示例代码

						
黑暗交替
本站已安全运行449天7时7分39秒

赞助一下