基本信息 JSON

壁纸引擎
wallpaper
/wallpaper
9 次
0/1秒
关闭

接口描述

图片经过精挑细选后保存在又拍云 国内节点 速度飞快 remote为本地服务器托管图片 目前无法使用 请使用谨慎鉴别

接口参数

参数名 类型 描述 可选值 默认值
msg string 壁纸分类 动漫壁纸
type string 获取方式 local

请求示例

/s/wallpaper?msg=动漫壁纸&type=local

响应示例

Some pictures

错误信息

场景 HTTP 状态 错误码 消息 JSON 结构预览
壁纸分类不存在 400 400 壁纸分类不存在
{
  "error": {
    "code": 400,
    "message": "壁纸分类不存在",
    "msg": {
      "desc": "壁纸分类",
      "enum": [
        "动漫壁纸"
      ],
      "type": "string",
      "default": "动漫壁纸"
    },
    "type": {
      "desc": "获取方式",
      "enum": [
        "local",
        "remote"
      ],
      "type": "string",
      "default": "local"
    }
  }
}
获取方式非法 400 400 获取方式仅支持 local、remote
{
  "error": {
    "code": 400,
    "message": "获取方式仅支持 local、remote",
    "type": {
      "desc": "获取方式",
      "enum": [
        "local",
        "remote"
      ],
      "type": "string",
      "default": "local"
    }
  }
}
接口状态异常 503 503 接口异常,请联系管理员修复!
{
  "error": {
    "code": 503,
    "message": "接口异常,请联系管理员修复!",
    "status": "异常"
  }
}
接口维护中 503 503 接口维护中,请稍后再试
{
  "error": {
    "code": 503,
    "message": "接口维护中,请稍后再试",
    "status": "维护"
  }
}
接口已下架 410 410 接口已下架
{
  "error": {
    "code": 410,
    "message": "接口已下架",
    "status": "下架"
  }
}
QPS 超限被封禁 429 429 请求频繁,请10秒后重试
{
  "error": {
    "code": 429,
    "message": "请求频繁,请10秒后重试",
    "retry_after": 10
  }
}
动漫壁纸.txt 为空或缺失 500 500 动漫壁纸.txt 为空或缺失
{
  "error": {
    "code": 500,
    "message": "动漫壁纸.txt 为空或缺失"
  }
}
动漫壁纸目录为空或缺失 500 500 动漫壁纸目录为空或缺失
{
  "error": {
    "code": 500,
    "message": "动漫壁纸目录为空或缺失"
  }
}
服务器内部错误 500 500 服务器内部错误
{
  "error": {
    "code": 500,
    "message": "服务器内部错误"
  }
}

luoluoのapi

作者: 落洛

加载时间: 0ms