11

随机动漫壁纸

 2 years ago
source link: https://paugram.com/help/wallpaper
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

欢迎前往仓库 Anime-Wallpaper 提交 PR,增加此 API 的资源~ 提交的 Commit 说明上最好带上对应角色的来源!

Add 5 Images

增加了《轻音少女》阿梓喵、《原神》可莉的图片

使用方法:

调用地址 https://api.paugram.com/wallpaper/ 可自动跳转到对应的壁纸(由于运营成本限制,目前本 API 借助 图床/CDN 等平台托管图片。欢迎给予资源赞助~)

如果您已开始使用本 API 服务,则默认视为遵守 本约定

图片版权归原作者所有,本站不为滥用本 API 进行违规操作者承担责任。

参数 可选值 描述 source sm cp sina paul 图片源,如留空则默认采用 sm.ms 源 category(施工中) us jp cn 图片分类,可按不同国家和类别选择
参数名称 状态 图片源描述 sm 可用 sm.ms 图床,国外速度较快,部分浏览器会阻止访问 cp 不可用 Coding Pages 服务托管,服务器位于香港,部分移动网络无法访问 gt 可用 Gitee Pages 服务托管,服务器位于国内,速度稳定 sina 可用 新浪微博相册,国内速度较快,已更换新地址 gh 可用 存放在 GitHub 上的图片资源,基于 JSDelivr 托管,速度非常理想

图片分类(施工中):

参数名称 状态 分类描述 1 不可用 白底动漫插图 2 不可用 透明底动漫插图 3 不可用 随机底动漫壁纸

使用 sm.ms 图片源

https://api.paugram.com/wallpaper/?source=sm

使用新浪图片源,并选择美漫图片分类

https://api.paugram.com/wallpaper/?source=sina&category=us

在网页背景上使用本 API

body{
    background: url("https://api.paugram.com/wallpaper/") center/cover no-repeat;
}

在网页背景上使用本 API(伪元素半透明版)

body:before{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: .3;
    z-index: -1;
    content: "";
    position: fixed;
    background: url(https://api.paugram.com/wallpaper/) center/cover;
}

使用 img 标签引用图片

wallpaper

SM.MS

JSDelivr

Gitee Pages

Coding Pages


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK