GET 图片壁纸

运势

运势图片版开源地址:https://github.com/MinatoAquaCrews/nonebot_plugin_fortune/

累计调用 10 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/Yun

请求参数

参数名类型必填说明示例
let string 可选 名字,可以固定查看运势,不填则为随机运势 暂无
0 string 可选 随便填可返回已有主题 暂无
method string 可选 主题选择,默认为随机 暂无

响应示例

200 OK
(该接口直接返回二进制图片,Content-Type: image/JPEG; charset=utf-8。用 <img src="https://itapi.top/api/Yun"> 直接展示即可;示例不粘贴二进制内容)

在线测试

代码示例

cURL · GET
curl "https://itapi.top/api/Yun?let=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0&method=%E6%9A%82%E6%97%A0"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/Yun?let=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0&method=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/Yun?let=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0&method=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/Yun?let=%E6%9A%82%E6%97%A0&0=%E6%9A%82%E6%97%A0&method=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())
返回接口列表