二次元图床 API
精选 50+ 个二次元随机图 API 图床接口,实测可用,博客背景图从此不愁。
国内经典老牌
樱花 API
- 接口:
https://www.dmoe.cc/random.php - 简介:二次元圈老牌随机图 API,运营多年,图源稳定
- 认证方式:无需 Key
- 返回格式:直接返回图片(JPEG)
- 调用示例:
<img src="https://www.dmoe.cc/random.php"> - 支持参数:
?return=json(JSON 模式)、?type=pe(手机竖屏)
东方 Project 随机图
- 接口:
https://img.paulzzh.com/touhou/random - 简介:东方 Project 专项图库,收录 4 万+ 张东方图
- 认证方式:无需 Key
- 返回格式:直接返回图片(webp)
LoliAPI
- 接口:
https://www.loliapi.com/acg/ - 简介:根据访问设备 UA 自动适配横竖屏,支持 PC/手机端
- 认证方式:无需 Key
- 变体接口:
/acg/pc/(PC 横屏)、/acg/pe/(手机竖屏)
次元 API
- 接口:
https://t.alcy.cc/pc - 简介:新晋热门接口,分类细致,图源自建图库
- 认证方式:无需 Key
- 变体接口:
/mp(手机端)、/fj(动漫风景)
搏天 API
- 接口:
https://api.btstu.cn/sjbz/api.php?lx=dongman - 简介:经典综合壁纸接口,通过
lx参数切换分类 - 认证方式:无需 Key
- 参数:
lx=dongman(动漫)、lx=suiji(随机)、lx=fengjing(风景)
保罗 API
- 接口:
https://api.paugram.com/wallpaper/ - 简介:白底动漫壁纸,图源干净,适合做网页背景
- 认证方式:无需 Key
Lolicon API
- 接口:
https://api.lolicon.app/setu/v2 - 简介:圈内最著名的图库 API,支持 Tag 筛选,返回 Pixiv 原图链接
- 认证方式:无需 Key
- 返回格式:JSON
- 调用示例:
fetch('https://api.lolicon.app/setu/v2?r18=0&num=1')
.then(r => r.json())
.then(d => console.log(d.data[0].urls.original));
国际二次元
Nekos.life
- 接口:
https://nekos.life/api/v2/img/neko - 简介:国际知名猫娘图 API,稳定运营多年
- 认证方式:无需 Key
- 返回格式:JSON
- 变体:
/img/waifu(老婆图)
Purrbot
- 接口:
https://purrbot.site/api/img/sfw/neko/img - 简介:纯 SFW 猫娘图 API,分类多
- 认证方式:无需 Key
- 返回格式:JSON
Nekos.moe
- 接口:
https://nekos.moe/api/v1/random/image - 简介:可搜索、可点赞的猫娘图库 API
- 认证方式:无需 Key
Yande.re
- 接口:
https://yande.re/post.json?limit=1 - 简介:知名萌系图站官方 API
- 认证方式:无需 Key
更多二次元图床 API 详情可参考博客文章:50+ 个二次元随机图 API 图床大合集