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

随机二次元图片

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

接口描述

免费API随机返回精美的二次元图片,支持电脑端和手机端调用,提供快速稳定的接口服务。满足个性化壁纸、应用开发等多种场景需求。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/randomAcgPic?type=pc'
}

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/acg/wap/5cf30500e7bce75ebd2c3627.jpg"
}