【客户端信息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": "117.188.11.189",
        "location": "中国贵州省",
        "isp": "移动",
        "area": "中国贵州省 移动",
        "os": "Windows 10",
        "browser": "Google Chrome"
    },
    "info": {
        "request": {
            "state": "0e9370c6095a2003b4216806d244c307",
            "request_id": "646e19ffd0508",
            "method": "GET",
            "api_id": "1",
            "api_action": "UserInfo",
            "api_name": "客户端信息",
            "path": "/api/UserInfo/?format=json",
            "query": {
                "format": "json"
            },
            "cdn_node": "当前请求由阿里云CDN加速"
        },
        "developer": {
            "author": "笒鬼鬼",
            "home": "https://www.cenguigui.cn",
            "mail": "cengugiui@qq.com",
            "notice": "交流Q群 695288151",
            "time": "2023-05-24 22:06:55"
        }
    }
}

调用实例

接口二:https://api.cenguigui.cn/api/UserInfo/api.php?ip=101.88.133.75
https://api.cenguigui.cn/api/UserInfo/api.php
不加ip自动定位
返回参数如下:
{
    "code": "200",
    "msg": "请求成功",
    "data": {
        "locations": [
            {
                "name": "上海市黄浦区九江路518号",
                "nameid": "黄浦区 上海市 中华人民共和国",
                "displayName": "上海市黄浦区",
                "locality": "黄浦区",
                "adminDistrict": "上海市",
                "adminDistrict2": "",
                "postalCode": "",
                "countryRegion": "中华人民共和国",
                "countryCode": "CN",
                "dataSources": [
                    {
                        "id": "101020400",
                        "coordinates": {
                            "lat": 31.23150208,
                            "lon": 121.4850103
                        },
                        "provider": "cma",
                        "distance": 0.7
                    }
                ],
                "entityType": "Address",
                "confidence": "High",
                "coordinates": {
                    "lat": 31.235,
                    "lon": 121.48
                },
                "boundingBox": {
                    "sw": {
                        "lat": 31.231167282429322,
                        "lon": 121.4739668489544
                    },
                    "ne": {
                        "lat": 31.238892717570675,
                        "lon": 121.4860131510456
                    }
                }
            }
        ],
        "info": {
            "request": {
                "state": "7c6e714bcbb2efb4fa77c9a70f9ecba9",
                "request_id": "654f9d2989490",
                "method": "GET",
                "api_id": "1",
                "api_title": "音乐播放器集成接口",
                "cdn_node": "当前请求由阿里云CDN加速"
            },
            "developer": {
                "author": "笒鬼鬼",
                "home": "https://www.cenguigui.cn",
                "mail": "cengugiui@qq.com",
                "notice": "交流Q群 695288151",
                "time": "2023-11-11 23:26:33",
                "接口说明": "聚合当下热门音乐平台,拥有QQ、酷狗、网易、酷我、咕咪、千千、荔枝FM音乐。"
            }
        }
    }
}

示例代码

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

赞助一下