{"id":13570254,"url":"https://github.com/ihmily/ip-info-api","last_synced_at":"2026-01-28T15:06:51.349Z","repository":{"id":227386338,"uuid":"761546988","full_name":"ihmily/ip-info-api","owner":"ihmily","description":" Free IP information query APIs / 免费IP信息查询API接口，GET请求，可直接访问，无任何鉴权","archived":false,"fork":false,"pushed_at":"2025-08-18T13:35:11.000Z","size":144,"stargazers_count":1238,"open_issues_count":2,"forks_count":113,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-08-18T15:31:24.130Z","etag":null,"topics":["ip","ip-geolocation","ipaddress-tracker","ipapi","ipinfo"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ihmily.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-22T03:07:32.000Z","updated_at":"2025-08-18T13:35:14.000Z","dependencies_parsed_at":"2024-03-14T07:36:54.981Z","dependency_job_id":"9332f0db-37ad-4b0b-bbc7-e9427f036bf2","html_url":"https://github.com/ihmily/ip-info-api","commit_stats":null,"previous_names":["ihmily/ip-info-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ihmily/ip-info-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2Fip-info-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2Fip-info-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2Fip-info-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2Fip-info-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihmily","download_url":"https://codeload.github.com/ihmily/ip-info-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2Fip-info-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ip","ip-geolocation","ipaddress-tracker","ipapi","ipinfo"],"created_at":"2024-08-01T14:00:50.237Z","updated_at":"2026-01-28T15:06:51.341Z","avatar_url":"https://github.com/ihmily.png","language":null,"readme":"# 说明\n\n该存储库收集了各种免费的IP查询API，无需配置任何key直接可访问，使大家能够快速访问IP信息，如地理位置、ISP详细信息和网络类型。请根据自己的需求选择合适的API，持续更新中，欢迎star和pr\n\n\u0026emsp;\n\n### API列表\n\n1.可查询本机IP和通过IP查询信息\n\n[https://webapi-pc.meitu.com/common/ip_location](#address-1.1) **(已失效)**\n\n[https://www.ip.cn/api/index?ip=\u0026type=0](#address-1.2)  **(已失效)**\n\n[https://whois.pconline.com.cn/ipJson.jsp?ip=\u0026json=true](#address-1.3) \n\n[https://api.vore.top/api/IPdata?ip=](#address-1.4) \n\n[https://api.ip.sb/geoip/](#address-1.5) \n\n[https://api.ip2location.io/](#address-1.6) \n\n[https://realip.cc/](#address-1.7)\n\n[http://demo.ip-api.com/json/?lang=zh-CN](#address-1.8)\n\n[https://ip-api.io/json](#address-1.9)\n\n[https://ipapi.co/json/](#address-1.10)\n\n[https://api.ipapi.is](#address-1.11)\n\n[https://api.ip.sb/geoip](#address-1.12)\n\n[https://api.qjqq.cn/api/Local](#address-1.13) **(已失效)**\n\n[http://ip-api.com/json/?lang=zh-CN](#address-1.14)\n\n[https://searchplugin.csdn.net/api/v1/ip/get](#address-1.15)  **(已失效)**\n\n[https://api.db-ip.com/v2/free/self](#address-1.16)\n\n[https://freeipapi.com/api/json](#address-1.17)\n\n[https://ipwhois.app/json/?format=json](#address-1.18)\n\n2.只可查询本机(访客)IP信息\n\n[https://ip.useragentinfo.com/json](#address-2.1)  **(已失效)**\n\n[http://httpbin.org/ip](#address-2.2) \n\n[https://cdid.c-ctrip.com/model-poc2/h](#address-2.3) \n\n[https://vv.video.qq.com/checktime?otype=ojson](#address-2.4) \n\n[https://api.uomg.com/api/visitor.info?skey=1](#address-2.5) \n\n[https://test.ipw.cn/api/ip/myip?json](#address-2.6) \n\n[https://api.ipify.org](#address-2.7) \n\n[https://ipv4.my.ipinfo.app/api/ipDetails.php](#address-2.8) \n\n[https://g3.letv.com/r?format=1](#address-2.9) \n\n[https://iplark.com/ipstack](#address-2.10) \n\n[https://qifu-api.baidubce.com/ip/local/geo/v1/district](#address-2.11) \n\n[https://r.inews.qq.com/api/ip2city](#address-2.12) \n\n[https://myip.ipip.net/json](#address-2.13) \n\n[https://ifconfig.me/all.json](#address-2.14) \n\n[https://geolocation-db.com/json](#address-2.15) \n\n[https://api.myip.com](#address-2.16) \n\n[https://ipapi.co/json](#address-2.17) \n\n[https://wtfismyip.com/json](#address-2.18) \n\n[https://api.ipbase.com/v1/json](#address-2.19) \n\n[https://api.ipquery.io/?format=json](#address-2.20)\n\n[https://1.1.1.1/cdn-cgi/trace](#address-2.21) \n\n[https://check.torproject.org/api/ip](#address-2.22) \n\n[https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo](#address-2.23)\n\n[https://i.news.qq.com/api/ip2city](#address-2.24)\n\n[https://ipv4.gdt.qq.com/get_client_ip](#address-2.25)\n\n3.只可通过IP查询信息\n\n[http://opendata.baidu.com/api.php?co=\u0026resource_id=6006\u0026oe=utf8\u0026query=](#address-3.1) \n\n[https://get.geojs.io/v1/ip/geo/121.8.215.106.json](#address-3.2) \n\n[https://ipinfo.io/widget/demo/121.8.215.106](#address-3.3) \n\n[https://ipapi.com/ip_api.php?ip=121.8.215.106](#address-3.4)  **(已失效)**\n\n[https://db-ip.com/demo/home.php?s=121.8.215.106](#address-3.5) \n\n[https://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1\u0026ip=121.8.215.106](#address-3.6)  **(已失效)**\n\n4.[根据地区反查IP信息](#address-4.1) \n\n5.[只需要获取IP](#address-5.1) \n\n\u0026emsp;\n\u003ca name=\"address-1.1\"\u003e\u003c/a\u003e\n\n### 1.查询本机IP或通过IP反查\n\n**地址①**：https://webapi-pc.meitu.com/common/ip_location?ip=  **(已失效)**\n\n请求类型：GET\n\n请求参数：ip(可选)\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://webapi-pc.meitu.com/common/ip_location\n\n# 通过ip查询信息\nhttps://webapi-pc.meitu.com/common/ip_location?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"reqid\": \"40b7cf49-ad3f-4184-acd3-9f5a574dc7c4\",\n  \"code\": 0,\n  \"data\": {\n    \"121.8.215.106\": {\n      \"area_code\": \"86\",\n      \"city\": \"广州市\",\n      \"city_id\": 160063402,\n      \"continent\": \"亚洲\",\n      \"continent_code\": \"AP\",\n      \"country_id\": 100000,\n      \"isp\": \"电信\",\n      \"latitude\": 23.3283,\n      \"longitude\": 113.75837,\n      \"nation\": \"中国\",\n      \"nation_code\": \"CN\",\n      \"province\": \"广东\",\n      \"province_id\": 440000,\n      \"subdivision_1_iso_code\": \"*\",\n      \"subdivision_1_name\": \"广东\",\n      \"subdivision_2_iso_code\": \"*\",\n      \"subdivision_2_name\": \"广州市\",\n      \"time_zone\": \"UTC+8\"\n    }\n  }\n}\n```\n\n\u0026emsp;\n\n**地址②**：https://www.ip.cn/api/index?ip=\u0026type=0 \u003ca name=\"address-1.2\"\u003e\u003c/a\u003e **(已失效)**\n\n请求类型：GET\n\n请求参数：ip(可选)、type\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip(type=0)\nhttps://www.ip.cn/api/index?ip=\u0026type=0\n\n# 通过ip查询信息(type=1)\nhttps://www.ip.cn/api/index?ip=121.8.215.106\u0026type=1\n```\n\n\u003e 对于国外ip的位置信息不太准确\n\n示例结果：\n\n```\n{\n  \"rs\": 1,\n  \"code\": 0,\n  \"address\": \"中国  广东省 广州市 电信\",\n  \"ip\": \"121.8.215.106\",\n  \"isDomain\": 0\n}\n```\n\n\u0026emsp;\n\n**地址③**：https://whois.pconline.com.cn/ipJson.jsp?ip=\u0026json=true \u003ca name=\"address-1.3\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip、json\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://whois.pconline.com.cn/ipJson.jsp?ip=\u0026json=true\n\n# 通过ip查询信息\nhttps://whois.pconline.com.cn/ipJson.jsp?ip=121.8.215.106\u0026json=true\n```\n\n\u003e 对于国外ip的位置信息不太准确\n\n示例结果：\n\n```\n{\n  \"ip\": \"121.8.215.106\",\n  \"pro\": \"广东省\",\n  \"proCode\": \"440000\",\n  \"city\": \"广州市\",\n  \"cityCode\": \"440100\",\n  \"region\": \"\",\n  \"regionCode\": \"0\",\n  \"addr\": \"广东省广州市 电信\",\n  \"regionNames\": \"\",\n  \"err\": \"\"\n}\n```\n\n\u0026emsp;\n\n**地址④**：https://api.vore.top/api/IPdata?ip= \u003ca name=\"address-1.4\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.vore.top/api/IPdata?ip=\n\n# 通过ip查询信息\nhttps://api.vore.top/api/IPdata?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"code\": 200,\n    \"msg\": \"SUCCESS\",\n    \"ipinfo\": {\n        \"type\": \"ipv4\",\n        \"text\": \"121.8.215.106\",\n        \"cnip\": true\n    },\n    \"ipdata\": {\n        \"info1\": \"广东省\",\n        \"info2\": \"广州市\",\n        \"info3\": \"增城\",\n        \"isp\": \"电信\"\n    },\n    \"adcode\": {\n        \"o\": \"广东省广州市增城 - 电信\",\n        \"p\": \"广东\",\n        \"c\": \"广州\",\n        \"n\": \"广东-广州\",\n        \"r\": \"广东-广州\",\n        \"a\": \"440100\",\n        \"i\": true\n    },\n    \"tips\": \"接口由VORE-API(https:\\/\\/api.vore.top\\/)免费提供\",\n    \"time\": 1708576755\n}\n```\n\n\u0026emsp;\n\n**地址⑤**：https://api.ip.sb/geoip/ \u003ca name=\"address-1.5\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.ip.sb/geoip/\n\n# 通过ip查询信息\nhttps://api.ip.sb/geoip/121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"organization\": \"China Telecom\",\n    \"longitude\": 113.2539,\n    \"city\": \"Guangzhou\",\n    \"timezone\": \"Asia/Shanghai\",\n    \"isp\": \"China Telecom\",\n    \"offset\": 28800,\n    \"region\": \"Guangdong\",\n    \"asn\": 4134,\n    \"asn_organization\": \"Chinanet\",\n    \"country\": \"China\",\n    \"ip\": \"121.8.215.106\",\n    \"latitude\": 23.1181,\n    \"continent_code\": \"AS\",\n    \"country_code\": \"CN\",\n    \"region_code\": \"GD\"\n}\n```\n\n\u0026emsp;\n\n**地址⑥**：https://api.ip2location.io/ \u003ca name=\"address-1.6\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.ip2location.io/\n\n# 通过ip查询信息\nhttps://api.ip2location.io/?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"121.8.215.106\",\n  \"country_code\": \"CN\",\n  \"country_name\": \"China\",\n  \"region_name\": \"Guangdong\",\n  \"city_name\": \"Guangzhou\",\n  \"latitude\": 23.127361,\n  \"longitude\": 113.26457,\n  \"zip_code\": \"510140\",\n  \"time_zone\": \"+08:00\",\n  \"asn\": \"4134\",\n  \"as\": \"Asia Pacific Network Information Centre\",\n  \"is_proxy\": true,\n  \"message\": \"Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month.\"\n}\n```\n\n\u0026emsp;\n\n**地址⑦**：https://realip.cc/ \u003ca name=\"address-1.7\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\n\ncurl realip.cc\n\nhttps://realip.cc/\n\nhttps://realip.cc/simple # 只返回ip\n\n# 通过ip查询信息\nhttps://realip.cc/?ip=121.8.215.106\n\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"103.143.161.60\",\n    \"city\": \"Hong Kong\",\n    \"province\": null,\n    \"country\": \"Hong Kong\",\n    \"continent\": \"Asia\",\n    \"isp\": \"TWOWIN CO., LIMITED\",\n    \"time_zone\": \"Asia/Hong_Kong\",\n    \"latitude\": 22.2842,\n    \"longitude\": 114.1759,\n    \"postal_code\": null,\n    \"iso_code\": \"HK\",\n    \"network\": \"103.143.160.0/23\",\n    \"notice\": \"api文档在/docs路径下，调用并发数是有限制的 ©2021-09-27-\u003enow\",\n    \"provider\": \"Powered by Bboysoul\",\n    \"blog\": \"https://www.bboy.app\",\n    \"tg_group\": \"https://t.me/bboyapp\",\n    \"data_updatetime\": 202403010,\n    \"count\": 10345364\n}\n```\n\n\u0026emsp;\n\n**地址⑧**：http://demo.ip-api.com/json/?fields=66842623\u0026lang=zh-CN \u003ca name=\"address-1.8\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)、lang ...\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# lang optional value\nen：English (default) 英语（默认）\nzh-CN：中国 (Chinese)\nde：Deutsch (German) Deutsch （德语）\nes：Español (Spanish) Español （西班牙语）\nfr：Français (French) Français （法语）\nja：日本語 (Japanese) 日本语（ Japanese）\nru：Русский (Russian) Русский （俄语）\n\n# 注意是http ！！！\n\n# 查询本机ip\nhttp://demo.ip-api.com/json/?fields=66842623\u0026lang=zh-CN\n\n# 通过ip查询信息\nhttp://demo.ip-api.com/json/121.8.215.106?fields=66842623\u0026lang=zh-CN\n\nAPI docs：\nhttps://ip-api.com/docs/api:json\n```\n\n示例结果：\n\n```\n{\n    \"status\": \"success\",\n    \"continent\": \"亚洲\",\n    \"continentCode\": \"AS\",\n    \"country\": \"中国\",\n    \"countryCode\": \"CN\",\n    \"region\": \"GD\",\n    \"regionName\": \"广东\",\n    \"city\": \"广州市\",\n    \"district\": \"\",\n    \"zip\": \"\",\n    \"lat\": 23.1181,\n    \"lon\": 113.2539,\n    \"timezone\": \"Asia/Shanghai\",\n    \"offset\": 28800,\n    \"currency\": \"CNY\",\n    \"isp\": \"Chinanet\",\n    \"org\": \"Chinanet GD\",\n    \"as\": \"AS4134 CHINANET-BACKBONE\",\n    \"asname\": \"CHINANET-BACKBONE\",\n    \"mobile\": false,\n    \"proxy\": true,\n    \"hosting\": false,\n    \"query\": \"121.8.215.106\"\n}\n```\n\n\u0026emsp;\n\n**地址⑨**：https://ip-api.io/json \u003ca name=\"address-1.9\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://ip-api.io/json\n\n# 通过ip查询信息\nhttps://ip-api.io/json?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"callingCode\": \"86\",\n    \"city\": \"Guangzhou\",\n    \"countryCapital\": \"Beijing\",\n    \"country_code\": \"CN\",\n    \"country_name\": \"China\",\n    \"currency\": \"CNY\",\n    \"currencySymbol\": \"¥\",\n    \"emojiFlag\": \"🇨🇳\",\n    \"flagUrl\": \"https://ip-api.io/images/flags/cn.svg\",\n    \"ip\": \"121.8.215.106\",\n    \"is_in_european_union\": false,\n    \"latitude\": 23.1181,\n    \"longitude\": 113.2539,\n    \"metro_code\": 0,\n    \"organisation\": \"Chinanet\",\n    \"region_code\": \"GD\",\n    \"region_name\": \"Guangdong\",\n    \"suspiciousFactors\": {\n        \"isProxy\": false,\n        \"isSpam\": false,\n        \"isSuspicious\": false,\n        \"isTorNode\": false\n    },\n    \"time_zone\": \"Asia/Shanghai\",\n    \"zip_code\": \"\"\n}\n```\n\n\u0026emsp;\n\n**地址⑩**：https://ipapi.co/json \u003ca name=\"address-1.10\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://ipapi.co/json/\n\n# 通过ip查询信息\nhttps://ipapi.co/121.8.215.106/json/\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"121.8.215.106\",\n    \"network\": \"121.8.128.0/17\",\n    \"version\": \"IPv4\",\n    \"city\": \"Guangzhou\",\n    \"region\": \"Guangdong\",\n    \"region_code\": \"GD\",\n    \"country\": \"CN\",\n    \"country_name\": \"China\",\n    \"country_code\": \"CN\",\n    \"country_code_iso3\": \"CHN\",\n    \"country_capital\": \"Beijing\",\n    \"country_tld\": \".cn\",\n    \"continent_code\": \"AS\",\n    \"in_eu\": false,\n    \"postal\": null,\n    \"latitude\": 23.1181,\n    \"longitude\": 113.2539,\n    \"timezone\": \"Asia/Shanghai\",\n    \"utc_offset\": \"+0800\",\n    \"country_calling_code\": \"+86\",\n    \"currency\": \"CNY\",\n    \"currency_name\": \"Yuan Renminbi\",\n    \"languages\": \"zh-CN,yue,wuu,dta,ug,za\",\n    \"country_area\": 9596960,\n    \"country_population\": 1411778724,\n    \"asn\": \"AS4134\",\n    \"org\": \"Chinanet\"\n}\n```\n\n\u0026emsp;\n\n**地址11**：https://ipapi.co/json \u003ca name=\"address-1.11\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.ipapi.is\n\n# 通过ip查询信息\nhttps://api.ipapi.is/?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"121.8.215.106\",\n    \"rir\": \"APNIC\",\n    \"is_bogon\": false,\n    \"is_mobile\": false,\n    \"is_crawler\": false,\n    \"is_datacenter\": false,\n    \"is_tor\": false,\n    \"is_proxy\": true,\n    \"is_vpn\": false,\n    \"is_abuser\": true,\n    \"company\": {\n        \"name\": \"CHINANET Guangdong province network\",\n        \"abuser_score\": \"0.0003 (Very Low)\",\n        \"domain\": \"chinatelecom.cn\",\n        \"type\": \"isp\",\n        \"network\": \"121.8.0.0 - 121.15.255.255\",\n        \"whois\": \"https://api.ipapi.is/?whois=121.8.0.0\"\n    },\n    \"asn\": {\n        \"asn\": 4134,\n        \"abuser_score\": \"0.0013 (Low)\",\n        \"route\": \"121.8.0.0/13\",\n        \"descr\": \"CHINANET-BACKBONE No.31,Jin-rong Street, CN\",\n        \"country\": \"cn\",\n        \"active\": true,\n        \"org\": \"No.31,Jin-rong Street\",\n        \"domain\": \"chinatelecom.cn\",\n        \"abuse\": \"anti-spam@chinatelecom.cn\",\n        \"type\": \"business\",\n        \"updated\": \"2021-06-15\",\n        \"rir\": \"APNIC\",\n        \"whois\": \"https://api.ipapi.is/?whois=AS4134\"\n    },\n    \"location\": {\n        \"continent\": \"AS\",\n        \"country\": \"China\",\n        \"country_code\": \"CN\",\n        \"state\": \"Guangdong\",\n        \"city\": \"Guangzhou\",\n        \"latitude\": 23.117,\n        \"longitude\": 113.25,\n        \"zip\": \"510800\",\n        \"timezone\": \"Asia/Shanghai\",\n        \"local_time\": \"2024-03-16T13:50:41+08:00\",\n        \"local_time_unix\": 1710568241,\n        \"is_dst\": false\n    },\n    \"elapsed_ms\": 0.81\n}\n```\n\n\u0026emsp;\n\n**地址12**：https://api.ip.sb/geoip \u003ca name=\"address-1.12\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.ip.sb/geoip\n\n# 通过ip查询信息\nhttps://api.ip.sb/geoip/121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"organization\": \"China Telecom\",\n    \"longitude\": 113.2539,\n    \"city\": \"Guangzhou\",\n    \"timezone\": \"Asia/Shanghai\",\n    \"isp\": \"China Telecom\",\n    \"offset\": 28800,\n    \"region\": \"Guangdong\",\n    \"asn\": 4134,\n    \"asn_organization\": \"Chinanet\",\n    \"country\": \"China\",\n    \"ip\": \"121.8.215.106\",\n    \"latitude\": 23.1181,\n    \"continent_code\": \"AS\",\n    \"country_code\": \"CN\",\n    \"region_code\": \"GD\"\n}\n```\n\n\u0026emsp;\n\n**地址13**：https://api.qjqq.cn/api/Local \u003ca name=\"address-1.13\"\u003e\u003c/a\u003e **(已失效)**\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.qjqq.cn/api/Local\n\n# 通过ip查询信息\nhttps://api.qjqq.cn/api/district?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"code\": 200,\n  \"data\": {\n    \"ip\": \"222.79.44.74\",\n    \"continent\": \"亚洲\",\n    \"country_english\": \"\",\n    \"country\": \"中国\",\n    \"prov\": \"福建\",\n    \"city\": \"福州\",\n    \"district\": \"\",\n    \"isp\": \"电信\",\n    \"lat\": \"26.075302\",\n    \"lng\": \"119.306239\",\n    \"area_code\": \"350100\",\n    \"city_code\": \"0591\",\n    \"elevation\": \"29\",\n    \"time_zone\": \"Asia/Shanghai\",\n    \"weather_station\": \"CHXX0031\",\n    \"zip_code\": \"350000\"\n  },\n  \"msg\": \"success\",\n  \"ip\": \"222.79.44.74\",\n  \"time\": \"2024-04-07 18:38:08\",\n  \"source\": \"青桔API：api.qjqq.cn\"\n}\n```\n\n\u0026emsp;\n\n**地址14**：http://ip-api.com/json/?lang=zh-CN \u003ca name=\"address-1.14\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：路径参数(ip)\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttp://ip-api.com/json/?lang=zh-CN\n\n# 通过ip查询信息\nhttp://ip-api.com/json/121.8.215.106?lang=zh-CN\n```\n\n示例结果：\n\n```\n{\n  \"status\": \"success\",\n  \"country\": \"中国\",\n  \"countryCode\": \"CN\",\n  \"region\": \"GD\",\n  \"regionName\": \"广东\",\n  \"city\": \"广州市\",\n  \"zip\": \"\",\n  \"lat\": 23.1181,\n  \"lon\": 113.2539,\n  \"timezone\": \"Asia/Shanghai\",\n  \"isp\": \"Chinanet\",\n  \"org\": \"Chinanet GD\",\n  \"as\": \"AS4134 CHINANET-BACKBONE\",\n  \"query\": \"121.8.215.106\"\n}\n```\n\n\u0026emsp;\n\n**地址15**：https://searchplugin.csdn.net/api/v1/ip/get \u003ca name=\"address-1.15\"\u003e\u003c/a\u003e  **(已失效)**\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://searchplugin.csdn.net/api/v1/ip/get?ip=\n\n# 通过ip查询信息\nhttps://searchplugin.csdn.net/api/v1/ip/get?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"code\": 200,\n  \"msg\": \"success\",\n  \"data\": {\n    \"address\": \"中国 福建 福州 电信\",\n    \"ip\": \"222.79.44.201\"\n  }\n}\n```\n\n\u0026emsp;\n\n**地址16**：https://api.db-ip.com/v2/free/self \u003ca name=\"address-1.16\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://api.db-ip.com/v2/free/self\n\n# 通过ip查询信息\nhttps://api.db-ip.com/v2/free/121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"ipAddress\": \"121.8.215.106\",\n  \"continentCode\": \"AS\",\n  \"continentName\": \"Asia\",\n  \"countryCode\": \"CN\",\n  \"countryName\": \"China\",\n  \"stateProv\": \"Guangdong\",\n  \"city\": \"Guangzhou\"\n}\n```\n\n\u0026emsp;\n\n**地址17**：https://freeipapi.com/api/json \u003ca name=\"address-1.17\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://freeipapi.com/api/json\n\n# 通过ip查询信息\nhttps://freeipapi.com/api/json/121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"ipVersion\": 4,\n  \"ipAddress\": \"121.8.215.106\",\n  \"latitude\": 23.127361,\n  \"longitude\": 113.264572,\n  \"countryName\": \"China\",\n  \"countryCode\": \"CN\",\n  \"timeZone\": \"+08:00\",\n  \"zipCode\": \"510140\",\n  \"cityName\": \"Guangzhou\",\n  \"regionName\": \"Guangdong\",\n  \"isProxy\": true,\n  \"continent\": \"Asia\",\n  \"continentCode\": \"AS\",\n  \"currency\": {\n    \"code\": \"CNY\",\n    \"name\": \"Yuan Renminbi\"\n  },\n  \"language\": \"Mandarin\",\n  \"timeZones\": [\n    \"Asia/Shanghai\",\n    \"Asia/Urumqi\"\n  ],\n  \"tlds\": [\n    \".cn\",\n    \".公司\",\n    \".网络\"\n  ]\n}\n```\n\n\u0026emsp;\n\n**地址18**：https://ipwhois.app/json/?format=json \u003ca name=\"address-1.18\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数(可选)：ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 查询本机ip\nhttps://ipwhois.app/json/?format=json\n\n# 通过ip查询信息\nhttps://ipwhois.app/json/121.8.215.106?format=json\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"121.8.215.106\",\n  \"success\": true,\n  \"type\": \"IPv4\",\n  \"continent\": \"Asia\",\n  \"continent_code\": \"AS\",\n  \"country\": \"China\",\n  \"country_code\": \"CN\",\n  \"country_flag\": \"https://cdn.ipwhois.io/flags/cn.svg\",\n  \"country_capital\": \"Beijing\",\n  \"country_phone\": \"+86\",\n  \"country_neighbours\": \"AF,BT,HK,IN,KG,KP,KZ,LA,MM,MN,MO,NP,PK,RU,TJ,VN\",\n  \"region\": \"Guangdong Province\",\n  \"city\": \"Guangzhou\",\n  \"latitude\": 23.12911,\n  \"longitude\": 113.264385,\n  \"asn\": \"AS4134\",\n  \"org\": \"Chinanet Guangdong Province Network\",\n  \"isp\": \"No. 1,jin rong Street\",\n  \"timezone\": \"Asia/Shanghai\",\n  \"timezone_name\": \"CST\",\n  \"timezone_dstOffset\": 0,\n  \"timezone_gmtOffset\": 28800,\n  \"timezone_gmt\": \"+08:00\",\n  \"currency\": \"Chinese Yuan\",\n  \"currency_code\": \"CNY\",\n  \"currency_symbol\": \"¥\",\n  \"currency_rates\": 7.234,\n  \"currency_plural\": \"Chinese yuan\"\n}\n```\n\n\u0026emsp;\n\n\u003ca name=\"address-2.1\"\u003e\u003c/a\u003e\n\n### 2.仅查询本机IP信息\n\n**地址①**：https://ip.useragentinfo.com/json  **(已失效)**\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://ip.useragentinfo.com/json\n```\n\n示例结果：\n\n```\n{\n  \"country\": \"韩国\",\n  \"short_name\": \"KR\",\n  \"province\": \"首尔\",\n  \"city\": \"\",\n  \"area\": \"\",\n  \"isp\": \"微软云\",\n  \"net\": \"数据中心\",\n  \"ip\": \"20.249.16.173\",\n  \"code\": 200,\n  \"desc\": \"success\"\n}\n```\n\n\u0026emsp;\n\n**地址②**：http://httpbin.org/ip \u003ca name=\"address-2.2\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttp://httpbin.org/ip\n```\n\n示例结果：\n\n```\n{\n  \"origin\": \"20.249.16.173\"\n}\n```\n\n\u0026emsp;\n\n**地址③**：https://cdid.c-ctrip.com/model-poc2/h \u003ca name=\"address-2.3\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://cdid.c-ctrip.com/model-poc2/h\n```\n\n示例结果：\n\n```\n20.249.16.173\n```\n\n\u0026emsp;\n\n**地址④**：https://vv.video.qq.com/checktime?otype=ojson \u003ca name=\"address-2.4\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：otype\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://vv.video.qq.com/checktime?otype=ojson\n```\n\n\u003e otype=json时返回类型为jsonp\n\n示例结果：\n\n```\n{\n  \"s\": \"o\",\n  \"t\": 1708586979,\n  \"ip\": \"222.79.47.146\",\n  \"pos\": \"---\",\n  \"rand\": \"FRM_cmo206yshBHl5h4_9A==\"\n}\n```\n\n\u0026emsp;\n\n**地址⑤**：https://api.uomg.com/api/visitor.info?skey=1 \u003ca name=\"address-2.5\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://api.uomg.com/api/visitor.info?skey=1\n```\n\n示例结果：\n\n```\n{\n  \"code\": 1,\n  \"ip\": \"20.249.16.173\",\n  \"system\": \"Windows 10 x64 Edition\",\n  \"browser\": \"Chrome 114.0.0.0\",\n  \"time\": \"2024-02-22 15:37:33\"\n}\n```\n\n\u0026emsp;\n\n**地址⑥**：https://test.ipw.cn/api/ip/myip?json \u003ca name=\"address-2.6\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://test.ipw.cn/api/ip/myip?json\n```\n\n示例结果：\n\n```\n{\n  \"code\": 1,\n  \"ip\": \"20.249.16.173\",\n  \"system\": \"Windows 10 x64 Edition\",\n  \"browser\": \"Chrome 114.0.0.0\",\n  \"time\": \"2024-02-22 15:37:33\"\n}\n```\n\n\u0026emsp;\n\n**地址⑦**：https://api.ipify.org \u003ca name=\"address-2.7\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数（可选）：format\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nformat：text, json, jsonp\n\n# IPv4\nhttps://api.ipify.org?format=json\n\n# IPv6\nhttps://api64.ipify.org/?format=json\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"185.151.146.112\"\n}\n```\n\n\u0026emsp;\n\n**地址⑧**：https://ipv4.my.ipinfo.app/api/ipDetails.php \u003ca name=\"address-2.8\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://ipv4.my.ipinfo.app/api/ipDetails.php\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"8.210.218.24\",\n    \"asn\": \"AS45102 ALIBABA-CN-NET Alibaba US Technology Co., Ltd., CN\",\n    \"continent\": \"AS\",\n    \"continentLong\": \"Asia\",\n    \"flag\": \"https://my.ipinfo.app/imgs/flags/4x3/sg.svg\",\n    \"country\": \"Singapore\"\n}\n```\n\n\u0026emsp;\n\n**地址⑨**：https://g3.letv.com/r?format=1 \u003ca name=\"address-2.9\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：format\n\nCORS跨域支持：否\n\n请求示例：\n\n```\n# format=1 返回json\nhttps://g3.letv.com/r?format=1\n\n# format=2 返回XML\nhttps://g3.letv.com/r?format=2\n```\n\n示例结果：\n\n```\n{\n  \"ipint\": \"1957453184\",\n  \"host\": \"116.172.93.128\",\n  \"remote\": \"116.172.93.128\",\n  \"ipstart\": \"1957445632\",\n  \"ipend\": \"1957455871\",\n  \"geo\": \"CN.30.722.2\",\n  \"desc\": \"中国-宁夏-中卫市-联通\",\n  \"buss\": \"bussid=6,alv=80,orgqos=5,host=2,port=80\",\n  \"curtime\": 1722063761,\n  \"identify\": \"1731505687:8140\",\n  \"fixlist\": \"\",\n  \"qosfix\": \"\",\n  \"prior\": \"\",\n  \"manual\": \"\",\n  \"perfect\": \"0\",\n  \"recommend\": \"3345,50041,50042,50057,50058,50072,50073,50074,50075,50076\",\n  \"nodelist\": [\n    {\n      \"gone\": 50041,\n      \"name\": \"中国-北京市-第三方保留ISP-1\",\n      \"pid\": 1,\n      \"aid\": 5,\n      \"isp\": 888,\n      \"detail\": \"\",\n      \"location\": \"http://play4.cp21.ott.cibntv.net/letvabcdeasktf512K\"\n    }\n  ]\n}\n```\n\n\u0026emsp;\n\n**地址⑩**：https://iplark.com/ipstack \u003ca name=\"address-2.10\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://iplark.com/ipstack\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"38.207.137.254\",\n  \"type\": \"ipv4\",\n  \"continent_code\": \"NA\",\n  \"continent_name\": \"北美\",\n  \"country_code\": \"US\",\n  \"country_name\": \"美国\",\n  \"region_code\": \"NY\",\n  \"region_name\": \"纽约州\",\n  \"city\": \"Manhattan\",\n  \"zip\": \"10020\",\n  \"latitude\": 40.7589111328125,\n  \"longitude\": -73.97901916503906,\n  \"msa\": \"35620\",\n  \"dma\": \"501\",\n  \"radius\": null,\n  \"ip_routing_type\": \"fixed\",\n  \"connection_type\": \"tx\",\n  \"location\": {\n    \"geoname_id\": 5125771,\n    \"capital\": \"Washington D.C.\",\n    \"languages\": [\n      {\n        \"code\": \"en\",\n        \"name\": \"English\",\n        \"native\": \"English\"\n      }\n    ],\n    \"country_flag\": \"https://assets.ipstack.com/flags/us.svg\",\n    \"country_flag_emoji\": \"🇺🇸\",\n    \"country_flag_emoji_unicode\": \"U+1F1FA U+1F1F8\",\n    \"calling_code\": \"1\",\n    \"is_eu\": false\n  },\n  \"time_zone\": {\n    \"id\": \"America/New_York\",\n    \"current_time\": \"2024-11-04T22:52:33-05:00\",\n    \"gmt_offset\": -18000,\n    \"code\": \"EST\",\n    \"is_daylight_saving\": false\n  }\n}\n```\n\n\u0026emsp;\n\n**地址11**：https://qifu-api.baidubce.com/ip/local/geo/v1/district \u003ca name=\"address-2.11\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://qifu-api.baidubce.com/ip/local/geo/v1/district\n```\n\n示例结果：\n\n```\n{\n  \"code\": \"Success\",\n  \"data\": {\n    \"continent\": \"亚洲\",\n    \"country\": \"中国\",\n    \"zipcode\": \"350007\",\n    \"timezone\": \"UTC+8\",\n    \"accuracy\": \"区县\",\n    \"owner\": \"中国电信\",\n    \"isp\": \"中国电信\",\n    \"source\": \"数据挖掘\",\n    \"areacode\": \"CN\",\n    \"adcode\": \"350104\",\n    \"asnumber\": \"4134\",\n    \"lat\": \"26.016978\",\n    \"lng\": \"119.323547\",\n    \"radius\": \"13.7621\",\n    \"prov\": \"福建省\",\n    \"city\": \"福州市\",\n    \"district\": \"仓山区\"\n  },\n  \"charge\": true,\n  \"msg\": \"查询成功\",\n  \"ip\": \"222.79.47.251\",\n  \"coordsys\": \"WGS84\"\n}\n```\n\n\u0026emsp;\n\n**地址12**：https://r.inews.qq.com/api/ip2city \u003ca name=\"address-2.12\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://r.inews.qq.com/api/ip2city\n```\n\n示例结果：\n\n```\n{\n  \"ret\": 0,\n  \"errMsg\": \"\",\n  \"ip\": \"38.207.136.53\",\n  \"provcode\": \"0\",\n  \"citycode\": \"0\",\n  \"country\": \"美国\",\n  \"province\": \"Texas\",\n  \"city\": \"\",\n  \"district\": \"\",\n  \"isp\": \"\",\n  \"districtCode\": \"\",\n  \"callback\": \"\"\n}\n```\n\n\u0026emsp;\n\n**地址13**：https://myip.ipip.net/json \u003ca name=\"address-2.13\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://myip.ipip.net/json\n```\n\n示例结果：\n\n```\n{\n  \"ret\": \"ok\",\n  \"data\": {\n    \"ip\": \"121.8.215.106\",\n    \"location\": [\n      \"中国\",\n      \"广东省\",\n      \"广州市\",\n      \"\",\n      \"电信\"\n    ]\n  }\n}\n```\n\n\u0026emsp;\n\n**地址14**：https://ifconfig.me/all.json \u003ca name=\"address-2.14\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://ifconfig.me/all.json\n```\n\n示例结果：\n\n```\n{\n  \"ip_addr\": \"121.8.215.106\",\n  \"remote_host\": \"unavailable\",\n  \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0\",\n  \"port\": \"59532\",\n  \"language\": \"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6\",\n  \"method\": \"GET\",\n  \"encoding\": \"gzip, deflate, br\",\n  \"mime\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7\",\n  \"via\": \"1.1 google\",\n  \"forwarded\": \"121.8.215.106,34.160.111.145\"\n}\n```\n\n\u0026emsp;\n\n**地址15**：https://geolocation-db.com/json \u003ca name=\"address-2.15\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://geolocation-db.com/json\n```\n\n示例结果：\n\n```\n{\n  \"country_code\": \"SG\",\n  \"country_name\": \"Singapore\",\n  \"city\": \"Singapore\",\n  \"postal\": null,\n  \"latitude\": 1.2931,\n  \"longitude\": 103.8558,\n  \"IPv4\": \"121.8.215.106\",\n  \"state\": \"Central Singapore Community Development Council\"\n}\n```\n\n\u0026emsp;\n\n**地址16**：https://api.myip.com \u003ca name=\"address-2.16\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://api.myip.com\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"8.210.158.178\",\n  \"country\": \"Hong Kong\",\n  \"cc\": \"HK\"\n}\n```\n\n\u0026emsp;\n\n**地址17**：https://ipapi.co/json \u003ca name=\"address-2.17\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://ipapi.co/json\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"8.210.158.178\",\n  \"network\": \"8.210.156.0/22\",\n  \"version\": \"IPv4\",\n  \"city\": \"Hong Kong\",\n  \"region\": null,\n  \"region_code\": null,\n  \"country\": \"HK\",\n  \"country_name\": \"Hong Kong\",\n  \"country_code\": \"HK\",\n  \"country_code_iso3\": \"HKG\",\n  \"country_capital\": \"Hong Kong\",\n  \"country_tld\": \".hk\",\n  \"continent_code\": \"AS\",\n  \"in_eu\": false,\n  \"postal\": null,\n  \"latitude\": 22.2842,\n  \"longitude\": 114.1759,\n  \"timezone\": \"Asia/Hong_Kong\",\n  \"utc_offset\": \"+0800\",\n  \"country_calling_code\": \"+852\",\n  \"currency\": \"HKD\",\n  \"currency_name\": \"Dollar\",\n  \"languages\": \"zh-HK,yue,zh,en\",\n  \"country_area\": 1092,\n  \"country_population\": 7451000,\n  \"asn\": \"AS45102\",\n  \"org\": \"Alibaba US Technology Co., Ltd.\"\n}\n```\n\n\u0026emsp;\n\n**地址18**：https://wtfismyip.com/json \u003ca name=\"address-2.18\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://wtfismyip.com/json\n```\n\n示例结果：\n\n```\n{\n  \"YourFuckingIPAddress\": \"8.210.158.178\",\n  \"YourFuckingLocation\": \"Hong Kong, Hong Kong\",\n  \"YourFuckingHostname\": \"8.210.158.178\",\n  \"YourFuckingISP\": \"Alibaba (US) Technology Co., Ltd.\",\n  \"YourFuckingTorExit\": false,\n  \"YourFuckingCity\": \"Hong Kong\",\n  \"YourFuckingCountry\": \"Hong Kong\",\n  \"YourFuckingCountryCode\": \"HK\"\n}\n```\n\n\u0026emsp;\n\n**地址19**：https://api.ipbase.com/v1/json \u003ca name=\"address-2.19\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://api.ipbase.com/v1/json\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"8.210.158.178\",\n  \"country_code\": \"HK\",\n  \"country_name\": \"Hong Kong S.A.R.\",\n  \"region_code\": null,\n  \"region_name\": \"Central and Western\",\n  \"city\": \"Hong Kong\",\n  \"zip_code\": \"-\",\n  \"time_zone\": \"Asia/Hong_Kong\",\n  \"latitude\": 22.285520553588867,\n  \"longitude\": 114.1576919555664,\n  \"metro_code\": 0\n}\n```\n\n\u0026emsp;\n\n**地址20**：https://api.ipquery.io/?format=json \u003ca name=\"address-2.20\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://api.ipquery.io/?format=json\n```\n\n示例结果：\n\n```\n{\n  \"ip\": \"8.210.158.178\",\n  \"isp\": {\n    \"asn\": \"AS45102\",\n    \"org\": \"Alibaba (US) Technology Co., Ltd.\",\n    \"isp\": \"Alibaba (US) Technology Co., Ltd.\"\n  },\n  \"location\": {\n    \"country\": \"Hong Kong\",\n    \"country_code\": \"HK\",\n    \"city\": \"Hong Kong\",\n    \"state\": \"Kowloon\",\n    \"zipcode\": \"999077\",\n    \"latitude\": 22.333551599813337,\n    \"longitude\": 114.16016200912814,\n    \"timezone\": \"Asia/Hong_Kong\",\n    \"localtime\": \"2025-02-07T03:42:03\"\n  },\n  \"risk\": {\n    \"is_mobile\": false,\n    \"is_vpn\": false,\n    \"is_tor\": false,\n    \"is_proxy\": false,\n    \"is_datacenter\": true,\n    \"risk_score\": 0\n  }\n}\n```\n\n\u0026emsp;\n\n**地址21**：https://1.1.1.1/cdn-cgi/trace \u003ca name=\"address-2.21\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://1.1.1.1/cdn-cgi/trace\n```\n\n示例结果：\n\n```\nfl=382f226\nh=1.1.1.1\nip=121.8.215.106\nts=1741448917.615\nvisit_scheme=https\nuag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0\ncolo=NRT\nsliver=none\nhttp=http/2\nloc=JP\ntls=TLSv1.3\nsni=off\nwarp=off\ngateway=off\nrbi=off\nkex=X25519MLKEM768\n```\n\n\u0026emsp;\n\n**地址22**：https://check.torproject.org/api/ip \u003ca name=\"address-2.22\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://check.torproject.org/api/ip\n```\n\n示例结果：\n\n```\n{\n  \"IsTor\": false,\n  \"IP\": \"121.8.215.106\"\n}\n```\n\n\u0026emsp;\n\n**地址23**: https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo \u003ca name=\"address-2.23\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo\n```\n\n示例结果： \n\n```\n{\n  \"code\":0,\n  \"message\":\"0\",\n  \"ttl\":1,\n  \"data\":{\n    \"addr\":\"220.1.1.1\",\n    \"country\":\"中国\",\n    \"province\":\"北京\",\n    \"city\":\"北京\",\n    \"isp\":\"电信\",\n    \"latitude\":\"39.938884\",\n    \"longitude\":\"116.397459\" // 精确到同城\n  }\n}\n```\n\n\u0026emsp;\n\n**地址24**: https://i.news.qq.com/api/ip2city \u003ca name=\"address-2.24\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://i.news.qq.com/api/ip2city\n```\n\n示例结果： \n\n```\n{\n    \"ret\": 0,\n    \"errMsg\": \"\",\n    \"ip\": \"223.199.183.154\",\n    \"provcode\": \"21\",\n    \"citycode\": \"233\",\n    \"country\": \"中国\",\n    \"province\": \"海南省\",\n    \"city\": \"海口市\",\n    \"district\": \"\",\n    \"isp\": \"\",\n    \"districtCode\": \"460100\",\n    \"callback\": \"\"\n}\n\n```\n\n\n\u0026emsp;\n\n**地址25**: https://ipv4.gdt.qq.com/get_client_ip \u003ca name=\"address-2.25\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：无\n\nCORS跨域支持：否\n\n返回类型：  `text/plain`\n\n请求示例：\n\n```\nhttps://ipv4.gdt.qq.com/get_client_ip\n```\n\n示例结果： \n\n```\n223.199.183.154\n```\n\n\u0026emsp;\n\n\u003ca name=\"address-3.1\"\u003e\u003c/a\u003e\n\n### 3.只可通过IP查询 \n\n**地址①**：http://opendata.baidu.com/api.php?co=\u0026resource_id=6006\u0026oe=utf8\u0026query=\n\n请求类型：GET\n\n请求参数：query\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://opendata.baidu.com/api.php?co=\u0026resource_id=6006\u0026oe=utf8\u0026query=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"status\": \"0\",\n  \"t\": \"\",\n  \"set_cache_time\": \"\",\n  \"data\": [\n    {\n      \"ExtendedLocation\": \"\",\n      \"OriginQuery\": \"121.8.215.106\",\n      \"appinfo\": \"\",\n      \"disp_type\": 0,\n      \"fetchkey\": \"121.8.215.106\",\n      \"location\": \"广东省广州市 电信\",\n      \"origip\": \"121.8.215.106\",\n      \"origipquery\": \"121.8.215.106\",\n      \"resourceid\": \"6006\",\n      \"role_id\": 0,\n      \"shareImage\": 1,\n      \"showLikeShare\": 1,\n      \"showlamp\": \"1\",\n      \"titlecont\": \"IP地址查询\",\n      \"tplt\": \"ip\"\n    }\n  ]\n}\n```\n\n\u0026emsp;\n\n**地址②**：https://get.geojs.io/v1/ip/geo/121.8.215.106.json \u003ca name=\"address-3.2\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：你的ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://get.geojs.io/v1/ip/geo/121.8.215.106.json\n```\n\n示例结果：\n\n```\n{\n    \"country\": \"China\",\n    \"timezone\": \"Asia/Shanghai\",\n    \"ip\": \"121.8.215.106\",\n    \"organization\": \"AS4134 Chinanet\",\n    \"asn\": 4134,\n    \"area_code\": \"0\",\n    \"organization_name\": \"Chinanet\",\n    \"country_code\": \"CN\",\n    \"country_code3\": \"CHN\",\n    \"continent_code\": \"AS\",\n    \"latitude\": \"23.1181\",\n    \"region\": \"Guangdong\",\n    \"city\": \"Guangzhou\",\n    \"longitude\": \"113.2539\",\n    \"accuracy\": 1000\n}\n```\n\n\u0026emsp;\n\n**地址③**：https://ipinfo.io/widget/demo/121.8.215.106 \u003ca name=\"address-3.3\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：你的ip\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://ipinfo.io/widget/demo/121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"input\": \"121.8.215.106\",\n    \"data\": {\n        \"ip\": \"121.8.215.106\",\n        \"city\": \"Shenzhen\",\n        \"region\": \"Guangdong\",\n        \"country\": \"CN\",\n        \"loc\": \"22.5455,114.0683\",\n        \"org\": \"AS4134 CHINANET-BACKBONE\",\n        \"timezone\": \"Asia/Shanghai\",\n        \"asn\": {\n            \"asn\": \"AS4134\",\n            \"name\": \"CHINANET-BACKBONE\",\n            \"domain\": \"chinatelecom.com.cn\",\n            \"route\": \"121.8.0.0/13\",\n            \"type\": \"isp\"\n        },\n        \"company\": {\n            \"name\": \"CHINANET Guangdong province network\",\n            \"domain\": \"chinatelecom.cn\",\n            \"type\": \"isp\"\n        },\n        \"privacy\": {\n            \"vpn\": false,\n            \"proxy\": false,\n            \"tor\": false,\n            \"relay\": false,\n            \"hosting\": false,\n            \"service\": \"\"\n        },\n        \"abuse\": {\n            \"address\": \"No.31 ,jingrong street,beijing, 100032\",\n            \"country\": \"CN\",\n            \"email\": \"anti-spam@chinatelecom.cn\",\n            \"name\": \"ABUSE CHINANETCN\",\n            \"network\": \"121.8.0.0/13\",\n            \"phone\": \"+000000000\"\n        }\n    }\n}\n```\n\n\u0026emsp;\n\n**地址④**：https://ipapi.com/ip_api.php?ip=121.8.215.106 \u003ca name=\"address-3.4\"\u003e\u003c/a\u003e **(已失效)**\n\n请求类型：GET\n\n请求参数：ip\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://ipapi.com/ip_api.php?ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"ip\": \"121.8.215.106\",\n    \"hostname\": \"121.8.215.106\",\n    \"type\": \"ipv4\",\n    \"continent_code\": \"AS\",\n    \"continent_name\": \"Asia\",\n    \"country_code\": \"CN\",\n    \"country_name\": \"China\",\n    \"region_code\": \"GD\",\n    \"region_name\": \"Guangdong\",\n    \"city\": \"Guangzhou\",\n    \"zip\": \"510000\",\n    \"latitude\": 23.124719619750977,\n    \"longitude\": 113.23860931396484,\n    \"location\": {\n        \"geoname_id\": 1809858,\n        \"capital\": \"Beijing\",\n        \"languages\": [\n            {\n                \"code\": \"zh\",\n                \"name\": \"Chinese\",\n                \"native\": \"中文\"\n            }\n        ],\n        \"country_flag\": \"https://assets.ipstack.com/flags/cn.svg\",\n        \"country_flag_emoji\": \"🇨🇳\",\n        \"country_flag_emoji_unicode\": \"U+1F1E8 U+1F1F3\",\n        \"calling_code\": \"86\",\n        \"is_eu\": false\n    },\n    \"time_zone\": {\n        \"id\": \"Asia/Shanghai\",\n        \"current_time\": \"2024-03-15T15:14:15+08:00\",\n        \"gmt_offset\": 28800,\n        \"code\": \"CST\",\n        \"is_daylight_saving\": false\n    },\n    \"currency\": {\n        \"code\": \"CNY\",\n        \"name\": \"Chinese Yuan\",\n        \"plural\": \"Chinese yuan\",\n        \"symbol\": \"CN¥\",\n        \"symbol_native\": \"CN¥\"\n    },\n    \"connection\": {\n        \"asn\": 4134,\n        \"isp\": \"Chinanet\"\n    },\n    \"security\": {\n        \"is_proxy\": false,\n        \"proxy_type\": null,\n        \"is_crawler\": false,\n        \"crawler_name\": null,\n        \"crawler_type\": null,\n        \"is_tor\": false,\n        \"threat_level\": \"low\",\n        \"threat_types\": null\n    }\n}\n```\n\n\u0026emsp;\n\n**地址⑤**：https://db-ip.com/demo/home.php?s=121.8.215.106 \u003ca name=\"address-3.5\"\u003e\u003c/a\u003e\n\n请求类型：GET\n\n请求参数：s=你的ip\n\nCORS跨域支持：否\n\n请求示例：\n\n```\nhttps://db-ip.com/demo/home.php?s=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n    \"status\": \"ok\",\n    \"demoInfo\": {\n        \"ipAddress\": \"121.8.215.106\",\n        \"continentCode\": \"AS\",\n        \"continentName\": \"Asia\",\n        \"countryCode\": \"CN\",\n        \"countryName\": \"中国\",\n        \"isEuMember\": false,\n        \"currencyCode\": \"CNY\",\n        \"currencyName\": \"Yuan Renminbi\",\n        \"phonePrefix\": \"86\",\n        \"languages\": [\n            \"zh-CN\",\n            \"yue\",\n            \"wuu\",\n            \"dta\",\n            \"ug\",\n            \"za\"\n        ],\n        \"stateProvCode\": \"GD\",\n        \"stateProv\": \"广东\",\n        \"district\": \"广州\",\n        \"city\": \"小楼\",\n        \"geonameId\": 1790085,\n        \"latitude\": 23.379,\n        \"longitude\": 113.763,\n        \"gmtOffset\": 8,\n        \"timeZone\": \"Asia/Shanghai\",\n        \"weatherCode\": \"CHXX5497\",\n        \"asNumber\": 4134,\n        \"asName\": \"CHINANET-BACKBONE\",\n        \"isp\": \"Chinanet\",\n        \"usageType\": \"corporate\",\n        \"organization\": \"Chinanet GD\",\n        \"isCrawler\": false,\n        \"isProxy\": false,\n        \"threatLevel\": \"high\",\n        \"threatDetails\": [\n            \"attack-source\",\n            \"attack-target:web\"\n        ]\n    }\n}\n```\n\n\u0026emsp;\n\n**地址⑥**：https://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1\u0026ip=21.8.215.106 \u003ca name=\"address-3.6\"\u003e\u003c/a\u003e  **(已失效)**\n\n请求类型：GET\n\n请求参数：ip=查询的ip地址\n\nCORS跨域支持：是\n\n请求示例：\n\n```\nhttps://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1\u0026ip=121.8.215.106\n```\n\n示例结果：\n\n```\n{\n  \"code\": \"0\",\n  \"msg\": \"success\",\n  \"data\": {\n    \"continentCN\": \"亚洲\",\n    \"countryCN\": \"中国\",\n    \"zoneCN\": \"华南\",\n    \"provinceCN\": \"广东\",\n    \"cityCN\": \"广州\",\n    \"countyCN\": \"增城区\",\n    \"townCN\": \"*\",\n    \"ispCN\": \"电信\",\n    \"continentID\": 1,\n    \"countryID\": 48,\n    \"zoneID\": 5,\n    \"provinceID\": 3,\n    \"cityID\": 3001,\n    \"countyID\": 3001012,\n    \"ispID\": 26,\n    \"townID\": 0,\n    \"latitude\": \"23.328300\",\n    \"longitude\": \"113.758370\",\n    \"overseasRegion\": false\n  }\n}\n```\n\n当ip参数值为空时，查询的是请求者的地址信息。\n\n\u0026emsp;\n\n\u003ca name=\"address-4.1\"\u003e\u003c/a\u003e\n\n### 4.根据地区反查IP信息\n\n根据地区名称或者经纬度查询IP信息\n\n**地址①**：https://nominatim.openstreetmap.org/search?format=json\u0026q= \n\n请求类型：GET\n\n请求参数：q（位置) 、lat(纬度) 、lon(经度)\n\nCORS跨域支持：是\n\n请求示例：\n\n```\n# 通过地区查询ip信息\nhttps://nominatim.openstreetmap.org/search?format=json\u0026q=广东深圳南山区\n\n# 通过经纬度查询ip信息\nhttps://nominatim.openstreetmap.org/search?format=json\u0026lat=22.5317523\u0026lon=113.9734125109087\n```\n\n示例结果：\n\n```\n{\n  \"place_id\": 298782202,\n  \"licence\": \"Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright\",\n  \"osm_type\": \"way\",\n  \"osm_id\": 741753433,\n  \"lat\": \"37.42202505\",\n  \"lon\": \"-122.08407788511707\",\n  \"class\": \"leisure\",\n  \"type\": \"outdoor_seating\",\n  \"place_rank\": 30,\n  \"importance\": 0.00006277943083843774,\n  \"addresstype\": \"leisure\",\n  \"name\": \"\",\n  \"display_name\": \"Amphitheatre Parkway, 山景城, Santa Clara County, 加利福尼亚州/加利福尼亞州, 94043, 美利坚合众国/美利堅合眾國\",\n  \"address\": {\n    \"road\": \"Amphitheatre Parkway\",\n    \"city\": \"山景城\",\n    \"county\": \"Santa Clara County\",\n    \"state\": \"加利福尼亚州/加利福尼亞州\",\n    \"ISO3166-2-lvl4\": \"US-CA\",\n    \"postcode\": \"94043\",\n    \"country\": \"美利坚合众国/美利堅合眾國\",\n    \"country_code\": \"us\"\n  },\n  \"boundingbox\": [\n    \"37.4219599\",\n    \"37.4221426\",\n    \"-122.0842118\",\n    \"-122.0839386\"\n  ]\n}\n```\n\n\u0026emsp;\n\n\u003ca name=\"address-5.1\"\u003e\u003c/a\u003e\n\n### 5.更多\n\n1.只返回本机(访客)IP地址，通过curl访问测试 \n\n- 请求类型：GET\n\n```\ncurl ifconfig.me\ncurl ifconfig.es\ncurl icanhazip.com\ncurl ipinfo.io/ip\ncurl ipecho.net/ip\ncurl ident.me\ncurl eth0.me\ncurl ipaddr.site\ncurl ipaddress.sh\ncurl l2.io/ip\ncurl tnx.nl/ip\ncurl wgetip.com\ncurl ip.tyk.nu\ncurl curlmyip.net\ncurl ipcalf.com\ncurl checkip.amazonaws.com\ncurl https://myexternalip.com/json\n```\n\n示例结果：\n\n```\n121.8.215.106\n```\n\n\u0026emsp;\n","funding_links":[],"categories":["Others","miscellaneous"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihmily%2Fip-info-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihmily%2Fip-info-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihmily%2Fip-info-api/lists"}