赞
踩
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://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
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
地址①: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"
- }
- }
- }
地址②:https://www.ip.cn/api/index?ip=&type=0
请求类型:GET
请求参数:ip(可选)、type
请求示例:
- # 查询本机ip(type=0)
- https://www.ip.cn/api/index?ip=&type=0
-
- # 通过ip查询信息(type=1)
- https://www.ip.cn/api/index?ip=121.8.215.106&type=1
对于国外ip的位置信息不太准确
示例结果:
- {
- "rs": 1,
- "code": 0,
- "address": "中国 广东省 广州市 电信",
- "ip": "121.8.215.106",
- "isDomain": 0
- }
地址③:https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true
请求类型:GET
请求参数(可选):ip、json
请求示例:
- # 查询本机ip
- https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true
-
- # 通过ip查询信息
- https://whois.pconline.com.cn/ipJson.jsp?ip=121.8.215.106&json=true
对于国外ip的位置信息不太准确
示例结果:
- {
- "ip": "121.8.215.106",
- "pro": "广东省",
- "proCode": "440000",
- "city": "广州市",
- "cityCode": "440100",
- "region": "",
- "regionCode": "0",
- "addr": "广东省广州市 电信",
- "regionNames": "",
- "err": ""
- }
地址④:https://api.vore.top/api/IPdata?ip=
请求类型:GET
请求参数(可选):ip
请求示例:
- # 查询本机ip
- https://api.vore.top/api/IPdata?ip=
-
- # 通过ip查询信息
- https://api.vore.top/api/IPdata?ip=121.8.215.106
示例结果:
- {
- "code": 200,
- "msg": "SUCCESS",
- "ipinfo": {
- "type": "ipv4",
- "text": "121.8.215.106",
- "cnip": true
- },
- "ipdata": {
- "info1": "广东省",
- "info2": "广州市",
- "info3": "增城",
- "isp": "电信"
- },
- "adcode": {
- "o": "广东省广州市增城 - 电信",
- "p": "广东",
- "c": "广州",
- "n": "广东-广州",
- "r": "广东-广州",
- "a": "440100",
- "i": true
- },
- "tips": "接口由VORE-API(https:\/\/api.vore.top\/)免费提供",
- "time": 1708576755
- }
请求类型:GET
请求参数(可选):你的ip
请求示例:
- # 查询本机ip
- https://api.ip.sb/geoip/
-
- # 通过ip查询信息
- https://api.ip.sb/geoip/121.8.215.106
示例结果:
- {
- "organization": "China Telecom",
- "longitude": 113.2539,
- "city": "Guangzhou",
- "timezone": "Asia/Shanghai",
- "isp": "China Telecom",
- "offset": 28800,
- "region": "Guangdong",
- "asn": 4134,
- "asn_organization": "Chinanet",
- "country": "China",
- "ip": "121.8.215.106",
- "latitude": 23.1181,
- "continent_code": "AS",
- "country_code": "CN",
- "region_code": "GD"
- }
地址⑥:https://api.ip2location.io/
请求类型:GET
请求参数(可选):ip
请求示例:
- # 查询本机ip
- https://api.ip2location.io/
-
- # 通过ip查询信息
- https://api.ip2location.io/?ip=121.8.215.106
示例结果:
- {
- "ip": "121.8.215.106",
- "country_code": "CN",
- "country_name": "China",
- "region_name": "Guangdong",
- "city_name": "Guangzhou",
- "latitude": 23.127361,
- "longitude": 113.26457,
- "zip_code": "510140",
- "time_zone": "+08:00",
- "asn": "4134",
- "as": "Asia Pacific Network Information Centre",
- "is_proxy": true,
- "message": "Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."
- }
地址⑦:RealIP
请求类型:GET
请求参数(可选):ip
请求示例:
- # 查询本机ip
-
- curl realip.cc
-
- https://realip.cc/
-
- https://realip.cc/simple # 只返回ip
-
- # 通过ip查询信息
- https://realip.cc/?ip=121.8.215.106
-
示例结果:
- {
- "ip": "103.143.161.60",
- "city": "Hong Kong",
- "province": null,
- "country": "Hong Kong",
- "continent": "Asia",
- "isp": "TWOWIN CO., LIMITED",
- "time_zone": "Asia/Hong_Kong",
- "latitude": 22.2842,
- "longitude": 114.1759,
- "postal_code": null,
- "iso_code": "HK",
- "network": "103.143.160.0/23",
- "notice": "api文档在/docs路径下,调用并发数是有限制的 ©2021-09-27->now",
- "provider": "Powered by Bboysoul",
- "blog": "https://www.bboy.app",
- "tg_group": "https://t.me/bboyapp",
- "data_updatetime": 202403010,
- "count": 10345364
- }
地址⑧:http://demo.ip-api.com/json/?fields=66842623&lang=zh-CN
请求类型:GET
请求参数(可选):ip、lang ...
请求示例:
- # lang optional value
- en:English (default) 英语(默认)
- zh-CN:中国 (Chinese)
- de:Deutsch (German) Deutsch (德语)
- es:Español (Spanish) Español (西班牙语)
- fr:Français (French) Français (法语)
- ja:日本語 (Japanese) 日本语( Japanese)
- ru:Русский (Russian) Русский (俄语)
-
- # 注意是http !!!
-
- # 查询本机ip
- http://demo.ip-api.com/json/?fields=66842623&lang=zh-CN
-
- # 通过ip查询信息
- http://demo.ip-api.com/json/121.8.215.106?fields=66842623&lang=zh-CN
-
- API docs:
- https://ip-api.com/docs/api:json
示例结果:
- {
- "status": "success",
- "continent": "亚洲",
- "continentCode": "AS",
- "country": "中国",
- "countryCode": "CN",
- "region": "GD",
- "regionName": "广东",
- "city": "广州市",
- "district": "",
- "zip": "",
- "lat": 23.1181,
- "lon": 113.2539,
- "timezone": "Asia/Shanghai",
- "offset": 28800,
- "currency": "CNY",
- "isp": "Chinanet",
- "org": "Chinanet GD",
- "as": "AS4134 CHINANET-BACKBONE",
- "asname": "CHINANET-BACKBONE",
- "mobile": false,
- "proxy": true,
- "hosting": false,
- "query": "121.8.215.106"
- }
请求类型:GET
请求参数(可选):ip
请求示例:
- # 查询本机ip
- https://ip-api.io/json
-
- # 通过ip查询信息
- https://ip-api.io/json?ip=121.8.215.106
示例结果:
- {
- "callingCode": "86",
- "city": "Guangzhou",
- "countryCapital": "Beijing",
- "country_code": "CN",
- "country_name": "China",
- "currency": "CNY",
- "currencySymbol": "¥",
- "emojiFlag": "声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/723439推荐阅读
相关标签
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。