|
厌倦了滚动浏览相同的帖子?当您创建帐户后,您将始终回到您离开的地方。使用帐户,不仅可以享受无广告的清爽界面!
您需要 登录 才可以下载或查看,没有账号?注册
×
Free IP information query APIs / 免费IP信息查询API接口,可直接访问,无任何鉴权
该存储库收集了各种免费的IP查询API,无需配置任何密钥直接可访问,使大家能够快速访问IP信息,如地理位置、ISP详细信息和网络类型。请根据自己的需求选择合适的API,持续更新中,欢迎star。
本存储库由Hmily收集并分享
https://github.com/ihmily/ip-info-api
API列表
1.可查询本机IP和通过IP查询信息
- https://webapi-pc.meitu.com/common/ip_location
- https://www.ip.cn/api/index?ip=&type=0
- https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true
- https://api.vore.top/api/IPdata?ip=
- https://api.ip.sb/geoip/
- https://api.ip2location.io/
- https://realip.cc/
- http://demo.ip-api.com/json/?lang=zh-CN
- https://ip-api.io/json
- https://ipapi.co/json/
- https://api.ipapi.is
- https://api.ip.sb/geoip
- https://api.qjqq.cn/api/Local
复制代码
2.只可查询本机(访客)IP信息
- https://ip.useragentinfo.com/json
- http://httpbin.org/ip
- https://cdid.c-ctrip.com/model-poc2/h
- https://vv.video.qq.com/checktime?otype=ojson
- https://api.uomg.com/api/visitor.info?skey=1
- https://test.ipw.cn/api/ip/myip?json
- https://api.ipify.org
- https://ipv4.my.ipinfo.app/api/ipDetails.php
复制代码
3.只可通过IP查询信息
- http://opendata.baidu.com/api.php?co=&resource_id=6006&oe=utf8&query=
- https://get.geojs.io/v1/ip/geo/121.8.215.106.json
- https://ipinfo.io/widget/demo/121.8.215.106
- https://ipapi.com/ip_api.php?ip=121.8.215.106
- https://db-ip.com/demo/home.php?s=121.8.215.106
复制代码
4.只需要获取IP
- https://github.com/ihmily/ip-info-api#address-4.1
复制代码
以下是查询方法
示例:https://webapi-pc.meitu.com/common/ip_location?ip=
请求类型:GET
请求参数:ip(可选)
请求示例:
- # 查询本机ip
- https://webapi-pc.meitu.com/common/ip_location
- # 通过ip查询信息
- https://webapi-pc.meitu.com/common/ip_location?ip=121.8.215.106
复制代码
示例结果:
- {
- "reqid": "40b7cf49-ad3f-4184-acd3-9f5a574dc7c4",
- "code": 0,
- "data": {
- "121.8.215.106": {
- "area_code": "86",
- "city": "广州市",
- "city_id": 160063402,
- "continent": "亚洲",
- "continent_code": "AP",
- "country_id": 100000,
- "isp": "电信",
- "latitude": 23.3283,
- "longitude": 113.75837,
- "nation": "中国",
- "nation_code": "CN",
- "province": "广东",
- "province_id": 440000,
- "subdivision_1_iso_code": "*",
- "subdivision_1_name": "广东",
- "subdivision_2_iso_code": "*",
- "subdivision_2_name": "广州市",
- "time_zone": "UTC+8"
- }
- }
- }
复制代码 |
|