随机图片API——维尔汀
小白版
适用于桌面端:https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=landscape
适用于移动端:https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=portrait
自动判断:https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=auto
基本信息
使用 CloudFlare ImgBed 搭建的维尔汀随机图片 API
端点:https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img
方法:GET
请求参数
| 参数名 | 类型 | 必需 | 默认值 | 说明 |
|---|---|---|---|---|
orientation |
string | 否 | - | 图片方向筛选,可选值:landscape(横图)、portrait(竖图)、square(方图)、auto(自适应设备方向) |
示例
获取横图
https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=landscape使用场景
网站随机背景
<img src="https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=landscape" alt="随机背景">手机壁纸 API
https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=portraitVSCode编辑器背景
在VSCode扩展商店搜索安装 background
进入扩展设置,在 Background: Fullscreen 栏点击 在setting.json中编辑
在配置文件中填入如下内容
"images": ["https://imgbed.thirhythm.qzz.io/random?dir=Vertin&type=img&orientation=landscape"],随机图片API——维尔汀
https://thirhythm.qzz.io/1783086614/