专业级数据接口服务

ip地址查询 - 提供稳定、极速的调用体验

ip地址查询 v1.0

最后更新: 2026-04-27 22:57:47

查询IP地址,详细到县级

免费接口 调用: 1 响应: <100ms 需密钥

接口信息

接口地址
https://cqapi.yuncampus.cn/api/ip/index.php
请求方式 GET
返回格式 json

调用统计

1
今日调用
1
累计调用
请求示例 https://cqapi.yuncampus.cn/api/ip/index.php?apikey=[你开通的apikey]&ip=[要查询的IP地址(如果不传,接口会返回请求来源IP的信息)]

请求参数

参数名 必填 类型 说明
apikey string 你开通的apikey
ip string 要查询的IP地址(如果不传,接口会返回请求来源IP的信息)

返回参数

参数名 类型 说明
data.lng float 经度坐标
data.fromwhere float 数据来源(mars-mt = 美团地图服务)
data.ip string 查询的 IP 地址
data.rgeo.country string 国家名称
data.rgeo.province string 省份名称
data.rgeo.adcode string 行政区划代码
data.rgeo.city string 城市名称
data.rgeo.district string 区县名称

返回示例

{
    "data": {
        "lng": 119.4,
        "fromwhere": "mars-mt",
        "ip": "114.114.114.114",
        "rgeo": {
            "country": "中国",
            "province": "江苏省",
            "adcode": "321084",
            "city": "扬州市",
            "district": "高邮市"
        },
        "lat": 33
    }
}