收集分享各种有趣的接口--酷玩代码

本文分享遇见的各种有趣的接口

买家秀图片

随机输出淘宝买家秀图片

接口地址:https://api.uomg.com/api/rand.img3

示例:

古诗词接口

古诗词·一言API是一个可以随机返回一句古诗词名句的接口,文档地址 古诗词

刷新文章,回随机返回一句古诗

随机头像接口

随机返回一张图片,刷新文章即可更换图片 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

小马奔腾免费提供一个api http://bing.mcloc.cn/api


已有 0 条评论

    我有话说: