推荐!一个免费的 IP 地址归属地查询接口 ip9.com.cn
## 免费 IP 归属地查询 API
- 免费,不限次,随便用,快速接入,无需注册
- 支持 IPv4 / IPv6 ,全球 IP
- 返回国家、省份、城市、区县、运营商、经纬度等
### 请求示例
```bash
# 查当前 IP
curl https://ip9.com.cn/get
# 查指定 IP
curl "https://ip9.com.cn/get?ip=58.30.0.0"
```
### 响应示例
```json
{
"ret": 200,
"data": {
"ip": "58.30.0.0",
"country": "中国",
"country_code": "cn",
"prov": "北京",
"city": "北京",
"city_code": "beijing",
"city_short_code": "bj",
"area": "东城",
"post_code": "100000",
"area_code": "010",
"isp": "中国移动",
"lng": "116.41005",
"lat": "39.93157",
"big_area": "华北"
}
}
```
官网: [https://www.ip9.com.cn/](https://www.ip9.com.cn/)
---
原文链接:[点击查看](https://www.v2ex.com/t/1227126)
- 免费,不限次,随便用,快速接入,无需注册
- 支持 IPv4 / IPv6 ,全球 IP
- 返回国家、省份、城市、区县、运营商、经纬度等
### 请求示例
```bash
# 查当前 IP
curl https://ip9.com.cn/get
# 查指定 IP
curl "https://ip9.com.cn/get?ip=58.30.0.0"
```
### 响应示例
```json
{
"ret": 200,
"data": {
"ip": "58.30.0.0",
"country": "中国",
"country_code": "cn",
"prov": "北京",
"city": "北京",
"city_code": "beijing",
"city_short_code": "bj",
"area": "东城",
"post_code": "100000",
"area_code": "010",
"isp": "中国移动",
"lng": "116.41005",
"lat": "39.93157",
"big_area": "华北"
}
}
```
官网: [https://www.ip9.com.cn/](https://www.ip9.com.cn/)
---
原文链接:[点击查看](https://www.v2ex.com/t/1227126)
评论
暂无评论。