小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

随机壁纸图片

GEThttps://v2.xxapi.cn/api/wallpaper

接口描述

免费API提供随机返回高清壁纸图片的功能,适用于个人桌面、应用背景和网站展示,支持多种风格和分辨率。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/wallpaper'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
	"code": 200,
	"msg": "数据请求成功",
	"data": "https://cdn.xxhzm.cn/images/wallpaper/5BltPlupC8uQTnC1p5MBL82r.jpg"
}