WebEnh

.net7 mvc jquery bootstrap json 学习中 第一次学PHP,正在研究中。自学进行时... ... 我的博客 https://enhweb.github.io/ 不错的皮肤:darkgreentrip,iMetro_HD
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

可以获取随机图片的API收集 必应 等

Posted on 2019-10-29 17:39  WebEnh  阅读(1878)  评论(0编辑  收藏  举报

食用方法可以是img标签嵌入在网页中, 也可以在iwall.app里面设置你的桌面背景.
还有其他好用的API吗? 请在下放留下您的评论. 非常感谢!

  1. 速度: ★★★★★

    功能: 返回Bing的随机图片
    地址: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture

  2. 速度: ★★★★★

    功能: 返回随机图片, 需指定分辨率, 如果指定的分辨率没有找到图片则返回空页面
    地址: http://lorempixel.com/1600/900

  3. 速度: ★★★★☆

    功能: 来自github的项目 https://github.com/xCss/bing
    地址: https://bing.ioliu.cn/v1/rand (返回随机图片)
    因为作者的问题, 无法通过链接直接获取随机图片, 只能通过链接获取到json, 地址如下:
    https://bing.ioliu.cn/v1/rand?type=json
    {
        "data":{
            "enddate":"20180212",
            "url":"http://www.bing.com/az/hprichbg/rb/FrozenWaterfallJasper_EN-CA10140771944_1920x1080.jpg",
            "bmiddle_pic":null,
            "original_pic":null,
            "thumbnail_pic":null
        },
        "status":{
            "code":200,
            "message":""
        }
    }

    指定大小亲测也不好使了…
    如需指定大小: https://bing.ioliu.cn/v1/rand?w=1920&h=1200

    /**
     * 已知分辨率
     */
    resolutions: [
        '1920x1200',
        '1920x1080',
        '1366x768',
        '1280x768',
        '1024x768',
        '800x600',
        '800x480',
        '768x1280',
        '720x1280',
        '640x480',
        '480x800',
        '400x240',
        '320x240',
        '240x320'
    ]

     

  4. 速度: ★★☆☆☆

    功能: 返回指定分辨率的随机图片, (加载最慢, 可能是因为服务器在国外)
    地址: https://unsplash.it/1600/900?random

  5. 速度: ★★★★★ (亲测失效…)

    功能: 返回随机的二次元图片, 国人之作, 发现地址: https://www.dujin.org/12142.html/amp
    地址: https://api.xjdog.cn/Get-Image

  6. 速度: ★★★★★★ (亲测失效…)

    功能: 返回随机Bing图片, 其中数字为分辨率, 例如 1366x768 -> 1366, 1920x1080 -> 1920
    地址: https://api.dujin.org/bing/1366.php