获取IP信息归属地
# 接口信息
- 接口状态 : 正常
- 请求方式 :
GET
- 返回格式 :
JSON
- 扣除积分数 :
1
# 请求地址
http://gateway.panyuwen.top/api/publicIp
1
# 请求参数
参数名 | 必选 | 类型 | 描述 |
---|---|---|---|
无 | 否 | 无 | 直接请求 |
# 响应参数
参数名称 | 类型 | 描述 |
---|---|---|
code | int | 响应码 |
data.ipAddress | string | 公网ip地址 |
data.city | string | 城市 |
data.countryName | string | 国家 |
message | string | 响应描述 |
# 代码示例
# 响应示例:
{
"ipAddress": "0:0:0:0:0:0:0:1",
"city": "重庆市",
"country": "中国"
},
1
2
3
4
5
2
3
4
5
# 在线调用:羊腿API开放平台 (opens new window)
帮助我们改善此页面! (opens new window)
上次更新: 2024/03/29, 18:47:19