Start Me
Pasta
累计调用:105
图合成 - 梦泪幽灵猎手
GET幽灵猎手
接口地址:
https://api.qster.top/API/v1/ylls
接口示例:
https://api.qster.top/API/v1/ylls/?qskey=0&qq=1985235895
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
type | string | 否 | 默认json 可选json/text/image |
string | 是 | 获取qq头像 | |
qskey | string | 是 | |
免费密钥: qstertop | 建议注册账号获取密钥 延迟5秒 | 该密钥会限速影响体验 | 当前速率:150次/300秒 可联系管理员过白账号 |
响应参数
参数 | 说明 |
---|---|
url | 返回链接 |
code | 200正常400失败 查看更多 |
代码示例
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qster.top/API/v1/ylls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => [
"type" => "默认json 可选json/text/image",
"qq" => "获取qq头像",
"qskey" => "0",
],
CURLOPT_HTTPHEADER => [
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
import requests
url = "https://api.qster.top/API/v1/ylls";
params = {
"type" : "默认json 可选json/text/image",
"qq" : "获取qq头像",
"qskey" => "0"
}
response = requests.get(url, params=params)
print(response.text)
function fetchData(url, params) {
const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
const fullUrl = `${url}?${queryString}`;
fetch(fullUrl)
.then(response => response.text())
.then(data => {
const resultElement = document.createElement('pre');
resultElement.textContent = data;
document.body.appendChild(resultElement);
})
.catch(error => console.error('Error fetching data:', error));
}
// 示例用法
const url = "https://api.qster.top/API/v1/ylls";
const params = {
"type" : "默认json 可选json/text/image",
"qq" : "获取qq头像",
"qskey" => "0"
};
fetchData(url, params);
在线调试
小小赞助支持
