时间:2026-04-30 点击: 次 来源:网络 作者:佚名 - 小 + 大
| # 超全免费公共API合集(全部HTTPS、无密钥/少密钥、国内可访问、直接复制即用)分类整理,极简调用、适合前端/后端/爬虫/小工具开发,**无注册、免token优先**。## 一、IP归属/网络类(刚需)1. 【中文极速】IP查询```urlhttps://api.iping.cc/v1/query?ip=114.114.114.114&language=zh```2. 【纯净无广告】IP地理```urlhttps://api.ip.sb/geoip```3. 【全球稳定】ipinfo```urlhttps://ipinfo.io/json```4. 【无限制】IPWHOIS```urlhttps://ipwhois.io/json/```5. 【本机外网IP】纯文本```urlhttps://ifconfig.me/ip```6. 【DNS查询】```urlhttps://dns.google/resolve?name=baidu.com```## 二、日常工具API(超实用)1. 时间戳/北京时间```urlhttps://api.oioweb.cn/api/time```2. 随机一言(文案/短句)```urlhttps://v1.hitokoto.cn/```3. 随机语录/毒鸡汤```urlhttps://api.oioweb.cn/api/djt```4. 二维码生成(在线转码)```urlhttps://api.oioweb.cn/api/qrcode?text=hello```5. URL短网址压缩```urlhttps://api.oioweb.cn/api/short?url=https://www.baidu.com```6. 浏览器UA查询```urlhttps://httpbin.org/user-agent```7. 公网测速/网络检测```urlhttps://speed.cloudflare.com/meta```## 三、图片/壁纸/头像API1. 随机占位图(开发专用)```urlhttps://picsum.photos/400/300```2. 二次元随机壁纸```urlhttps://api.oioweb.cn/api/acg```3. 全屏风景壁纸```urlhttps://api.oioweb.cn/api/bg```4. 随机动漫头像```urlhttps://api.oioweb.cn/api/avatar```5. 透明纯色背景图```urlhttps://placehold.co/200x200/transparent```## 四、天气/生活数据1. 全球免费天气(无key)```urlhttps://api.open-meteo.com/v1/forecast?latitude=21.27&longitude=110.36¤t_weather=true```2. 极简中文天气```urlhttps://api.oioweb.cn/api/weather?city=湛江```3. 实时空气质量```urlhttps://api.oioweb.cn/api/aqi?city=广州```## 五、翻译/文本处理1. 开源免费翻译(中英互转)```urlhttps://translate.argosopentech.com/translate?q=hello&source=en&target=zh```2. 汉字转拼音```urlhttps://api.oioweb.cn/api/pinyin?text=你好世界```3. 文本加密/MD5```urlhttps://api.oioweb.cn/api/md5?text=123456```4. 简繁互换```urlhttps://api.oioweb.cn/api/ft?text=繁體轉簡體```## 六、汇率/数字金融1. 实时汇率(无key)```urlhttps://open.er-api.com/v6/latest/CNY```2. 黄金/白银行情```urlhttps://api.oioweb.cn/api/gold```3. 数字货币简易行情```urlhttps://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=cny```## 七、开发调试/模拟数据1. 通用Mock接口(测试GET/POST)```urlhttps://jsonplaceholder.typicode.com/todos/1```2. 随机用户信息```urlhttps://randomuser.me/api/```3. HTTP调试神器(请求头/IP/参数)```urlhttps://httpbin.org/get```4. 随机JSON测试数据```urlhttps://fakeapi.platypus1984.workers.dev/api/json```## 八、影视/音乐/娱乐1. 全网音乐解析(无版权试听)```urlhttps://api.oioweb.cn/api/music?name=稻香```2. 每日热点热搜```urlhttps://api.oioweb.cn/api/hot```3. 随机笑话```urlhttps://api.oioweb.cn/api/joke```4. 星座运势```urlhttps://api.oioweb.cn/api/horoscope?type=天蝎```## 九、系统/网络运维类1. WHOIS域名信息查询```urlhttps://api.oioweb.cn/api/whois?domain=baidu.com```2. 端口检测简易接口```urlhttps://api.oioweb.cn/api/port?ip=1.1.1.1&port=80```3. 全球IP黑名单检测```urlhttps://api.abuseipdb.com/api/v2/check?ipAddress=1.1.1.1```## 十、AI轻量免费接口(无Key)1. 轻量AI对话(免费额度)```urlhttps://api.freegpt4.ai/v1/chat/completions```2. AI文本总结```urlhttps://summary.deno.dev/api/summary?text=此处粘贴长文本```---### 补充说明1. 大部分 **GET请求直接浏览器/前端/fetch/axios 秒用**2. oioweb 系列:国内访问极快、全中文、限速宽松3. 全部支持 HTTPS,适配前后端、小程序、静态页# 全网免费公共API | 每条附带 **JS + Python** 可直接运行示例全部 HTTPS、免密钥、国内可访问、复制即用,分类整理。> 统一说明:> - JS:原生 `fetch`,无依赖> - Python:仅需 `requests`,`pip install requests`---# 一、IP 归属 / 网络类## 1. 中文IP查询(推荐)接口:```https://api.iping.cc/v1/query?ip=114.114.114.114&language=zh```**JS 示例**```javascriptfetch("https://api.iping.cc/v1/query?ip=114.114.114.114&language=zh").then(res => res.json()).then(data => console.log(data))```**Python 示例**```pythonimport requestsurl = "https://api.iping.cc/v1/query?ip=114.114.114.114&language=zh"data = requests.get(url).json()print(data)```## 2. ip.sb 纯净IP地理```https://api.ip.sb/geoip``````javascriptfetch("https://api.ip.sb/geoip").then(r=>r.json()).then(d=>console.log(d))``````pythonr = requests.get("https://api.ip.sb/geoip")print(r.json())```## 3. ipinfo 全球稳定```https://ipinfo.io/json``````javascriptfetch("https://ipinfo.io/json").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://ipinfo.io/json").json())```## 4. 本机纯文本IP```https://ifconfig.me/ip``````javascriptfetch("https://ifconfig.me/ip").then(r=>r.text()).then(d=>console.log(d))``````pythontext = requests.get("https://ifconfig.me/ip").textprint(text)```---# 二、工具实用 API## 5. 北京时间/时间戳```https://api.oioweb.cn/api/time``````javascriptfetch("https://api.oioweb.cn/api/time").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/time").json())```## 6. 随机一言```https://v1.hitokoto.cn/``````javascriptfetch("https://v1.hitokoto.cn/").then(r=>r.json()).then(d=>console.log(d.hitokoto))``````pythonres = requests.get("https://v1.hitokoto.cn/").json()print(res["hitokoto"])```## 7. 二维码生成```https://api.oioweb.cn/api/qrcode?text=HelloWorld``````javascript// 返回图片流fetch("https://api.oioweb.cn/api/qrcode?text=HelloWorld")``````python# 下载二维码图片res = requests.get("https://api.oioweb.cn/api/qrcode?text=HelloWorld")with open("qrcode.png","wb") as f: f.write(res.content)```## 8. 短网址压缩```https://api.oioweb.cn/api/short?url=https://www.baidu.com``````javascriptfetch("https://api.oioweb.cn/api/short?url=https://www.baidu.com").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/short?url=https://www.baidu.com").json())```---# 三、图片 / 壁纸 API## 9. 通用占位图```https://picsum.photos/400/300``````javascript// 直接用作图片地址let imgUrl = "https://picsum.photos/400/300";``````pythonres = requests.get("https://picsum.photos/400/300")with open("img.jpg","wb") as f:f.write(res.content)```## 10. 二次元随机壁纸```https://api.oioweb.cn/api/acg``````javascriptfetch("https://api.oioweb.cn/api/acg").then(r=>r.json()).then(d=>console.log(d.img))``````pythonurl = requests.get("https://api.oioweb.cn/api/acg").json()["img"]print(url)```---# 四、天气 / 生活## 11. 中文城市天气```https://api.oioweb.cn/api/weather?city=湛江``````javascriptfetch("https://api.oioweb.cn/api/weather?city=湛江").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/weather?city=湛江").json())```## 12. 全球开源天气```https://api.open-meteo.com/v1/forecast?latitude=21.27&longitude=110.36¤t_weather=true``````javascriptfetch("https://api.open-meteo.com/v1/forecast?latitude=21.27&longitude=110.36¤t_weather=true").then(r=>r.json()).then(d=>console.log(d))``````pythonapi = "https://api.open-meteo.com/v1/forecast?latitude=21.27&longitude=110.36¤t_weather=true"print(requests.get(api).json())```---# 五、文本处理 / 翻译## 13. 免费中英翻译```https://translate.argosopentech.com/translate```**JS POST**```javascriptfetch("https://translate.argosopentech.com/translate",{ method:"POST", body:JSON.stringify({q:"你好",source:"zh",target:"en"})}).then(r=>r.json()).then(d=>console.log(d.translatedText))```**Python POST**```pythonurl = "https://translate.argosopentech.com/translate"data = {"q":"你好","source":"zh","target":"en"}res = requests.post(url,json=data)print(res.json()["translatedText"])```## 14. 汉字转拼音```https://api.oioweb.cn/api/pinyin?text=你好世界``````javascriptfetch("https://api.oioweb.cn/api/pinyin?text=你好世界").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/pinyin?text=你好世界").json())```---# 六、汇率 / 金融## 15. 实时汇率```https://open.er-api.com/v6/latest/CNY``````javascriptfetch("https://open.er-api.com/v6/latest/CNY").then(r=>r.json()).then(d=>console.log(d.rates))``````pythonres = requests.get("https://open.er-api.com/v6/latest/CNY").json()print(res["rates"])```---# 七、开发调试 / Mock## 16. httpbin 调试请求```https://httpbin.org/get``````javascriptfetch("https://httpbin.org/get").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://httpbin.org/get").json())```## 17. 随机用户信息```https://randomuser.me/api/``````javascriptfetch("https://randomuser.me/api/").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://randomuser.me/api/").json())```## 18. JSONPlaceholder 测试数据```https://jsonplaceholder.typicode.com/todos/1``````javascriptfetch("https://jsonplaceholder.typicode.com/todos/1").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://jsonplaceholder.typicode.com/todos/1").json())```---# 八、娱乐趣味## 19. 随机笑话```https://api.oioweb.cn/api/joke``````javascriptfetch("https://api.oioweb.cn/api/joke").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/joke").json())```## 20. 全网热搜```https://api.oioweb.cn/api/hot``````javascriptfetch("https://api.oioweb.cn/api/hot").then(r=>r.json()).then(d=>console.log(d))``````pythonprint(requests.get("https://api.oioweb.cn/api/hot").json())```---## 统一前置依赖Python 首次使用安装:```bashpip install requests```下面再补一批**全新、稳定、国内可访问、免费/免Key为主**的公共API,按场景分,每条都给**接口地址 + JS/Python示例**,直接复制就能跑。---## 一、图片/素材类(新增)### 1. Pexels 无版权高清图(免费Key)```https://api.pexels.com/v1/search?query=nature&per_page=1```- JS```javascriptfetch("https://api.pexels.com/v1/search?query=nature&per_page=1", { headers: { Authorization: "你的免费Key" }}).then(r=>r.json()).then(d=>console.log(d.photos[0].src.medium))```- Python```pythonimport requestsheaders={"Authorization":"你的免费Key"}d=requests.get("https://api.pexels.com/v1/search?query=nature&per_page=1",headers=headers).json()print(d["photos"][0]["src"]["medium"])```### 2. HTTP Cat 状态码萌图(免Key)```https://http.cat/200```- JS```javascriptlet url="https://http.cat/404"; // 直接当图片地址```- Python```pythonres=requests.get("https://http.cat/500")with open("500.jpg","wb") as f:f.write(res.content)```### 3. 纯色背景图(免Key)```https://placehold.co/600x400/eeeeee/333333?text=Hello```---## 二、动漫/二次元(新增)### 4. AnimeChan 随机动漫台词(免Key)```https://animechan.vercel.app/api/random```- JS```javascriptfetch("https://animechan.vercel.app/api/random").then(r=>r.json()).then(d=>console.log(d))```- Python```pythonprint(requests.get("https://animechan.vercel.app/api/random").json())```### 5. Jikan 动漫数据(免Key)```https://api.jikan.moe/v4/top/anime```---## 三、文本/数据类(新增)### 6. 随机用户头像(免Key)```https://api.dicebear.com/7.x/avataaars/svg?seed=abc```### 7. 中文错别字纠正(免Key)```https://api.oioweb.cn/api/correct?text=我门今天去玩```### 8. 全球节假日(免Key)```https://api.oioweb.cn/api/holiday?year=2026&country=CN```---## 四、地图/地理(新增)### 9. 高德地图地理编码(免费Key)```https://restapi.amap.com/v3/geocode/geo?address=湛江市&key=你的Key```### 10. IP归属(纯净版,免Key)```https://ipapi.co/json/```---## 五、开发/测试工具(新增)### 11. ReqRes 模拟登录/用户数据(免Key)```https://reqres.in/api/users?page=1```- JS```javascriptfetch("https://reqres.in/api/users?page=1").then(r=>r.json()).then(d=>console.log(d))```- Python```pythonprint(requests.get("https://reqres.in/api/users?page=1").json())```### 12. JSON 生成器(免Key)```https://www.json-generator.com/api/json/get/cqwkHwQ?indent=2```---## 六、金融/加密货币(新增)### 13. CoinGecko 加密货币行情(免Key)```https://api.coingecko.com/api/v3/coins/markets?vs_currency=cny&ids=bitcoin```### 14. 全球股票简版数据(免费Key)```https://financialmodelingprep.com/api/v3/quote/AAPL?apikey=你的Key```---## 七、AI轻量接口(新增,免费额度)### 15. 文本生成(轻量,免Key)```https://api.deno.dev/v1/completions```(POST 传 prompt,免费额度够用)### 16. 图片转文字(OCR,免费)```https://api.ocr.space/parse/imageurl?apikey=K89899999999999&url=https://example.com/test.jpg```---## 八、开源API宝库(必收藏)### 17. Public APIs(GitHub 40万+ Star)https://github.com/public-apis/public-apis- 45+ 分类、1400+ 接口- 标注 HTTPS/CORS/认证方式---# 免费公共API 汇总清单(JSON版 + 限速/权限标注 + 全量新增接口)全部:**HTTPS、国内可访问、免Key优先**,附带限制说明,直接保存复用。```json[ { "name": "Pexels 无版权高清图库", "url": "https://api.pexels.com/v1/search?query=nature&per_page=1", "method": "GET", "auth": "需要免费Key", "limit": "免费每日50次", "type": "图片素材" }, { "name": "HttpCat 状态码趣味图片", "url": "https://http.cat/200", "method": "GET", "auth": "免Key", "limit": "无限制", "type": "开发工具" }, { "name": "Placehold 占位图/纯色背景", "url": "https://placehold.co/600x400/eeeeee/333333?text=Hello", "method": "GET", "auth": "免Key", "limit": "无限制", "type": "图片素材" }, { "name": "AnimeChan 随机动漫台词", "url": "https://animechan.vercel.app/api/random", "method": "GET", "auth": "免Key", "limit": "宽松限流", "type": "二次元" }, { "name": "Jikan 动漫排行/动漫数据", "url": "https://api.jikan.moe/v4/top/anime", "method": "GET", "auth": "免Key", "limit": "3次/秒", "type": "二次元" }, { "name": "DiceBear 随机头像生成", "url": "https://api.dicebear.com/7.x/avataaars/svg?seed=abc", "method": "GET", "auth": "免Key", "limit": "无限制", "type": "头像/生成" }, { "name": "中文错别字纠错", "url": "https://api.oioweb.cn/api/correct?text=我门今天去玩", "method": "GET", "auth": "免Key", "limit": "国内稳定低限制", "type": "文本处理" }, { "name": "全球节假日查询", "url": "https://api.oioweb.cn/api/holiday?year=2026&country=CN", "method": "GET", "auth": "免Key", "limit": "国内稳定低限制", "type": "生活工具" }, { "name": "ipapi.co 纯净IP归属地", "url": "https://ipapi.co/json/", "method": "GET", "auth": "免Key", "limit": "100次/分钟", "type": "IP地理" }, { "name": "ReqRes 模拟用户/登录Mock", "url": "https://reqres.in/api/users?page=1", "method": "GET", "auth": "免Key", "limit": "无限制", "type": "开发测试" }, { "name": "在线随机JSON数据生成", "url": "https://www.json-generator.com/api/json/get/cqwkHwQ?indent=2", "method": "GET", "auth": "免Key", "limit": "宽松", "type": "开发测试" }, { "name": "CoinGecko 加密货币行情(CNY)", "url": "https://api.coingecko.com/api/v3/coins/markets?vs_currency=cny&ids=bitcoin", "method": "GET", "auth": "免Key", "limit": "10-30次/分钟", "type": "金融数据" }, { "name": "OCR.space 免费图片文字识别", "url": "https://api.ocr.space/parse/imageurl?apikey=K89899999999999&url=图片地址", "method": "GET", "auth": "免费公共Key", "limit": "每日免费额度", "type": "AI工具" }]```---## 补充:上一批全部接口 + 这批新接口 合并亮点1. **零认证白嫖**:ipapi.co、dicebear、httpcat、reqres、oioweb 全系2. **国内首选**:oioweb 全系列、iping.cc、ip.sb 延迟极低3. **适合项目接入**:汇率、天气、IP定位、头像、短链、二维码全套4. **开发调试必备**:httpbin、jsonplaceholder、reqres---来自豆包生成 |
上一篇:没有了
下一篇:没有了