资源 - 外网ip获取api
<!--[toc]-->
本文所有外网ip是1.1.1.1
作为演示例子
我自己的api
xApi
https://api.x-tools.top/
| 去看看- 返回的是Json格式字符串
{ "WelCome": "Good Luck", "You_ip": "1.1.1.1", "By_Q": 142473282 }
搜狐 api
搜狐外网ip的api
https://pv.sohu.com/cityjson?ie=utf-8
| 去看看- 返回的是字符串需要自行正则获取
var returnCitySN = {"cip": "1.1.1.1", "cid": "xxxxxx", "cname": "江苏省常州市"};
未知 api
api链接:
https://api.ipify.org/?format=json
| 去看看- 返回的是JSON格式的数据
{ "ip": "1.1.1.1" }
Alist作者的api
Alist作者的获取ip信息api
https://api.nn.ci/ip
| 去看看返回JSON格式的数据
{ "ip": "1.1.1.1", "region": "亚洲", "country": "中国", "province": "江苏", "city": "南京", "isp": "电信/基站WiFi" }
cip.cc的api
测速网的api
测速网的获取ip及地址信息的api
https://api-v3.speedtest.cn/ip
| 去看看返回JSON格式的数据
{ "code": 0, "data": { "country": "中国", "province": "江苏", "city": "盐城", "district": "亭湖区", "isp": "中国电信", "lon": "xx", "lat": "xx", "countryCode": "CN", "ip": "1.1.1.1", "operator": "中国电信" }, "msg": "ok" }
又拍云
又拍云的外网ip以及地理位置api
https://pubstatic.b0.upaiyun.com/?_upnode
| 去看看- 返回JSON格式的数据
不能保证此链接长久有效,使用时请注意!失效后请联系我删除。
{ "addr": "36.99.120.207", "server": "marco/2.16.1", "server_time": "2022-06-25 18:01:02", "remote_addr": "1.1.1.1", "addr_location": { "country": "中国", "isp": "电信", "province": "河南", "continent": "亚洲", "city": "濮阳" }, "hostname": "ctn-ha-lya1-099", "remote_addr_location": { "country": "中国", "isp": "电信", "province": "江苏", "continent": "亚洲", "city": "" } }
@(chaiquan_3) @(chaiquan_3) @(chaiquan_3)