API 列表/SteamTools 最新版获取

SteamTools 最新版获取

公测中下载

代理 Gitee 官方 rmbgame/SteamTools Release API,从附件中挑选 Windows 安装包(exe 优先、x64 优先,回退 7z/zip)。服务端 10 分钟缓存以保护 Gitee 匿名限额;带 nocache 参数可强制回源并解析更新说明中的 SHA256 校验值。下载地址经域名白名单校验,仅放行 gitee.com。

请求

GEThttps://rainapi.top/api/steam

在本站内直接调用 /api/steam 即可;跨站调用请使用上方完整地址。响应头包含Access-Control-Allow-Origin: *,浏览器可 fetch。

请求参数

参数类型必填说明
mode
例: json
string可选full(默认,文本详情)| json | url(仅直链)| download(302 下载)| sha256(需配合 nocache)
nocache
例: 时间戳
string可选任意值即绕过服务端 10 分钟缓存回源 Gitee;同时才会解析 SHA256
help
例: 1
string可选sha256 模式未带 nocache 时,输出具体用法提示

响应字段

字段类型说明
versionstringjson 模式:Release 标签,如 3.3.0
published_atstringjson 模式:发布时间
filenamestringjson 模式:选中的 Windows 安装包文件名
urlstringjson/url 模式:Gitee 直链(download 模式 302 到此地址)
sha256stringjson 模式:仅带 nocache 时提供

示例响应 GET /api/steam?mode=json

{
  "version": "3.3.0",
  "published_at": "2026-11-23T23:36:43+08:00",
  "filename": "Steam  _v3.3.0_win_x64_aot.exe",
  "url": "https://gitee.com/rmbgame/SteamTools/releases/download/3.3.0/Steam%20%20_v3.3.0_win_x64_aot.exe"
}

错误码

HTTPcode含义
404404Release 中未找到 Windows 安装包 / 更新说明中无该文件校验值
429429超出频率限制(含 Retry-After 头)
502502Gitee API 访问失败、数据异常,或下载地址域名被安全校验拦截

频率限制

30 次 / 30 秒计数维度:访客 IP超限响应:429 + Retry-After: 30

公开服务面向零散调用与轻量场景。批量任务请自行加入退避(收到 429 后等待 Retry-After 秒再重试), 或先本地缓存已查询过的结果。持续高频使用建议申请独立配额(未来提供)。

在线调试

在线调试计入你的限流配额(30 次 / 30 秒)

代码示例

# 获取 JSON 信息
curl -s 'https://rainapi.top/api/steam?mode=json'

# 跟随 302 直接下载最新安装包
curl -sL 'https://rainapi.top/api/steam?mode=download' -o SteamTools.exe

# 取 SHA256(需绕过缓存)
curl -s "https://rainapi.top/api/steam?mode=sha256&nocache=$(date +%s)"