0 0 0

随机白丝图片

管理员组 安生 管理员组
9天前 21

随机白丝图片

GET
https://v2.xxapi.cn/api/baisi

接口描述

免费API提供随机返回高质量白色丝袜图片的服务,适用于用户个性化需求和应用开发,确保快速稳定的图片加载和服务。

请求参数

 

请求示例

 
 
 
var axios = require('axios')
 
var config = {
method: 'get',
url: 'https://v2.xxapi.cn/api/baisi'
}
 
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})
 
 
 
< !--导入JQ -->
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
 
<script>
$.ajax({
url: 'https://v2.xxapi.cn/api/baisi',
type: 'get',
beforeSend: function () {
//请求中执行的代码
},
complete: function () {
//请求完成执行的代码
},
error: function () {
//请求成功失败执行的代码
},
success: function (res) {
// 状态码 200 表示请求成功
if (res.code === 200) {
console.log(res)
} else {
console.log(res)
}
}
})
</script>
 
 
 
var requestOptions = {
method: 'GET',
redirect: 'follow'
}
 
fetch("https://v2.xxapi.cn/api/baisi", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error))
 
 
 
var xhr = new XMLHttpRequest()
xhr.withCredentials = true
 
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText)
}
})
 
xhr.open("GET", "https://v2.xxapi.cn/api/baisi")
 
xhr.send()
 
 
 
<? php
 
$curl = curl_init()
 
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://v2.xxapi.cn/api/baisi',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
))
 
$response = curl_exec($curl)
 
curl_close($curl);
echo $response
 
 
 
import requests
 
url = "https://v2.xxapi.cn/api/baisi"
 
payload = {}
headers = {
'User-Agent': 'xiaoxiaoapi/1.0.0 (https://xxapi.cn)'
}
 
response = requests.request("GET", url, headers = headers, data = payload)
 
print(response.text)

axios ajax fetch xhr php python

返回示例

 
 
 
{
"code": 200,
"msg": "数据请求成功",
"data": "https://cdn.api-m.com/images/baisi/4Eri7CBXGTKu2MwwljHQac3B.jpg"
}
看过的人 (3)
  • 2375771086
  • 2085259339
  • 42098444
最新回复 (0)
全部楼主

    暂无评论

    • 全网机器人框架插件论坛
      2
          

请先登录后发表评论!

返回
您是第9999999位访客
机器人论坛

请先登录后发表评论!