随机壁纸API汇总

网上可以查到很多随机壁纸的API,但是很多都用不了或者是图片质量比较低,于是今天汇总了一些目前可以用的随机壁纸API,其中列出来的图片质量都是比较高的,可以放心食用,本站随机壁纸API模块用的都是这部分API。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 必应每日壁纸
let bingDayBg = screen.width <= 768 ? "url(https://bing.img.run/m.php)" : "url(https://bing.img.run/1920x1080.php)";
// 必应历史壁纸
let bingHistoryBg = screen.width <= 768 ? "url(https://bing.img.run/rand_m.php)" : "url(https://bing.img.run/rand.php)";
// EEE.DOG动漫壁纸
let EEEDog = "url(https://api.yimian.xyz/img?type=moe&size=1920x1080)";
// seovx随机美图
let seovx = "url(https://cdn.seovx.com/?mom=302)";
// picsum随机壁纸
let picsum = "url(https://picsum.photos/1920/1080.webp)";
// 小歪二次元壁纸
let waiDongman = "url(https://api.ixiaowai.cn/api/api.php)";
// 小歪高清壁纸
let waiBizhi = "url(https://api.ixiaowai.cn/gqapi/gqapi.php)";
// 博天随机壁纸
let btstu = "url(http://api.btstu.cn/sjbz/?lx=suiji)";
// tuapi动漫壁纸
let tuapi = "url(https://tuapi.eees.cc/api.php?category=dongman)";
// unsplash随机壁纸 https://source.unsplash.com/random/1920x1080/daily (weekly)
let unsplash = "url(https://source.unsplash.com/random/1920x1080/)";

API链接就是引号引着的部分,具体的参数可以到相应官网查看API文档,这部分已经通过测试,到目前为止都是可用的,并且壁纸质量比较高;尤其是必应、unsplash、picsum这几个API的图片质量十分高,赶紧给你的网站换上随机壁纸吧!