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

获取网站所有图片

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

接口描述

获取网站所有图片

请求参数

广告
广告
广告
广告

请求示例

< !--导入JQ -->
  <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>

  <script>
    $.ajax({
      url: '',
      type: 'get',
      beforeSend: function () {
        //请求中执行的代码
      },
      complete: function () {
        //请求完成执行的代码
      },
      error: function () {
        //请求成功失败执行的代码
      },
      success: function (res) {
        // 状态码 200 表示请求成功
        if (res.code === 200) {
          console.log(res)
        } else {
          console.log(res)
        }
      }
    })
  </script>

返回示例

{
	"code": 200,
	"msg": "数据请求成功",
	"data": {
		"images": [
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newfanyi-da0cea8f7e.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newxueshuicon-a5314d5c83.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newwenku-d8c9b7b0fb.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newbaike-889054f349.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newzhidao-da1cf444b0.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newjiankang-f03b804b4b.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/yingxiaoicon-612169cc36.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newzhibo-a6a0831ecd.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newyinyue-03ecd1e9b9.png",
			"//www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",
			"//www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png",
			"//www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png",
			"//www.baidu.com/img/flexible/logo/pc/result.png",
			"//www.baidu.com/img/flexible/logo/pc/result@2.png",
			"//www.baidu.com/img/flexible/logo/pc/peak-result.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/qrcode/qrcode@2x-daf987ad02.png",
			"https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/qrcode/qrcode-hover@2x-f9b106a848.png"
		],
		"len": 17
	}
}