开放的IP地址归属地查询API

查询 IP 地址的归属地,核心是依赖 IP库数据。

百度

API:https://opendata.baidu.com/api.php?query=113.89.235.182&co=&resource_id=6006&oe=utf8

响应:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"status": "0",
"t": "",
"set_cache_time": "",
"data": [
{
"ExtendedLocation": "",
"OriginQuery": "113.89.235.182",
"appinfo": "",
"disp_type": 0,
"fetchkey": "113.89.235.182",
"location": "广东省深圳市 电信",
"origip": "113.89.235.182",
"origipquery": "113.89.235.182",
"resourceid": "6006",
"role_id": 0,
"shareImage": 1,
"showLikeShare": 1,
"showlamp": "1",
"titlecont": "IP地址查询",
"tplt": "ip"
}
]
}

太平洋

API:http://whois.pconline.com.cn/ipJson.jsp?ip=117.136.12.79&json=true

响应:

1
2
3
4
5
6
7
8
9
10
11
12
{
"ip": "113.89.235.182",
"pro": "广东省",
"proCode": "440000",
"city": "深圳市",
"cityCode": "440300",
"region": "",
"regionCode": "0",
"addr": "广东省深圳市 电信",
"regionNames": "",
"err": ""
}

UserAgentInfo

API:https://ip.useragentinfo.com/json?ip=113.89.235.182

说明:https://ip.useragentinfo.com/api

响应:

1
2
3
4
5
6
7
8
9
10
11
12
{
"country": "中国",
"short_name": "CN",
"province": "广东省",
"city": "深圳市",
"area": "南山区",
"isp": "电信",
"net": "",
"ip": "113.89.235.182",
"code": 200,
"desc": "success"
}

svlik

API:https://www.svlik.com/t/ipapi/ip.php?ip=113.89.235.182&type=0

说明:https://www.svlik.com/t/ipapi/

响应:

1
2
3
4
5
6
7
{
"ip": "113.89.235.182",
"beginip": "113.89.4.0",
"endip": "113.89.235.255",
"country": "广东省深圳市",
"area": "电信"
}
作者

光星

发布于

2022-08-02

更新于

2024-01-18

许可协议

评论