Steam系统需求
查询Steam游戏的PC/Mac/Linux系统配置需求
GET
https://api.tinyaii.cn/v1/steam/requirements
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| appid | int | 可选 | 游戏AppID(与name二选一) | — |
| name | string | 可选 | 游戏名称(与appid二选一) | — |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| data.appid | int | 游戏AppID |
| data.name | string | 游戏名称 |
| data.windows | object | Windows配置 |
| data.windows.minimum | string | 最低配置 |
| data.windows.recommended | string | 推荐配置 |
| data.mac | object | Mac配置 |
| data.linux | object | Linux配置 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"appid": 1245620,
"name": "艾尔登法环",
"windows": {
"minimum": "最低配置:需要 64 位处理器和操作系统...",
"recommended": "推荐配置:..."
},
"mac": null,
"linux": null
}
}
调用示例
curl "https://api.tinyaii.cn/v1/steam/requirements?appid=1&name=<name>" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/steam/requirements?appid=1&name=<name>", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/steam/requirements",
params={"appid": "1", "name": "<name>"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。