代理 Gitee 官方 rmbgame/SteamTools Release API,从附件中挑选 Windows 安装包(exe 优先、x64 优先,回退 7z/zip)。服务端 10 分钟缓存以保护 Gitee 匿名限额;带 nocache 参数可强制回源并解析更新说明中的 SHA256 校验值。下载地址经域名白名单校验,仅放行 gitee.com。
https://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 时,输出具体用法提示 |
| 字段 | 类型 | 说明 |
|---|---|---|
| version | string | json 模式:Release 标签,如 3.3.0 |
| published_at | string | json 模式:发布时间 |
| filename | string | json 模式:选中的 Windows 安装包文件名 |
| url | string | json/url 模式:Gitee 直链(download 模式 302 到此地址) |
| sha256 | string | json 模式:仅带 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"
}| HTTP | code | 含义 |
|---|---|---|
| 404 | 404 | Release 中未找到 Windows 安装包 / 更新说明中无该文件校验值 |
| 429 | 429 | 超出频率限制(含 Retry-After 头) |
| 502 | 502 | Gitee API 访问失败、数据异常,或下载地址域名被安全校验拦截 |
Retry-After: 30公开服务面向零散调用与轻量场景。批量任务请自行加入退避(收到 429 后等待 Retry-After 秒再重试), 或先本地缓存已查询过的结果。持续高频使用建议申请独立配额(未来提供)。
# 获取 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)"