能夠獲取隨機圖片的API收集 必應 等

食用方法能夠是img標籤嵌入在網頁中, 也能夠在iwall.app裏面設置你的桌面背景.
還有其餘好用的API嗎? 請在下放留下您的評論. 很是感謝!php

  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=1200html

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

     

  4. 速度: ★★☆☆☆git

    功能: 返回指定分辨率的隨機圖片, (加載最慢, 多是由於服務器在國外)
    地址: https://unsplash.it/1600/900?randomgithub

  5. 速度: ★★★★★ (親測失效…)json

    功能: 返回隨機的二次元圖片, 國人之做, 發現地址: https://www.dujin.org/12142.html/amp
    地址: https://api.xjdog.cn/Get-Imageapi

  6. 速度: ★★★★★★ (親測失效…)服務器

    功能: 返回隨機Bing圖片, 其中數字爲分辨率, 例如 1366x768 -> 1366, 1920x1080 -> 1920
    地址: https://api.dujin.org/bing/1366.phpapp

相關文章
相關標籤/搜索