编辑文章 趣味代码 本文分享遇见的各种有趣的接口 ### 买家秀图片 随机输出淘宝买家秀图片 接口地址:[https://api.uomg.com/api/rand.img3](https://api.uomg.com/api/rand.img3) 示例: <img src="https://api.uomg.com/api/rand.img3" width="60%"> ### 古诗词接口 古诗词·一言API是一个可以随机返回一句古诗词名句的接口,文档地址 [古诗词](https://gushi.ci) 刷新文章,回随机返回一句古诗 <img src="https://v1.jinrishici.com/all.png"> ### 随机头像接口 随机返回一张图片,刷新文章即可更换图片 [http://dafeiyu.cn/app/avatar](http://dafeiyu.cn/app/avatar) <img src="http://dafeiyu.cn/app/avatar"> ### 漫画网站接口 看到一个有趣的站点,爬虫下载之后看了一下其中的代码 ``` var imgpath = 'http://web7.jiayouzhibo.com/'; $.ajax({ url: "yymhindex.html"/*tpa=http://xxmanhuaw.com/home/api/yymhindex.html*/, type: 'post', data:{ order:"view desc", start:0, limit:3, type:1}, success: function (data){ for(var i=0;i<list.length;i++){ cnxhhtml = cnxhhtml+ `<li><a href="http://xxmanhuaw.com/home/book/index/id/`+list[i].id+`"><div class="cover"><img src="`+imgpath+(list[i].cover?list[i].cover:list[i].image)+`" alt="">`; } } }) ``` 总结一下该接口,获取漫画列表的 url: http://xxmanhuaw.com/home/api/yymhindex.html?order=view desc&start=0&limit=3&type=1 method: post resspone: ``` { "data": { "jphc1": { "data": [ { "id": "572", "title": "繼承家業的少爺從不忍耐", "lanmu_id": null, "create_time": "2021-05-20 22:30:24", "update_time": "2021-05-20 22:30:37", "sort": null, "status": "1", "view": "38676", "image": "/tt/other/7bc6bb3b-4100-4c1a-9c6f-409afe51f032", "type": "1", "auther": "Yui Asakura", "desc": "在老牌旅館當經理的高生,受託訓練旅館繼承人,千明。千明小時候像天使一般可愛,可長大了之後卻變成了一個輕浮渣男…某天,千明拿著工作表現要鞦韆明給他獎勵,便抱住了高生,高生被千明灼熱的舌頭不斷挑弄嘴巴,也因從未感受過的快感而不斷顫抖—", "mark": "174", "ticai_id": "6", "duzhequn_id": null, "diyu_id": null, "mhstatus": "0", "tjswitch": "0", "isfree": "1", "cjid": null, "cjstatus": "0", "cjname": null, "keyword": "xx,xx,xx,BL,xx", "last_chapter_title": "", "searchnums": "0", "last_chapter": null, "isjingpin": "1", "xianmian": "0", "cover": "/tt/banner/3ee4f3c9-9b6a-4795-be9a-42e344492736", //封面 http://web7.jiayouzhibo.com/ "ishot": "0", "issole": "1", "isnew": "1", "h": "1", "vipcanread": "1", "pingfen": "9.68" }, ..... ] } }, "code": 200, "total": 8, "start": null } ``` ### 必应每日图片接口 url:https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN [小马奔腾](https://blog.mcloc.cn/archives/632.html)免费提供一个api [http://bing.mcloc.cn/api](http://bing.mcloc.cn/api) <p>本文分享遇见的各种有趣的接口</p> <h3>买家秀图片</h3> <p>随机输出淘宝买家秀图片</p> <p>接口地址:<a href="https://api.uomg.com/api/rand.img3">https://api.uomg.com/api/rand.img3</a></p> <p>示例:</p> <img src="https://api.uomg.com/api/rand.img3" width="60%"> <h3>古诗词接口</h3> <p>古诗词·一言API是一个可以随机返回一句古诗词名句的接口,文档地址 <a href="https://gushi.ci">古诗词</a></p> <p>刷新文章,回随机返回一句古诗</p> <img src="https://v1.jinrishici.com/all.png"> <h3>随机头像接口</h3> <p>随机返回一张图片,刷新文章即可更换图片 <a href="http://dafeiyu.cn/app/avatar">http://dafeiyu.cn/app/avatar</a> <img src="http://dafeiyu.cn/app/avatar"></p> <h3>漫画网站接口</h3> <p>看到一个有趣的站点,爬虫下载之后看了一下其中的代码</p> <pre><code>var imgpath = 'http://web7.jiayouzhibo.com/'; $.ajax({ url: "yymhindex.html"/*tpa=http://xxmanhuaw.com/home/api/yymhindex.html*/, type: 'post', data:{ order:"view desc", start:0, limit:3, type:1}, success: function (data){ for(var i=0;i<list.length;i++){ cnxhhtml = cnxhhtml+ `<li><a href="http://xxmanhuaw.com/home/book/index/id/`+list[i].id+`"><div class="cover"><img src="`+imgpath+(list[i].cover?list[i].cover:list[i].image)+`" alt="">`; } } }) </code></pre> <p>总结一下该接口,获取漫画列表的 url: http://xxmanhuaw.com/home/api/yymhindex.html?order=view desc&start=0&limit=3&type=1</p> <p>method: post</p> <p>resspone:</p> <pre><code>{ "data": { "jphc1": { "data": [ { "id": "572", "title": "繼承家業的少爺從不忍耐", "lanmu_id": null, "create_time": "2021-05-20 22:30:24", "update_time": "2021-05-20 22:30:37", "sort": null, "status": "1", "view": "38676", "image": "/tt/other/7bc6bb3b-4100-4c1a-9c6f-409afe51f032", "type": "1", "auther": "Yui Asakura", "desc": "在老牌旅館當經理的高生,受託訓練旅館繼承人,千明。千明小時候像天使一般可愛,可長大了之後卻變成了一個輕浮渣男…某天,千明拿著工作表現要鞦韆明給他獎勵,便抱住了高生,高生被千明灼熱的舌頭不斷挑弄嘴巴,也因從未感受過的快感而不斷顫抖—", "mark": "174", "ticai_id": "6", "duzhequn_id": null, "diyu_id": null, "mhstatus": "0", "tjswitch": "0", "isfree": "1", "cjid": null, "cjstatus": "0", "cjname": null, "keyword": "xx,xx,xx,BL,xx", "last_chapter_title": "", "searchnums": "0", "last_chapter": null, "isjingpin": "1", "xianmian": "0", "cover": "/tt/banner/3ee4f3c9-9b6a-4795-be9a-42e344492736", //封面 http://web7.jiayouzhibo.com/ "ishot": "0", "issole": "1", "isnew": "1", "h": "1", "vipcanread": "1", "pingfen": "9.68" }, ..... ] } }, "code": 200, "total": 8, "start": null } </code></pre> <h3>必应每日图片接口</h3> <p>url:https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN</p> <p><a href="https://blog.mcloc.cn/archives/632.html">小马奔腾</a>免费提供一个api <a href="http://bing.mcloc.cn/api">http://bing.mcloc.cn/api</a></p> 标题: 分类: 请选择分类(必选) 博客 酷玩 分享 相册 标签: 按 Tab、回车或逗号把输入的文字变成标签;点 × 或在输入框为空时按退格删除;最多 8 个 封面图: 上传图片 建议尺寸 800x400,图片大小不超过 1MB 展开更多设置(关键词、摘要、转载、评论) 关键词: 摘要: 本文分享遇见的各种有趣的接口 买家秀图片 随机输出淘宝买家秀图片 接口地址:https://api.uomg.com/api/rand.img3 示例: 古诗词接口 古诗词·一言API是一个可以随机返回一句古诗词名句的接口,文档地址 古诗词 刷... 选项: 是否转载 启用评论 勾选「是否转载」可标注文章来源,原文链接可留空。 正文: 保存修改