# 🧚♀️ 花楹 API 文档
# API 说明
# 获取随机资源
请求方式:
GET
请求地址:
https://api.lilu.org.cn/shushan/huaying/random/{category}
请求参数:
{category}
:路径参数。资源分类名。可选值:acgn
:二次元动漫mcj
:mc
酱动漫
type
:返回数据格式。非必传,默认为json
格式。可选值:302
:直接跳转到图片源文件地址,可用作随机背景图等。json
:返回标准RESTful API
接口格式的数据。
返回
json
示例:{ "code": 20000, "msg": "请求成功", "data": "https://cdn.lilu.org.cn/avatar.png" }
# 获取今日资源
请求方式:
GET
请求地址:
https://api.lilu.org.cn/shushan/huaying/today/{category}
请求参数:
{category}
:路径参数。资源分类名。可选值:acgn
:二次元动漫mcj
:mc
酱动漫
type
:返回数据格式。非必传,默认为json
格式。可选值:302
:直接跳转到图片源文件地址,可用作随机背景图等。json
:返回标准RESTful API
接口格式的数据。
返回
json
示例:{ "resultCode": 20000, "resultMsg": "请求成功", "data": "https://cdn.lilu.org.cn/avatar.png" }
# API 示例
# 随机图片 API
分类 | 示例 |
---|---|
二次元动漫 | json 形式:https://api.lilu.org.cn/shushan/huaying/random/acgn (opens new window)302 形式:<img src="https://api.lilu.org.cn/shushan/huaying/random/acgn?type=302"> |
mc 酱动漫 | json 形式:https://api.lilu.org.cn/shushan/huaying/random/mcj (opens new window)302 形式:<img src="https://api.lilu.org.cn/shushan/huaying/random/mcj?type=302"> |
# 每日一图 API
分类 | 示例 |
---|---|
二次元动漫 | json 形式:https://api.lilu.org.cn/shushan/huaying/today/acgn (opens new window)302 形式:<img src="https://api.lilu.org.cn/shushan/huaying/today/acgn?type=302"> |
mc 酱动漫 | json 形式:https://api.lilu.org.cn/shushan/huaying/today/mcj (opens new window)302 形式:<img src="https://api.lilu.org.cn/shushan/huaying/today/mcj?type=302"> |