个性头像,男生,女生,等等都有,数据来自于我要个性网,如有侵权请联系站长删除
equalizer 累计使用:145500
请求地址 https://free.wqwlkj.cn/wqwlapi/select_avatar.php
请求示例 https://free.wqwlkj.cn/wqwlapi/select_avatar.php?type=json&select=nv
请求方式 GET
返回格式 JSON
{
"code": 1,
"name": "2024最新青春甜美活泼真人女生头像",
"picurl": [
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/ff9a31f8dcc1081c35393e83e74cb0de.png"
},
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/e98a734a24940b4b971ad28054573da0.png"
},
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/a56d4920df4709b80a3c32e6c40989b4.png"
},
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/7ad0e63197cf526b27bda7b109261c31.png"
},
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/800e9059b98b05b8a1cf07fc7ff14335.png"
},
{
"imgurl": "https://img2.woyaogexing.com/2024/08/05/3b2c84e17d13f691d7dd5b8f5fb58ab5.png"
}
],
"Tips": "本接口由问情网络科技提供,数据来源于我要个性网"
}
参数名称 | 是否必需 | 参数说明 |
---|---|---|
type |
否 | 返回格式,可选text json 默认text |
select |
否 | 头像类型,可选 nan nv weixin qinglv katong fengjing 分别对应 男生 女生 微信 情侣 卡通 风景 |
参数名称 | 参数类型 | 参数说明 |
---|---|---|
code |
integer |
1成功 -1失败 |
name |
string |
头像名字 |
picurl |
string |
图片链接 |
Tips |
string |
接口说明 |
更新时间 2023-04-19 18:26:21
状态码 | 状态说明 |
---|---|
400 | 请求错误 |
403 | 请求被服务器拒绝 |
404 | 请求服务器失败 |
500 | 服务器错误 |
503 | 服务器维护 |
GET方法
$url = 'https://free.wqwlkj.cn/wqwlapi/select_avatar.php';
$data = '?type=json&select=nv';
$get = $url.$data;
$result = file_get_contents($get);
if ($result) {
//成功
echo $result;
} else {
//失败
}
POST方法
$url = 'https://free.wqwlkj.cn/wqwlapi/select_avatar.php';
$data = array(
  'type' => 'json',
  'select' => 'nv',
);
$data = http_build_query($data);
$option = array('http'=>array('method'=>'POST','content'=>$data));
$context = stream_context_create($option);
$result = file_get_contents($url,false,$context);
if ($result) {
//成功
echo $result;
} else {
//失败
}
GET方法
var url = "https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
var data = "?type=json&select=nv"
var xhrGet = new XMLHttpRequest();
xhrGet.open('GET', url + data, true);
xhrGet.send();
xhrGet.onreadystatechange = function() {
if (xhrGet.readyState == 4 && xhrGet.status == 200) {
//成功
var result = xhrGet.responseText;
console.log(result);
} else {
//失败
}
};
POST方法
var url = "https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
var data = "type=json&select=nv"
var xhrPost = new XMLHttpRequest();
xhrPost.open('POST', url, true);
xhrPost.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhrPost.send(data);
xhrPost.onreadystatechange = function() {
if (xhrPost.readyState == 4 && xhrPost.status == 200) {
//成功
var result = xhrPost.responseText;
console.log(result);
} else {
//失败
}
};
GET方法
new Thread(){
public void run() {
String path = "https://free.wqwlkj.cn/wqwlapi/select_avatar.php";
String data = "?type=json&select=nv";
try {
URL url = new URL(path + data);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("GET");
int code = connection.getResponseCode();
if (code == 200) {
//成功
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader bufferedreader = new BufferedReader(isr);
String string;
StringBuilder stringbuilder = new StringBuilder();
while ((string = bufferedreader.readLine()) != null) {
stringbuilder.append(string);
}
final String result = stringbuilder.toString();
System.out.println(result);
} else {
//失败
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}.start();
POST方法
new Thread(){
public void run() {
String path = "https://free.wqwlkj.cn/wqwlapi/select_avatar.php";
String data = "type=json&select=nv";
try {
URL url = new URL(path);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true);
connection.getOutputStream().write(data.getBytes());
int code = connection.getResponseCode();
if (code == 200) {
//成功
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader bufferedreader = new BufferedReader(isr);
String string;
StringBuilder stringbuilder = new StringBuilder();
while ((string = bufferedreader.readLine()) != null) {
stringbuilder.append(string);
}
final String result = stringbuilder.toString();
System.out.println(result);
} else {
//失败
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}.start();
GET方法
url="https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
data=url.."?type=json&select=nv"
Http.get(data,function(code,content,data)
if code==200 then
--成功
print(content)
else
--失败
end
end)
POST方法
url="https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
data="type=json&select=nv"
Http.post(url,data,function(code,content,data)
if code==200 then
--成功
print(content)
else
--失败
end
end)
GET方法
变量 网络GET操作 为 网络操作 = 创建 网络操作()
变量 GET数据 为 文本型 = "?type=json&select=nv"
网络GET操作.取网页源码("https://free.wqwlkj.cn/wqwlapi/select_avatar.php" + GET数据)
事件 网络GET操作:取网页源码结束(结果 为 文本型,cookie 为 文本型)
//成功
调试输出(结果)
结束 事件
事件 网络GET操作:取网页源码失败(响应码 为 文本型)
//失败
结束 事件
POST方法
变量 网络POST操作 为 网络操作 = 创建 网络操作()
变量 POST数据 为 文本型 = "type=json&select=nv"
网络POST操作.发送数据("https://free.wqwlkj.cn/wqwlapi/select_avatar.php",POST数据)
事件 网络POST操作:发送数据结束(结果 为 文本型,cookie 为 文本型)
//成功
调试输出(结果)
结束 事件
事件 网络POST操作:发送数据失败(响应码 为 文本型)
//失败
结束 事件
GET方法
s url="https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
s data="?type=json&select=nv"
ss(url+data,get)
t(){
hs(get,result)
f(result!=null){
//成功
syso(result)
}else{
//失败
}
}
POST方法
s url="https://free.wqwlkj.cn/wqwlapi/select_avatar.php"
s data="type=json&select=nv"
t(){
hs(url,data,"utf-8",result)
f(result!=null){
//成功
syso(result)
}else{
//失败
}
}
反馈时间 | 反馈接口 | 反馈内容 | 反馈者IP |
---|