GET
图片壁纸
随机头像②
随机输出各类头像
累计调用 7
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/sjtx2
响应示例
200 OK
<br /> <b>Warning</b>: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/data/www/api.528sq.cn/api/sjtx2.php</b> on line <b>25</b><br /> <br /> <b>Warning</b>: file_get_contents(http://elf.static.maibaapp.com/content/json/avatars/li-15-27.json): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/da...
在线测试
该接口无需参数,直接发送即可。
代码示例
cURL · GET
curl "https://itapi.top/api/sjtx2"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/sjtx2");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/sjtx2");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/sjtx2", timeout=10)
print(r.json())