1、本地IP信息
1.1 bilibili
Get请求
https://api.bilibili.com/x/web-interface/zone响应格式,支持IPV4/6
{ "code": 0, "message": "0", "ttl": 1, "data": { "addr": "IPV4/V6", "country": "", "province": "", "isp": "", "latitude": , "longitude": , "zone_id": , "country_code": } }
1.2 ip.sb
Get请求
https://api.ip.sb/ip直接返回IP,支持IPV4/6,如果提示403加上请求头例如
curl https://api.ip.sb/ip -A Mozilla
1.3 百度云盘
Get请求
https://d.pcs.baidu.com/rest/2.0/pcs/file?method=locateupload响应格式,支持IPV4/6
{ "bak_server": [ "c.pcs.baidu.com" ], "client_ip": "2a09:bac5:6249:1846::", "error_code": 0, "error_msg": "", "expire": 60, "host": "c.pcs.baidu.com", "newno": "", "quic_server": [ "https://c3.pcs.baidu.com" ], "request_id": 4348186802486655116, "server": [ "c2.pcs.baidu.com", "c3.pcs.baidu.com", "c.pcs.baidu.com" ], "server_time": 1751859058, "sl": 0 }
1.4 腾讯地图
Get请求
https://h5gw.map.qq.com/ws/location/v1/ip?key=2J4BZ-PBHH2-VYGU4-CODCH-C4EA2-W4BAU&apptag=h5loc_ip_loc&output=json https://apis.map.qq.com/ws/location/v1/ip?key=ACEBZ-FDXWP-WFRDV-VGS5Q-S2Q5K-HQBNA https://apis.map.qq.com/ws/location/v1/ip?key=RMJBZ-2IP64-CSNUJ-DLU7O-O3DF7-MMB5E https://apis.map.qq.com/ws/location/v1/ip?key=4RYBZ-4TRHF-GDOJU-NS5TO-3PIX7-LRF5F https://apis.map.qq.com/ws/location/v1/ip?key=N7XBZ-NX764-OFOUH-D5LJY-KZ3QK-6WFNX https://apis.map.qq.com/ws/location/v1/ip?key=3JLBZ-I2OWJ-3AAFI-KDLGM-UMDPO-Q6BRM https://apis.map.qq.com/ws/location/v1/ip?key=EIMBZ-RBNH4-NZQUG-X7RKQ-3SPPH-YSFCX https://apis.map.qq.com/ws/location/v1/ip?key=IDHBZ-7F2KM-SFY6S-6OQYE-6VWRE-WVB5N https://apis.map.qq.com/ws/location/v1/ip?key=GWSBZ-HTTWJ-QJIF2-KLHLC-X3WKV-ZZFV6 https://apis.map.qq.com/ws/location/v1/ip?key=T3EBZ-TJ7LI-YRBG2-5ZLUR-KD3OS-U6BJO https://apis.map.qq.com/ws/location/v1/ip?key=PTMBZ-GCQLW-SC2RG-R2FNI-HWPNQ-4PBQM https://apis.map.qq.com/ws/location/v1/ip?key=PTMBZ-GCQLW-SC2RG-R2FNI-HWPNQ-4PBQM https://apis.map.qq.com/ws/location/v1/ip?key=EP7BZ-JAOKQ-NIV55-GPNDX-CBPOQ-PHB7E https://apis.map.qq.com/ws/location/v1/ip?key=OIVBZ-MQZ6X-V2T4C-TLTXF-2X755-6CBAZ响应格式,支持IPV4/6
{ "status": 0, "message": "Success", "request_id": "dfc7409423aa4c1190d3b6f28f509565", "result": { "ip": "2a09:bac5:6249:78::c:3af", "location": { "lat": 21.0333, "lng": 105.85 }, "ad_info": { "nation": "越南", "province": "", "city": "", "district": "", "adcode": -1, "nation_code": 704 } } }
1.5 腾讯视频
Get请求
https://disp-qryapi.3g.qq.com/v1/dispatch响应格式
{ "code": 0, "unitResults": {}, "ipInfo": "美国##未知#", "extra": { "ip": "104.28.160.7" } }
1.6 网易邮箱大师
Get请求
https://dashi.163.com/fgw/mailsrv-ipdetail/detail响应格式,支持IPV4/6
{ "code": 200, "desc": "DONE", "success": "false", "result": { "country": "美国", "province": "加利福尼亚州", "provinceEn": "California", "city": "洛杉矶", "org": "UNKNOWN", "isp": "Cloudflare Inc.", "latitude": "34.0494", "longitude": "-118.2641", "timezone": "America/Los_Angeles", "countryCode": "US", "continentCode": "NA", "provinceCode": "CA", "continent": "北美洲", "county": "UNKNOWN", "ispId": "0", "ip": "2a09:bac5:6249:1173::1bd:76", "zone": "gz" } }
1.7 央视网
Get请求
https://ip.apps.cntv.cn/whereis?client=json响应格式,支持IPV4/6
{"isp_code":"","city_code":"","province_code":"","country_code":"CN","ip":"2a09:bac5:398e:16dc::247:10f"}
1.8 美图设计室
Get请求
https://webapi.designkit.com/common/ip_location响应格式
{ "reqid": "4d1d7c37-9a4c-4a33-ad98-2770b0f126c9", "code": 0, "data": { "104.28.156.220": { "city_id": 0, "country_id": 100000, "province_id": 810000, "nation_code": "CN" } } }
1.9 12306
Get 请求
https://exservice.12306.cn/excater/bonree/grip响应格式,支持IPV4/6
{ "di": "2a09:bac5:398e:16dc:0000:0000:0247:010f" }
2、IP归属查询
2.1 ip.sb
Get请求
https://api.ip.sb/geoip/${ip}响应格式,支持IPV4/6
{ "organization": "xTom", "isp": "xTom", "asn_organization": "SB Professional Services", "latitude": 51.2993, "asn": 24013, "continent_code": "EU", "offset": 3600, "country": "Germany", "timezone": "Europe/Berlin", "country_code": "DE", "ip": "185.222.222.222", "longitude": 9.491 }
2.2 ipinfo
Get请求
https://ipinfo.io/${ip}/json响应格式
{ "ip": "185.222.222.222", "hostname": "public-dns-a.dns.sb", "city": "Düsseldorf", "region": "North Rhine-Westphalia", "country": "DE", "loc": "51.2217,6.7762", "org": "AS24013 SB Professional Services", "postal": "40210", "timezone": "Europe/Berlin", "readme": "https://ipinfo.io/missingauth", "anycast": true }
2.3 淘宝
Get请求
https://ip.taobao.com/outGetIpInfo?accessKey=alibaba-inc&ip=${ip}响应格式
{ "data": { "area": "", "country": "欧洲", "isp_id": "xx", "queryIp": "185.222.222.222", "city": "XX", "ip": "185.222.222.222", "isp": "XX", "county": "", "region_id": "xx", "area_id": "", "county_id": null, "region": "XX", "country_id": "EU", "city_id": "xx" }, "msg": "query success", "code": 0 }
2.4 美团
Get请求
https://apimobile.meituan.com/locate/v2/ip/loc?rgeo=true&ip=${ip}响应格式
{"data":{"lng":53.98,"fromwhere":"mars-mt","ip":"193.123.81.105","rgeo":{"country":"阿联酋","province":"阿布扎比"},"lat":24.01}}
评论区