以下为收集到的可以获取随机图片的API, 可以使用’img’标签嵌在你的网页里~

  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 (返回随机图片)

    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

还有其他好用的API吗? 请在下放留下您的评论. 非常感谢!

收藏 打印