本站开放随机ACG图片API服务

API文档

首页 - 随机图片展示

GET /

https://acg.everyhub.top

显示API 文档

GET /api/docs

https://acg.everyhub.top/api/docs

核心接口,获取随机图片

GET /api/random

https://acg.everyhub.top/api/random

参数 (Parameters)

type (可选): 图片类型。

  • webp (默认): 返回 WEBP 格式图片。
  • img: 返回非 WEBP 格式图片 (jpg, png, etc.)。

return (可选): 返回类型。

  • json: 返回图片信息的 JSON。

redirect (可选): 返回类型。

  • 302: 返回302重定向到图片URL。

默认参数

如果 returnredirect 均未指定,将直接流式传输图片(代理模式)。

示例 (Examples)

https://acg.everyhub.top/api/random
https://acg.everyhub.top/api/random?type=img
https://acg.everyhub.top/api/random?return=json
https://acg.everyhub.top/api/random?type=img&return=json /api/random?redirect=302

后端使用下面项目搭建


这样吗

自动上传了